|
@ -294,18 +294,18 @@ export default { |
|
|
//获取服务器数据 |
|
|
//获取服务器数据 |
|
|
await this.getProjectTotal() |
|
|
await this.getProjectTotal() |
|
|
await this.getLineChart() |
|
|
await this.getLineChart() |
|
|
await this.getTable() |
|
|
|
|
|
this.dataLoading = false |
|
|
this.dataLoading = false |
|
|
|
|
|
|
|
|
this.assignData() |
|
|
// this.assignData() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
async getApiData () { |
|
|
async getApiData () { |
|
|
|
|
|
|
|
|
await this.getProjectTotal() |
|
|
await this.getProjectTotal() |
|
|
await this.getLineChart() |
|
|
await this.getLineChart() |
|
|
await this.getTable(); |
|
|
|
|
|
|
|
|
|
|
|
this.assignData() |
|
|
this.assignData() |
|
|
|
|
|
|
|
@ -332,19 +332,20 @@ export default { |
|
|
} |
|
|
} |
|
|
if (index !== '0') { |
|
|
if (index !== '0') { |
|
|
await this.getApiData() |
|
|
await this.getApiData() |
|
|
this.assignPieChart() |
|
|
// this.assignPieChart() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
assignData () { |
|
|
assignData () { |
|
|
|
|
|
|
|
|
this.getPie() |
|
|
this.getPie() |
|
|
this.getLine() |
|
|
this.getLine() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleSelectChange (value) { |
|
|
handleSelectChange (value) { |
|
|
console.log(value) |
|
|
|
|
|
this.queryStartTime = value[0] + " 00:00:00" |
|
|
this.queryStartTime = value[0] + " 00:00:00" |
|
|
this.queryEndTime = value[1] + " 23:59:59" |
|
|
this.queryEndTime = value[1] + " 23:59:59" |
|
|
this.getApiData(); |
|
|
this.getApiData(); |
|
@ -565,6 +566,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getPie () { |
|
|
getPie () { |
|
|
|
|
|
|
|
|
if (this.pieInitState) { |
|
|
if (this.pieInitState) { |
|
|
this.assignPieChart() |
|
|
this.assignPieChart() |
|
|
} else { |
|
|
} else { |
|
@ -588,7 +590,7 @@ export default { |
|
|
|
|
|
|
|
|
this.pieOption.title.text = this.projectTotal |
|
|
this.pieOption.title.text = this.projectTotal |
|
|
|
|
|
|
|
|
this.clickPie(maxIndex) |
|
|
this.clickPie() |
|
|
|
|
|
|
|
|
let fun = function (params) { |
|
|
let fun = function (params) { |
|
|
_that.clickPie(params.dataIndex) |
|
|
_that.clickPie(params.dataIndex) |
|
@ -598,10 +600,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clickPie (seriesIndex) { |
|
|
clickPie (seriesIndex) { |
|
|
|
|
|
|
|
|
if (seriesIndex === 0) { |
|
|
if (seriesIndex === 0) { |
|
|
this.processStatus = 'closed_case' |
|
|
this.processStatus = 'closed_case' |
|
|
} else { |
|
|
} else if (seriesIndex === 1) { |
|
|
this.processStatus = 'processing' |
|
|
this.processStatus = 'processing' |
|
|
|
|
|
} else { |
|
|
|
|
|
this.processStatus = '' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.pieData.forEach((element, index) => { |
|
|
this.pieData.forEach((element, index) => { |
|
@ -643,28 +648,15 @@ export default { |
|
|
handleChangeAgency () { |
|
|
handleChangeAgency () { |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data |
|
|
if (obj) { |
|
|
if (obj) { |
|
|
this.orgId = obj.level === 'grid' ? 'grid' : 'agency' |
|
|
this.orgType = obj.level === 'grid' ? 'grid' : 'agency' |
|
|
this.orgId = obj.this.orgId = orgArray[0] |
|
|
this.orgId = obj.agencyId |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
this.orgId = '' |
|
|
this.orgId = '' |
|
|
this.orgType = '' |
|
|
this.orgType = '' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// let orgArray = [] |
|
|
|
|
|
// let key = this.agencyIdArray.length > 0 ? this.agencyIdArray[this.agencyIdArray.length - 1] : '' |
|
|
|
|
|
// if (key) { |
|
|
|
|
|
// debugger |
|
|
|
|
|
// orgArray = key.split('-') |
|
|
|
|
|
// this.orgId = orgArray[0] |
|
|
|
|
|
// this.orgType = orgArray[1] === 'grid' ? 'grid' : 'agency' |
|
|
|
|
|
// } else { |
|
|
|
|
|
// this.orgId = '' |
|
|
|
|
|
// this.orgType = '' |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
this.getApiData() |
|
|
this.getApiData() |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//初始化时间 |
|
|
//初始化时间 |
|
@ -707,7 +699,7 @@ export default { |
|
|
this.userId = id; |
|
|
this.userId = id; |
|
|
}, |
|
|
}, |
|
|
userId () { |
|
|
userId () { |
|
|
this.getApiData(); |
|
|
// this.getApiData(); |
|
|
window.scrollTo(0, 0); |
|
|
window.scrollTo(0, 0); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|