diff --git a/src/app/task/four/layout.tsx b/src/app/task/four/layout.tsx index 1037b8a..f5ab29d 100644 --- a/src/app/task/four/layout.tsx +++ b/src/app/task/four/layout.tsx @@ -12,7 +12,9 @@ import {DataType, ResponseVO, ResultPage} from "@/lib/definitions"; export default function Layout({children}: { children: React.ReactNode }) { const [resultDataTypeList, setResultDataTypeList] = useState([]); + const [loadingState,setLoadingState] =useState(true) const refreshDate = (): void => { + setLoadingState(true) getTaskTreeResult(JSON.stringify({ pageSize:1000, pageNumber:1, @@ -24,6 +26,7 @@ export default function Layout({children}: { children: React.ReactNode }) { dataType.state=taskStateList.find(taskState=>taskState.code===dataType.state+'')?.name }) setResultDataTypeList(result.data.content) + setLoadingState(false) } }) } @@ -62,7 +65,7 @@ export default function Layout({children}: { children: React.ReactNode }) {
- +
@@ -70,7 +73,7 @@ export default function Layout({children}: { children: React.ReactNode }) {
- +
@@ -78,14 +81,14 @@ export default function Layout({children}: { children: React.ReactNode }) {
- +
ε‘δΈŠι‡θ¦
{/*
{children}
*/}
- +
diff --git a/src/ui/task/four/TreeTable.tsx b/src/ui/task/four/TreeTable.tsx index ad71936..fadaa19 100644 --- a/src/ui/task/four/TreeTable.tsx +++ b/src/ui/task/four/TreeTable.tsx @@ -29,7 +29,8 @@ const rowSelection: TableRowSelection = { interface TableSearchType { priority: string, resultDataTypeList: DataType[], - refreshDate?: () => void + refreshDate?: () => void, + loadingState:boolean } const TreeTable: React.FC = (props) => { @@ -178,6 +179,7 @@ const TreeTable: React.FC = (props) => { })} pagination={{pageSize: 5}} scroll={{y: 280}} + loading={props.loadingState} /> {/**/}