Commit 9f01990b85eb9cfc65321230dc355bce095767a7

Authored by 梁保满
1 parent 572de367

答题录分设置条件

src/views/basic/test/components/test.vue
@@ -432,16 +432,15 @@ @@ -432,16 +432,15 @@
432 </div> 432 </div>
433 <div 433 <div
434 v-if=" 434 v-if="
435 - !status &&  
436 - examReport.subjectiveScore != examReport.examPaperScore &&  
437 - examReport.examPaperId != 0 435 + !status && role != 'ROLE_BANZHUREN' && examReport.examPaperId != 0
438 " 436 "
439 > 437 >
440 <el-button type="primary" round @click="openScoreSet" 438 <el-button type="primary" round @click="openScoreSet"
441 >答卷录分</el-button 439 >答卷录分</el-button
442 > 440 >
443 -  
444 - <template v-if="role != 'ROLE_BANZHUREN'"> 441 + <template
  442 + v-if="examReport.subjectiveScore != examReport.examPaperScore"
  443 + >
445 <el-button @click="edit" type="primary" round 444 <el-button @click="edit" type="primary" round
446 >查看题目</el-button 445 >查看题目</el-button
447 ></template 446 ></template
src/views/basic/test/list.vue
@@ -154,11 +154,7 @@ @@ -154,11 +154,7 @@
154 <template v-else>未设置答案</template> 154 <template v-else>未设置答案</template>
155 </template> 155 </template>
156 <el-tooltip 156 <el-tooltip
157 - v-if="  
158 - role != 'ROLE_BANZHUREN' &&  
159 - scoped.row.subjectiveScore != scoped.row.examPaperScore &&  
160 - scoped.row.examPaperId != 0  
161 - " 157 + v-if="role != 'ROLE_BANZHUREN' && scoped.row.examPaperId != 0"
162 effect="dark" 158 effect="dark"
163 content="答卷录分" 159 content="答卷录分"
164 placement="top" 160 placement="top"