main
limingtao 11 months ago
parent 2893cfa8d3
commit 46dc456861
  1. 16
      pages/investigation/index.vue

@ -108,7 +108,7 @@
Finished: 0, Finished: 0,
Unconfirmed: 0, Unconfirmed: 0,
}, },
status: '10', status: '1',
search: '', search: '',
tabbarShow: true, tabbarShow: true,
queryType: '1', queryType: '1',
@ -155,6 +155,7 @@
queryTypeChange(e) { queryTypeChange(e) {
this.queryType = e this.queryType = e
this.page = 1; this.page = 1;
this.$.setData('pageType', e)
this.list = []; this.list = [];
this.isMore = true this.isMore = true
this.getList() this.getList()
@ -166,7 +167,7 @@
this.isMore = true this.isMore = true
switch (tab) { switch (tab) {
case 1: case 1:
this.status = '10'; this.status = '1';
this.queryType = null this.queryType = null
break; break;
// case 2: // case 2:
@ -177,7 +178,7 @@
this.queryType = '1' this.queryType = '1'
} }
this.status = '20'; this.status = '2';
break; break;
} }
this.getList() this.getList()
@ -205,12 +206,13 @@
getList() { getList() {
let datas = { let datas = {
nuserid: this.$.getData('token'), nuserid: this.$.getData('token'),
status: this.status, status: '10',
} }
this.loadmorestatus = 'loading' 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( this.$request.globalRequest(
`/hiddenDanger/highDanger/getHigDangerDealt?pageNum=${this.page}&pageSize=${10}&search=${this.search}&classificatio=${this.queryType}`, `/hiddenDanger/highDanger/getHigDangerDealt?${query}`,
datas, 'POST') datas, 'POST')
.then(res => { .then(res => {
this.loadmorestatus = 'loadmore' this.loadmorestatus = 'loadmore'
@ -229,10 +231,10 @@
} else { } else {
this.$.toast(res.message) this.$.toast(res.message)
} }
if (this.status == 10) { if (this.status == 1) {
this.$set(this.totalData, 'UnderInvestigation', res.result.total) this.$set(this.totalData, 'UnderInvestigation', res.result.total)
} }
if (this.status == 20) { if (this.status == 2) {
this.$set(this.totalData, 'InGovernance', res.result.total) this.$set(this.totalData, 'InGovernance', res.result.total)
} }
}).catch((err) => { }).catch((err) => {

Loading…
Cancel
Save