解决下拉不加载

main
zhangqun 11 months ago
parent a9f4d50c3b
commit b365bc3faf
  1. 16
      manifest.json
  2. 7
      pages/investigation/index.vue

@ -142,14 +142,14 @@
"^/HiatmpPro" : "/HiatmpPro" "^/HiatmpPro" : "/HiatmpPro"
} }
}, },
"/hitapChat" : { "/hitapChat" : {
"target" : "http://219.147.31.25:30001/hitap", "target" : "http://219.147.31.25:30001/hitap",
"changeOrigin" : true, "changeOrigin" : true,
"secure" : false, "secure" : false,
"pathRewrite" : { "pathRewrite" : {
"^/hitapChat" : "" "^/hitapChat" : ""
} }
} }
} }
}, },
"title" : "排查隐患" "title" : "排查隐患"

@ -122,13 +122,16 @@
} }
}) })
}, },
getList() { getList(v) {
let datas = { let datas = {
nuserid: this.$.getData('token'), nuserid: this.$.getData('token'),
status: this.status, status: this.status,
} }
this.$request.globalRequest(`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST').then(res => { this.$request.globalRequest(`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST').then(res => {
if (res.code === 200) { if (res.code === 200) {
if(v){
this.list = []
}
if (res.result.total === 0) { if (res.result.total === 0) {
this.isEmpty = true; this.isEmpty = true;
} else { } else {
@ -162,6 +165,8 @@
// //
setTimeout(() => { setTimeout(() => {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
this.page = 1
this.getList('onPullDownRefresh')
}, 1500); }, 1500);
}, },
// //

Loading…
Cancel
Save