diff --git a/pages/index/index.vue b/pages/index/index.vue index 0ca3180..589f84b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -8,7 +8,7 @@ 待办 - {{ totalData.Unconfirmed }} + {{ totalData.UnderInvestigation }} diff --git a/pages/investigation/index.vue b/pages/investigation/index.vue index 8325e99..463f047 100644 --- a/pages/investigation/index.vue +++ b/pages/investigation/index.vue @@ -14,7 +14,7 @@ 待办 - {{ totalData.Unconfirmed }} + {{ totalData.UnderInvestigation }} 已完成 - {{ totalData.Finished }} + {{ totalData.InGovernance }} @@ -89,8 +89,7 @@ }, onShow: function() { - this.getData1() - this.getData2() + this.getData() }, // 计算属性 computed: { @@ -118,33 +117,7 @@ } this.getList() }, - getData1() { - let datas = { - nuserid: this.$.getData('token'), - status: '10', - } - this.loadmorestatus = 'loading' - this.$request.globalRequest( - `/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST') - .then(res => { - console.log(res) - this.totalData.Unconfirmed = res.result.total - }).catch((err) => {}) - - }, - getData2() { - let datas = { - nuserid: this.$.getData('token'), - status: '20', - } - this.loadmorestatus = 'loading' - this.$request.globalRequest( - `/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}`, datas, 'POST') - .then(res => { - this.totalData.Finished = res.result.total - }).catch((err) => {}) - }, getData() { this.$request.globalRequest('/hiddenDanger/highDanger/getHighDangerStatusNum', { nuserid: this.$.getData('token')