diff --git a/docs/变更管理/code-adjust-record-2025-07-18-wuzilong.md b/docs/变更管理/code-adjust-record-2025-07-18-wuzilong.md new file mode 100644 index 00000000..b5c5bc9c --- /dev/null +++ b/docs/变更管理/code-adjust-record-2025-07-18-wuzilong.md @@ -0,0 +1,28 @@ +# 代码变更记录 - 2025-07-18 + +## 变更时间 +2025-07-18 15:30:25 + +## 变更人员 +wuzilong + +## 变更内容 +1. 修改了满意度调查页面 `web/src/views/hq/satSurvey/index.vue` 中的评分显示方式 +2. 将原来的平均分显示改为比例显示(百分比格式) +3. 计算公式:平均分除以总分,保留一位小数,以百分比形式显示 + +## 变更原因 +优化满意度显示方式,通过百分比形式更直观地展示满意度水平,符合用户预期的显示方式。 + +## 相关文件 +- web/src/views/hq/satSurvey/index.vue + +## 变更详情 +- 将两处 `satisfactionData.overallScore.toFixed(1)` 修改为 `((satisfactionData.overallScore / currentResultSurvey.score) * 100).toFixed(1) + '%'` +- 保持满意度等级计算规则不变 + +## 测试情况 +页面显示正常,百分比计算准确。 + +## 备注 +该变更不影响后端逻辑,仅为前端展示优化。 \ No newline at end of file diff --git a/web/src/views/hq/satSurvey/index.vue b/web/src/views/hq/satSurvey/index.vue index 0865ac33..08472844 100644 --- a/web/src/views/hq/satSurvey/index.vue +++ b/web/src/views/hq/satSurvey/index.vue @@ -205,7 +205,7 @@ - + - + @@ -546,7 +546,7 @@ - + @@ -560,6 +560,7 @@ 问卷编号:{{ currentResultSurvey.surveyCode }} 目标群体:{{ getTargetGroupName(currentResultSurvey.targetGroup) }} 调查时间:{{ currentResultSurvey.startTime }} ~ {{ currentResultSurvey.endTime }} + 总分:{{ currentResultSurvey.score }} @@ -598,7 +599,7 @@
回答完成率
-
+
- +