Browse Source

自查bug

V1.0
mk 2 years ago
parent
commit
6a35630dea
  1. 1
      src/views/modules/satisfaction/communitySelfInsp/followUpDetail.vue
  2. 88
      src/views/modules/satisfaction/communitySelfInsp/index.vue

1
src/views/modules/satisfaction/communitySelfInsp/followUpDetail.vue

@ -100,7 +100,6 @@ export default {
},
//
async created() {
console.log(this.period);
await this.getDicts()
await this.handleArr()
await this.getInspResult()

88
src/views/modules/satisfaction/communitySelfInsp/index.vue

@ -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;

Loading…
Cancel
Save