返回正确状态码

20240528Test
liujun 2024-04-13 12:40:04 +08:00
parent 419c30bc45
commit 03a1881fa6
1 changed files with 7 additions and 12 deletions

View File

@ -78,6 +78,9 @@ export default {
limit: 10, limit: 10,
total: 0 total: 0
}, },
listLoading: false,
KEYWORDS: '',
varList: [],
add: false, // add: false, //
del: false, // del: false, //
edit: false // edit: false //
@ -109,26 +112,18 @@ export default {
this.getList() this.getList()
}, },
goKeyReset() { goKeyReset() {
this.KEYWORDS = ''
this.STATUS = '' this.STATUS = ''
this.getQuery() this.getQuery()
}, },
getList() { getList() {
this.listLoading = true this.listLoading = true
requestFN( requestFN(
'/dingWei/getMapList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page, '/dingWei/getMapList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page, {}
{
KEYWORDS: this.KEYWORDS,
STATUS: '1',
EMPLOY_FLAG: '1',
CHECK_STATUS: '1'
}
).then((data) => { ).then((data) => {
this.listLoading = false this.listLoading = false
this.varList = data.list this.varList = data.list
this.total = data.page.totalResult this.total = data.page.total
}) }).catch((e) => {
.catch((e) => {
this.listLoading = false this.listLoading = false
}) })
}, },