|
|
@ -196,42 +196,19 @@ export default { |
|
|
|
watch: { |
|
|
|
currentLevelData(val) { |
|
|
|
if (val.orgId) { |
|
|
|
this.getReport(val); |
|
|
|
this.fetchDataAndProcess() |
|
|
|
this.getSatisfactionEvent() |
|
|
|
// this.getChartData(); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getReport(this.currentLevelData); |
|
|
|
this.getData(); |
|
|
|
this.fetchDataAndProcess() |
|
|
|
this.getSatisfactionEvent() |
|
|
|
}, |
|
|
|
|
|
|
|
// |
|
|
|
methods: { |
|
|
|
getReport({orgId, orgLevel}) { |
|
|
|
this.$http |
|
|
|
.get( |
|
|
|
"/actual/base/streetOverview/communityOverview?orgId=" + |
|
|
|
orgId + |
|
|
|
"&level=" + |
|
|
|
orgLevel |
|
|
|
) |
|
|
|
.then(({data: {data}}) => { |
|
|
|
this.overview = data; |
|
|
|
}); |
|
|
|
this.$http |
|
|
|
.get( |
|
|
|
"/actual/base/streetOverview/summaryReport?orgId=" + |
|
|
|
orgId + |
|
|
|
"&level=" + |
|
|
|
orgLevel |
|
|
|
) |
|
|
|
.then(({data: {data}}) => { |
|
|
|
this.report = data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
async fetchData() { |
|
|
|
const results = []; |
|
|
|
|
|
|
@ -248,11 +225,11 @@ export default { |
|
|
|
mobile: "", |
|
|
|
startTime: "", |
|
|
|
endTime: "", |
|
|
|
status: "", |
|
|
|
firstIdList: [], |
|
|
|
secondIdList: [], |
|
|
|
status:"processing", |
|
|
|
type: `${i + 1}`, |
|
|
|
agencyId: this.currentLevelData.orgId |
|
|
|
}; |
|
|
|
const response = await requestPost(url, params); // 替换为实际的接口调用 |
|
|
|
results.push(response.data); |
|
|
@ -267,6 +244,10 @@ export default { |
|
|
|
// 在调用处 |
|
|
|
async fetchDataAndProcess() { |
|
|
|
this.listLoading = true |
|
|
|
this.nddd = [] |
|
|
|
this.mdjf = [] |
|
|
|
this.zswt = [] |
|
|
|
this.ccfwfw = [] |
|
|
|
const apiResults = await this.fetchData(); |
|
|
|
this.listLoading = false |
|
|
|
/* this.nddd = this.groupList(apiResults[0].list, 4); |
|
|
@ -286,8 +267,7 @@ export default { |
|
|
|
} |
|
|
|
return newArray; |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
}, |
|
|
|
|
|
|
|
handleView({icEventId}) { |
|
|
|
this.showDialog = true; |
|
|
|
this.rowId = icEventId; |
|
|
@ -297,7 +277,7 @@ export default { |
|
|
|
}, |
|
|
|
// 获取不满意问题数 |
|
|
|
getSatisfactionEvent() { |
|
|
|
this.$http.get('/governance/satisfactionOverview/satisfactionEvent').then(({data: {data}}) => { |
|
|
|
this.$http.get('/governance/satisfactionOverview/satisfactionEvent?agencyId='+this.currentLevelData.orgId).then(({data: {data}}) => { |
|
|
|
this.event12345Num = data.event12345Num || 0 |
|
|
|
this.provinceSatisfactionNum = data.provinceSatisfactionNum || 0 |
|
|
|
this.selfInspectNum = data.selfInspectNum || 0 |
|
|
|