فهرست منبع

fix: 调整答题结果显示颜色并隐藏答案开关

1. 将正确答案的显示颜色从#21ee21调整为#29AE2B
2. 注释掉显示答案的开关组件
3. 当题型为45时,将可修改状态同步到答案显示状态
lsc 16 ساعت پیش
والد
کامیت
e598e1624b
1فایلهای تغییر یافته به همراه9 افزوده شده و 5 حذف شده
  1. 9 5
      src/views/Student/components/choiceQuestionDetailDialog.vue

+ 9 - 5
src/views/Student/components/choiceQuestionDetailDialog.vue

@@ -21,10 +21,10 @@
                 <Switch :value="canValue" @update:value="handleCanChange" />
                 <span>{{ lang.ssShowResult }}</span>
               </div>
-              <div class="switch">
+              <!-- <div class="switch">
                 <Switch :value="answerValue" @update:value="handleAnswerChange" />
                 <span>{{ lang.ssShowAnswer }}</span>
-              </div>
+              </div> -->
             </div>
           </div>
           <div class="c_t45_msg" v-if="props.roleType == 1">
@@ -705,6 +705,9 @@ watch(() => props.resultArray?.answer, (newVal) => {
 const handleCanChange = (value: boolean) => {
   console.log(value)
   console.log(props.resultArray)
+  if (workDetail.value.type === '45') {
+    handleAnswerChange(value)
+  }
   emit('setIsResultArray', value, 'can')
 }
 
@@ -1034,7 +1037,8 @@ const setEchartsArea1 = () => {
             console.log('answerValue.value', answerValue.value)
             const item = _work.choiceUser[idx]
             if (item && item.isAnswer && answerValue.value) {
-              return '#21ee21'
+              // return '#21ee21'
+              return '#29AE2B'
             }
             return 'rgba(0, 0, 0, 0.9)'
           },
@@ -1157,12 +1161,12 @@ const setEchartsArea1 = () => {
       ;(option.series[0].data as any[]).push({
         value: i.user.length,
         itemStyle: {
-          color: isCorrect ? '#21ee21' : 'rgba(252, 207, 0, 1)',
+          color: isCorrect ? '#29AE2B' : 'rgba(252, 207, 0, 1)',
         },
         label: {
           show: true,
           position: 'top',
-          color: isCorrect ? '#21ee21' : 'rgba(116, 139, 115, 1)',
+          color: isCorrect ? '#29AE2B' : 'rgba(116, 139, 115, 1)',
           fontSize: 22,
           fontWeight: 500,
           lineHeight: 24,