keys查询新增加载效果
This commit is contained in:
parent
dfc21f36b0
commit
97c98bb22c
|
@ -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>
|
||||
|
||||
{/* 批量上传 */}
|
||||
|
|
Loading…
Reference in New Issue