From b365bc3fafdfa728dc5f6ef17a65c19ab4bbcfa0 Mon Sep 17 00:00:00 2001 From: zhangqun <179111901@qq.com> Date: Thu, 18 Jul 2024 11:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=B8=8B=E6=8B=89=E4=B8=8D?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 18 +++++++++--------- pages/investigation/index.vue | 7 ++++++- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/manifest.json b/manifest.json index c562777..e0f3f12 100644 --- a/manifest.json +++ b/manifest.json @@ -141,15 +141,15 @@ "pathRewrite" : { "^/HiatmpPro" : "/HiatmpPro" } - }, - "/hitapChat" : { - "target" : "http://219.147.31.25:30001/hitap", - "changeOrigin" : true, - "secure" : false, - "pathRewrite" : { - "^/hitapChat" : "" - } - } + }, + "/hitapChat" : { + "target" : "http://219.147.31.25:30001/hitap", + "changeOrigin" : true, + "secure" : false, + "pathRewrite" : { + "^/hitapChat" : "" + } + } } }, "title" : "排查隐患" diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue index c48824e..586000d 100644 --- a/pages/investigation/index.vue +++ b/pages/investigation/index.vue @@ -122,13 +122,16 @@ } }) }, - getList() { + getList(v) { let datas = { nuserid: this.$.getData('token'), status: this.status, } this.$request.globalRequest(`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST').then(res => { if (res.code === 200) { + if(v){ + this.list = [] + } if (res.result.total === 0) { this.isEmpty = true; } else { @@ -162,6 +165,8 @@ // 延迟关闭刷新动画 setTimeout(() => { uni.stopPullDownRefresh(); + this.page = 1 + this.getList('onPullDownRefresh') }, 1500); }, // 页面上拉触底事件的处理函数