From 46dc456861ca281ee70554185c6f8ef505c39118 Mon Sep 17 00:00:00 2001 From: limingtao <@ming_tao_li> Date: Tue, 6 Aug 2024 21:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/investigation/index.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue index 35395e5..689a844 100644 --- a/pages/investigation/index.vue +++ b/pages/investigation/index.vue @@ -108,7 +108,7 @@ Finished: 0, Unconfirmed: 0, }, - status: '10', + status: '1', search: '', tabbarShow: true, queryType: '1', @@ -155,6 +155,7 @@ queryTypeChange(e) { this.queryType = e this.page = 1; + this.$.setData('pageType', e) this.list = []; this.isMore = true this.getList() @@ -166,7 +167,7 @@ this.isMore = true switch (tab) { case 1: - this.status = '10'; + this.status = '1'; this.queryType = null break; // case 2: @@ -177,7 +178,7 @@ this.queryType = '1' } - this.status = '20'; + this.status = '2'; break; } this.getList() @@ -205,12 +206,13 @@ getList() { let datas = { nuserid: this.$.getData('token'), - status: this.status, + status: '10', } this.loadmorestatus = 'loading' + let query=this.status==2?`pageNum=${this.page}&pageSize=${10}&search=${this.search}&approve=${this.status}&classification=${this.queryType}`:`pageNum=${this.page}&pageSize=${10}&search=${this.search}&approve=${this.status}` this.$request.globalRequest( - `/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}&search=${this.search}&classificatio=${this.queryType}`, + `/hiddenDanger/highDanger/getHigDangerDealt?${query}`, datas, 'POST') .then(res => { this.loadmorestatus = 'loadmore' @@ -229,10 +231,10 @@ } else { this.$.toast(res.message) } - if (this.status == 10) { + if (this.status == 1) { this.$set(this.totalData, 'UnderInvestigation', res.result.total) } - if (this.status == 20) { + if (this.status == 2) { this.$set(this.totalData, 'InGovernance', res.result.total) } }).catch((err) => {