Commit 9f01990b85eb9cfc65321230dc355bce095767a7
1 parent
572de367
答题录分设置条件
Showing
2 changed files
with
5 additions
and
10 deletions
src/views/basic/test/components/test.vue
... | ... | @@ -432,16 +432,15 @@ |
432 | 432 | </div> |
433 | 433 | <div |
434 | 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 | 438 | <el-button type="primary" round @click="openScoreSet" |
441 | 439 | >答卷录分</el-button |
442 | 440 | > |
443 | - | |
444 | - <template v-if="role != 'ROLE_BANZHUREN'"> | |
441 | + <template | |
442 | + v-if="examReport.subjectiveScore != examReport.examPaperScore" | |
443 | + > | |
445 | 444 | <el-button @click="edit" type="primary" round |
446 | 445 | >查看题目</el-button |
447 | 446 | ></template | ... | ... |
src/views/basic/test/list.vue
... | ... | @@ -154,11 +154,7 @@ |
154 | 154 | <template v-else>未设置答案</template> |
155 | 155 | </template> |
156 | 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 | 158 | effect="dark" |
163 | 159 | content="答卷录分" |
164 | 160 | placement="top" | ... | ... |