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