From c9396276d877ee51be7cd7e9e288e58467969391 Mon Sep 17 00:00:00 2001 From: limingtao <@ming_tao_li> Date: Thu, 8 Aug 2024 16:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E5=AE=8C=E6=88=90=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/investigation/index.vue | 43 ++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue index 7969195..f865431 100644 --- a/pages/investigation/index.vue +++ b/pages/investigation/index.vue @@ -98,6 +98,7 @@ // 公用的js bgUrl1: '', // 登录信息背景图 list: [], + list2: [], isEmpty: false, isMore: true, page: 1, @@ -163,7 +164,9 @@ handleTabClick(tab, falg = false) { this.tab = tab; this.page = 1; + // this.search='' this.list = []; + this.list2 = []; this.isMore = true switch (tab) { case 1: @@ -206,6 +209,42 @@ this.page = 1; this.list = [] this.getList() + this.getNum1() + this.getNum2() + }, + getNum1() { + let datas = { + nuserid: this.$.getData('token'), + status: '10', + + } + let query = 1 == 2 ? + `pageNum=${this.page}&pageSize=${10}&search=${this.search}&approve=${1}&classification=${this.queryType}` : + `pageNum=${this.page}&pageSize=${10}&search=${this.search}&approve=${1}` + this.$request.globalRequest( + `/hiddenDanger/highDanger/getHigDangerDealt?${query}`, + datas, 'POST') + .then(res => { + this.$set(this.totalData, 'UnderInvestigation', res.result.total) + }).catch((err) => { + }) + }, + getNum2() { + let datas = { + nuserid: this.$.getData('token'), + status: '10', + + } + let query = 2 == 2 ? + `pageNum=${this.page}&pageSize=${10}&search=${this.search}&approve=${2}&classification=${this.queryType?this.queryType:1}` : + `pageNum=${this.page}&pageSize=${10}&search=${this.search}&approve=${2}` + this.$request.globalRequest( + `/hiddenDanger/highDanger/getHigDangerDealt?${query}`, + datas, 'POST') + .then(res => { + this.$set(this.totalData, 'InGovernance', res.result.total) + }).catch((err) => { + }) }, getList() { let datas = { @@ -214,7 +253,9 @@ } 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}` + 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?${query}`, datas, 'POST')