From ce8dc44aa8bc69819da87d33d14a7734deeb140d Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 25 Jan 2024 16:23:18 +0800
Subject: [PATCH] 扫码应用分页加loading、智能搜索接口对接
---
src/views/scanOrCode/index.vue | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/views/scanOrCode/index.vue b/src/views/scanOrCode/index.vue
index d9a7729..54fab0a 100644
--- a/src/views/scanOrCode/index.vue
+++ b/src/views/scanOrCode/index.vue
@@ -611,6 +611,7 @@
// 获取列表
getList () {
+ this.loading()
let params = {
searchKey: this.searchKey,
size: this.pages.pageSize,
@@ -627,8 +628,6 @@
} else if (this.typeValue == 5) {//扫码上报
this.getAddressManageList(params)
}
-
-
},
searchBtn () {
@@ -672,6 +671,10 @@
getAppOwerRenterRegistrantList (params) {
getAppOwerRenterRegistrantList(params).then(res => {
this.tableData = res.data.data.records
+ this.pages.total = res.data.data.total
+ setTimeout(() => {
+ loading && loading.close()
+ }, 500)
})
},
@@ -679,6 +682,10 @@
getAppOwerRenterRegistrantCohabitList (params) {
getAppOwerRenterRegistrantCohabitList(params).then(res => {
this.tableData = res.data.data.records
+ this.pages.total = res.data.data.total
+ setTimeout(() => {
+ loading && loading.close()
+ }, 500)
})
},
@@ -697,6 +704,10 @@
})
}
this.tableData = res.data.data.records
+ this.pages.total = res.data.data.total
+ setTimeout(() => {
+ loading && loading.close()
+ }, 500)
})
},
@@ -704,6 +715,10 @@
getAppEmploymentRegistrationList (params) {
getAppEmploymentRegistrationList(params).then(res => {
this.tableData = res.data.data.records
+ this.pages.total = res.data.data.total
+ setTimeout(() => {
+ loading && loading.close()
+ }, 500)
})
},
@@ -729,6 +744,10 @@
})
}
this.tableData = res.data.data.records
+ this.pages.total = res.data.data.total
+ setTimeout(() => {
+ loading && loading.close()
+ }, 500)
})
},
--
Gitblit v1.9.3