Răsfoiți Sursa

考试补充修改

cyy 1 an în urmă
părinte
comite
4555bb65e9
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      src/views/platform/bpmn/my-test/examDetail.vue

+ 3 - 3
src/views/platform/bpmn/my-test/examDetail.vue

@@ -74,7 +74,7 @@
                         class="card"
                     >
                         <div class="stem">
-                            <div>{{ `【${qIndex + 1}】${q.stem}` }}<van-tag class="scoreStyle" type="primary" size="small">{{ `${q.questionScore}分` }}</van-tag></div>
+                            <div :style="{width:q.rate>0?'55%':'100%'}">{{ `【${qIndex + 1}】${q.stem}` }}<van-tag class="scoreStyle" type="primary" size="small">{{ `${q.questionScore}分` }}</van-tag></div>
                             <div v-if="q.rate>0">
                                 <van-rate v-model="q.rate" :size="20" :color="colors[q.rate]" void-icon="star" void-color="#eee" readonly  />
                                 <span style="margin-left:5px">{{ texts[q.rate-1] }}</span>
@@ -178,12 +178,12 @@
                                 <div class="activity-desc-wrapper">
                                     <input id="toggleInput" v-model="isUnFold" type="checkbox" class="toggleInput"/>
                                     <div :id="'descBox'+qIndex" :ref="'text' +q.questionType+ qIndex" class="activity-desc">
-                                        <label v-if="q.resolution!==''" class="btn" for="toggleInput" @click="buttonClick(q.questionType,qIndex)">
+                                        <label v-if="q.resolution" class="btn" for="toggleInput" @click="buttonClick(q.questionType,qIndex)">
                                             {{ isTF.hasOwnProperty('text' + q.questionType + qIndex)&&isTF['text' + q.questionType + qIndex] ? '' : '...' }}
                                             <span v-if="!isTF.hasOwnProperty('text' + q.questionType + qIndex)||(isTF.hasOwnProperty('text' + q.questionType + qIndex)&&!isTF['text' + q.questionType + qIndex])" class="fontStyle"><van-icon name="arrow-down" size="0.8rem" /></span>
                                             <!-- <span v-else class="fontStyle">收起</span> -->
                                         </label>
-                                        {{ q.resolution===''?'无':q.resolution }}
+                                        {{ q.resolution||'无' }}
                                     </div>
                                 </div>
                             </div>