| | |
| | | |
| | | <div |
| | | id="satisfactionBarChart" |
| | | v-loading="loading" |
| | | element-loading-text="统计加载中..." |
| | | style="width: 100%; height: 400px" |
| | | ></div> |
| | | </div> |
| | |
| | | } |
| | | return this.wardList.map((ward) => ward.value); |
| | | }, |
| | | |
| | | // 问题维度集合:从 dimensionality_type 字典取维度编码,查维度时必传 |
| | | dimensionList() { |
| | | const dict = this.dict && this.dict.type && this.dict.type.dimensionality_type; |
| | | return dict ? dict.map((d) => String(d.value)) : []; |
| | | }, |
| | | }, |
| | | |
| | | mounted() { |
| | |
| | | deptcodes: this.deptCodes, // 使用计算属性 |
| | | hospitaldistrictcodes: this.hospitalDistrictCodes, // 使用计算属性 |
| | | templateid: this.templateId, |
| | | questionType: this.queryParams.type || null, |
| | | serviceTypes: this.defaultServiceTypes, |
| | | dimensionList: this.dimensionList, // 问题维度集合,查维度时必传 |
| | | }; |
| | | |
| | | const response = await satisfactionGraphDimension(params); |
| | |
| | | return { |
| | | scriptContent: item.scriptContent || "", |
| | | scriptType: 1, |
| | | answerPerson: item.answerPerson || 0, |
| | | noAnswerPerson: item.noAnswerPerson || 0, |
| | | answerCount: item.answerPerson || 0, |
| | | averageScore: item.averageScore || 0, |
| | | maxScore: item.maxScore || 0, |
| | | minScore: item.minScore || 0, |
| | | answerRate: item.answerRate || 0, |
| | | totalCount: (item.answerPerson || 0) + (item.noAnswerPerson || 0), |
| | | answerPerson: Number(item.answerPerson) || 0, |
| | | noAnswerPerson: Number(item.noAnswerPerson) || 0, |
| | | answerCount: Number(item.answerPerson) || 0, |
| | | averageScore: Number(item.averageScore) || 0, |
| | | maxScore: Number(item.maxScore) || 0, |
| | | minScore: Number(item.minScore) || 0, |
| | | answerRate: Number(item.answerRate) || 0, |
| | | totalCount: (Number(item.answerPerson) || 0) + (Number(item.noAnswerPerson) || 0), |
| | | options: options, |
| | | }; |
| | | }); |
| | |
| | | templateid: this.templateId, |
| | | questionType: this.queryParams.type || null, |
| | | serviceTypes: this.defaultServiceTypes, |
| | | dimensionList: this.dimensionList, // 问题维度集合,查维度时必传 |
| | | }; |
| | | |
| | | const response = await statisticsByDimension(params); |
| | |
| | | dimension: item.dimension || "0", // 维度代码 |
| | | dimensionName: this.getDimensionLabel(item.dimension || "0"), // 维度名称 |
| | | scriptType: 1, |
| | | answerPerson: item.answerPerson || 0, |
| | | noAnswerPerson: item.noAnswerPerson || 0, |
| | | answerCount: item.answerPerson || 0, |
| | | averageScore: item.averageScore || 0, |
| | | maxScore: item.maxScore || 0, |
| | | minScore: item.minScore || 0, |
| | | answerRate: item.answerRate || 0, |
| | | totalCount: (item.answerPerson || 0) + (item.noAnswerPerson || 0), |
| | | answerPerson: Number(item.answerPerson) || 0, |
| | | noAnswerPerson: Number(item.noAnswerPerson) || 0, |
| | | answerCount: Number(item.answerPerson) || 0, |
| | | averageScore: Number(item.averageScore) || 0, |
| | | maxScore: Number(item.maxScore) || 0, |
| | | minScore: Number(item.minScore) || 0, |
| | | answerRate: Number(item.answerRate) || 0, |
| | | totalCount: (Number(item.answerPerson) || 0) + (Number(item.noAnswerPerson) || 0), |
| | | options: options, |
| | | }; |
| | | }); |