keys查询新增加载效果

This commit is contained in:
Apple 2022-08-24 18:01:10 +08:00
parent dfc21f36b0
commit 97c98bb22c
1 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import menu from '@/assets/enum.js'
import _ from 'lodash'
import {
Button,
BlockLoading,
Icon,
Notify,
Alert,
@ -137,6 +138,7 @@ const UseKeyList = () => {
key: ''
},
hash: '',
loading:false,
page: 1,
limit: 10,
isQuery: false,
@ -189,10 +191,12 @@ const UseKeyList = () => {
*/
const getTable = () => {
const param = getParam()
setState({loading:true});
getKeysList(param).then((res) => {
handelResponse(
res,
(req, msg) => {
setState({loading:false});
console.log('req =>', req)
if (req.total > 0) {
setState({ lodgingTable: false })
@ -616,6 +620,7 @@ const UseKeyList = () => {
{state.invalidTotal}
</Alert>
) : null}
<BlockLoading loading={state.loading} icon={'circle'}>
<Grid
spliteColor={'#fff'}
tableData={state.tableData}
@ -696,7 +701,9 @@ const UseKeyList = () => {
}
}}
/>
</BlockLoading>
</div>
</TabPage>
{/* 批量上传 */}