|
|
|
@ -313,104 +313,18 @@ export default { |
|
|
|
}, |
|
|
|
// 搜索事件 |
|
|
|
handleSearch(val) { |
|
|
|
console.log(this.formData); |
|
|
|
this.getTableData(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取列表 |
|
|
|
async getTableData() { |
|
|
|
// this.tableLoading = true; |
|
|
|
// this.tableData = [ |
|
|
|
// { |
|
|
|
// satisfactionCategory: "culturalFacility", |
|
|
|
// satisfactionCategoryName: "文化设施", |
|
|
|
// score: "20", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "sportsFacility", |
|
|
|
// satisfactionCategoryName: "体育设施", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "ecologicalEnv", |
|
|
|
// satisfactionCategoryName: "生态环境", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "socialSecurity", |
|
|
|
// satisfactionCategoryName: "社会治安", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "socialAssistance", |
|
|
|
// satisfactionCategoryName: "社会救助", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "oldPeopleProvide", |
|
|
|
// satisfactionCategoryName: "老有所养", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "basicEducation", |
|
|
|
// satisfactionCategoryName: "基础教育", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// satisfactionCategory: "medical", |
|
|
|
// satisfactionCategoryName: "病有所医", |
|
|
|
// score: "50", |
|
|
|
// badQty: 40, |
|
|
|
// goodQty: 20, |
|
|
|
// veryGoodQty: 30, |
|
|
|
// }, |
|
|
|
// ]; |
|
|
|
// const allowedCategories = this.dicts.satisfaction_category.map( |
|
|
|
// (item) => item.value |
|
|
|
// ); |
|
|
|
// this.tableData.forEach((item) => { |
|
|
|
// if (allowedCategories.includes(item.satisfactionCategory)) { |
|
|
|
// this.option.series[0].data.push(item.veryGoodQty); |
|
|
|
// this.option.series[1].data.push(item.goodQty); |
|
|
|
// this.option.series[2].data.push(item.badQty); |
|
|
|
// this.option.xAxis.data.push(item.satisfactionCategoryName); |
|
|
|
// this.satisfactionCategory.push(item.satisfactionCategory); |
|
|
|
// this.score.push({ |
|
|
|
// score: item.score, |
|
|
|
// satisfactionCategoryName: item.satisfactionCategoryName, |
|
|
|
// imgUrl: require(`../../../../assets/img/satisfaction/${item.satisfactionCategory}.png`), |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// console.log(this.score, "综合得分"); |
|
|
|
const url = "/governance/satisfaction/communitySelfInsp/stats/synthesis"; |
|
|
|
|
|
|
|
const { formData } = this; |
|
|
|
const { data, code, msg } = await requestGet(url, { ...formData }); |
|
|
|
this.tableLoading = false; |
|
|
|
if (code === 0) { |
|
|
|
this.total = data.total || 0; |
|
|
|
this.score = [] |
|
|
|
this.tableData = data.categoryDatas; |
|
|
|
this.formData.inspRecordId = data.inspRecordId; |
|
|
|
this.synthesisScore = data.synthesisScore; |
|
|
|
|