From 99f528e235f11126fea44480c6e8888a9e463f2f Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期六, 08 十一月 2025 21:09:53 +0800
Subject: [PATCH] feat:任务附件上传和同步
---
ruoyi-ui/src/views/evaluation/index.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/views/evaluation/index.vue b/ruoyi-ui/src/views/evaluation/index.vue
index e0fae2a..2d58018 100644
--- a/ruoyi-ui/src/views/evaluation/index.vue
+++ b/ruoyi-ui/src/views/evaluation/index.vue
@@ -97,6 +97,7 @@
v-for="option in getDimensionOptions(dimension)"
:key="option.value"
:label="option.value"
+
:aria-label="option.label">
{{ option.label }}
</el-radio>
@@ -385,7 +386,18 @@
getDimensionOptions(dimension) {
if (!dimension.options) return [];
try {
- return JSON.parse(dimension.options);
+ const options = JSON.parse(dimension.options);
+
+ // 妫�鏌ユ槸鍚︽湁榛樿閫変腑鐨勯�夐」
+ const defaultSelected = options.find(option => option.selected === true);
+ if (defaultSelected && !this.selectedOptions[dimension.dimensionId]) {
+ // 璁剧疆榛樿閫変腑
+ this.$set(this.selectedOptions, dimension.dimensionId, defaultSelected.value);
+ // 鍚屾椂鏇存柊evaluationDetails
+ this.updateDimensionOption(dimension.dimensionId, defaultSelected.value);
+ }
+
+ return options;
} catch (error) {
console.error('Error parsing options for', dimension.dimensionName, ':', error);
return [];
--
Gitblit v1.9.1