From 917b4cbe663dd840492bb47842be0f1ed422a4f8 Mon Sep 17 00:00:00 2001
From: 阳洁 <2077506045@qq.com>
Date: 星期三, 17 一月 2024 15:20:04 +0800
Subject: [PATCH] 修改VAQ取消选择后图片分类错误问题、调整VAQ提交页面

---
 src/views/exam/paper/values.vue |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/views/exam/paper/values.vue b/src/views/exam/paper/values.vue
index 3fe33f4..f0667b2 100644
--- a/src/views/exam/paper/values.vue
+++ b/src/views/exam/paper/values.vue
@@ -312,7 +312,7 @@
 							<div v-html="$t('values_pic_tmpArea_desc')">
 
 							</div>
-							<el-button type="primary" round style="height: fit-content;margin: 0 10px;"
+							<el-button type="primary" round style="height: fit-content;margin-top:5px"
 								@click="step3_commit" :disabled="submitDisable">
 								{{$t('commit')}}
 							</el-button>
@@ -337,7 +337,7 @@
 					</div>
 				</div>
 				<div style="display:flex;margin-top: 200px;">
-					<div style="display: inline-block;min-width: 150px;text-align: right;padding-right: 5px;">
+					<div style="display: inline-block;min-width: 160px;text-align: right;padding-right: 5px;">
 						<div class="mul-inlinediv-row mul-inlinediv-lineheight"
 							v-for="(item,index) in step2ScoreRanges">
 							<span v-if="item.stepName=='涓嶇‘瀹氭槸鍚︾浉浼�'">
@@ -955,8 +955,19 @@
 			resetQuestionItemsSubjectIdById(id, value) {
 				for (let item of this.questionItems) {
 					if (item.id == id) {
-						item["subjectId"] = value
-						item['content'] = this.getLikeTypeByScoreRangeItemOrder(value)
+						// 濡傛灉涓簄ull锛屽氨鏄粠閫夋嫨涓彇娑�
+						if (value == null) {
+							item["subjectId"] = value
+							item['content'] = item['tempContent']
+						} else {
+							if (item['content'] != null && item['content'] != undefined) {
+								item['tempContent'] = item['content']
+							}
+							item["subjectId"] = value
+							item['content'] = this.getLikeTypeByScoreRangeItemOrder(value)
+						}
+
+						console.log("鏇存敼content:", item)
 					}
 				}
 				//console.log('resetQuestionItems...', id, value, this.questionItems)
@@ -967,6 +978,9 @@
 					if (this.isNull(item[key])) {
 						item[key] = value
 						if ("subjectId" == key) {
+							if (item['content'] != null && item['content'] != undefined) {
+								item['tempContent'] = item['content']
+							}
 							item['content'] = this.getLikeTypeByScoreRangeItemOrder(value)
 						}
 					}

--
Gitblit v1.9.1