|
@ -230,9 +230,7 @@ export default { |
|
|
this.agencyId = this.user.agencyId; |
|
|
this.agencyId = this.user.agencyId; |
|
|
await this.getDicts(); |
|
|
await this.getDicts(); |
|
|
await this.getTableData(); |
|
|
await this.getTableData(); |
|
|
this.$nextTick(() => { |
|
|
await this.initEcharts(); |
|
|
this.initEcharts(); |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
let date = new Date() |
|
|
let date = new Date() |
|
@ -318,14 +316,19 @@ export default { |
|
|
|
|
|
|
|
|
// 获取列表 |
|
|
// 获取列表 |
|
|
async getTableData() { |
|
|
async getTableData() { |
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
const url = "/governance/satisfaction/communitySelfInsp/stats/synthesis"; |
|
|
const url = "/governance/satisfaction/communitySelfInsp/stats/synthesis"; |
|
|
const { formData } = this; |
|
|
const { formData } = this; |
|
|
const { data, code, msg } = await requestGet(url, { ...formData }); |
|
|
const { data, msg } = await requestGet(url, { ...formData }); |
|
|
this.tableLoading = false; |
|
|
|
|
|
if (code === 0) { |
|
|
|
|
|
this.total = data.total || 0; |
|
|
this.total = data.total || 0; |
|
|
this.score = [] |
|
|
this.score = [] |
|
|
this.tableData = data.categoryDatas; |
|
|
this.option.series[0].data = [] |
|
|
|
|
|
this.option.series[1].data = [] |
|
|
|
|
|
this.option.series[2].data = [] |
|
|
|
|
|
this.option.xAxis.data = [] |
|
|
|
|
|
this.tableData = data.categoryDatas || []; |
|
|
|
|
|
this.satisfactionCategory = [] |
|
|
this.formData.inspRecordId = data.inspRecordId; |
|
|
this.formData.inspRecordId = data.inspRecordId; |
|
|
this.synthesisScore = data.synthesisScore; |
|
|
this.synthesisScore = data.synthesisScore; |
|
|
this.personQty = data.personQty |
|
|
this.personQty = data.personQty |
|
@ -340,8 +343,9 @@ export default { |
|
|
this.score.push({ score: item.score, satisfactionCategoryName: item.satisfactionCategoryName, imgUrl: require(`../../../../assets/img/satisfaction/${item.satisfactionCategory}.png`) }); |
|
|
this.score.push({ score: item.score, satisfactionCategoryName: item.satisfactionCategoryName, imgUrl: require(`../../../../assets/img/satisfaction/${item.satisfactionCategory}.png`) }); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
this.myChart.setOption(this.option); |
|
|
this.$message.error(msg); |
|
|
}catch(error){ |
|
|
|
|
|
console.log(error); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|