pull/418/head
vapao 2021-12-09 22:32:19 +08:00
parent ddd1cb8cc1
commit 465065ea1f
1 changed files with 22 additions and 21 deletions

View File

@ -5,7 +5,7 @@
*/
import React, { useState, useEffect } from 'react';
import { observer } from 'mobx-react';
import { Input, Card, Tree, Dropdown, Menu, Switch, Tooltip, Modal } from 'antd';
import { Input, Card, Tree, Dropdown, Menu, Switch, Tooltip, Spin, Modal } from 'antd';
import {
FolderOutlined,
FolderAddOutlined,
@ -158,7 +158,6 @@ export default observer(function () {
<Card
title="分组列表"
style={{height: '100%'}}
loading={store.grpFetching}
extra={(
<AuthFragment auth="admin">
<Switch
@ -170,6 +169,7 @@ export default observer(function () {
<QuestionCircleOutlined style={{marginLeft: 8, color: '#999'}}/>
</Tooltip>
</AuthFragment>)}>
<Spin spinning={store.grpFetching}>
<Dropdown
overlay={menus}
visible={visible}
@ -189,6 +189,7 @@ export default observer(function () {
onRightClick={handleRightClick}
/>
</Dropdown>
</Spin>
{treeData.length === 1 && treeData[0].children.length === 0 && (
<div style={{color: '#999', marginTop: 20, textAlign: 'center'}}>右键点击分组进行分组管理哦~</div>
)}