Commit 391f66b96a3643279cb45396dd42ec757ad7168e
1 parent
66f2f9c2
异常设备信息显示问题,单题型总分错误
Showing
2 changed files
with
29 additions
and
22 deletions
src/views/examinationPaper/edit.vue
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | <div> |
3 | 3 | <back-box> |
4 | 4 | <template slot="title"> |
5 | - <span>{{type == 1?'修改试卷':'修改答案'}}</span> | |
5 | + <span>{{ type == 1 ? "修改试卷" : "修改答案" }}</span> | |
6 | 6 | </template> |
7 | 7 | </back-box> |
8 | 8 | <div class="content"> |
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | }}老师修改了答案 |
15 | 15 | </p></template |
16 | 16 | > |
17 | - <div class="answer-title" :class="type == 1?'t-left':''"> | |
17 | + <div class="answer-title" :class="type == 1 ? 't-left' : ''"> | |
18 | 18 | <p class="name-box" v-if="type == 1"> |
19 | 19 | <span>试卷名称:</span> |
20 | 20 | <el-input class="ipt-name" v-model="form.title"></el-input> |
... | ... | @@ -310,7 +310,8 @@ |
310 | 310 | <el-button type="danger" plain round @click="linkBack">取消</el-button> |
311 | 311 | <el-button type="primary" round @click="save">保存</el-button> |
312 | 312 | </div> |
313 | - <el-dialog :close-on-click-modal="false" | |
313 | + <el-dialog | |
314 | + :close-on-click-modal="false" | |
314 | 315 | title="批量设置答案" |
315 | 316 | :visible.sync="diaSetAns" |
316 | 317 | width="400" |
... | ... | @@ -394,7 +395,8 @@ |
394 | 395 | <el-button @click="diaSetAns = false">取 消</el-button> |
395 | 396 | </div> |
396 | 397 | </el-dialog> |
397 | - <el-dialog :close-on-click-modal="false" | |
398 | + <el-dialog | |
399 | + :close-on-click-modal="false" | |
398 | 400 | :title="stem.type == 1 ? '上传题干' : '上传题目解析'" |
399 | 401 | :visible.sync="dialogStem" |
400 | 402 | v-if="dialogStem" |
... | ... | @@ -427,7 +429,12 @@ |
427 | 429 | <el-button @click="dialogStem = false">关闭弹窗</el-button> |
428 | 430 | </div> |
429 | 431 | </el-dialog> |
430 | - <el-dialog :close-on-click-modal="false" title="题目打标" :visible.sync="dialogTag" width="500"> | |
432 | + <el-dialog | |
433 | + :close-on-click-modal="false" | |
434 | + title="题目打标" | |
435 | + :visible.sync="dialogTag" | |
436 | + width="500" | |
437 | + > | |
431 | 438 | <div> |
432 | 439 | <el-form ref="form" :model="stem" label-width="160px"> |
433 | 440 | <el-form-item label="题目难度:"> |
... | ... | @@ -520,7 +527,7 @@ export default { |
520 | 527 | return a + (Number(b.score) || 0); |
521 | 528 | }, 0); |
522 | 529 | } else { |
523 | - score += item.score; | |
530 | + score += (item.score || 0); | |
524 | 531 | } |
525 | 532 | }, 0); |
526 | 533 | return Number(score).toFixed(2); |
... | ... | @@ -1126,7 +1133,7 @@ export default { |
1126 | 1133 | color: #333; |
1127 | 1134 | font-weight: 700; |
1128 | 1135 | padding: 20px 0; |
1129 | - &.t-left{ | |
1136 | + &.t-left { | |
1130 | 1137 | text-align: left; |
1131 | 1138 | } |
1132 | 1139 | .totals { | ... | ... |
src/views/standard/device/error.vue
... | ... | @@ -13,21 +13,6 @@ |
13 | 13 | align="center" |
14 | 14 | width="160" |
15 | 15 | ></el-table-column> |
16 | - <el-table-column prop="abnormalSource" label="信息来源" align="center"> | |
17 | - <template slot-scope="scoped"> | |
18 | - {{ | |
19 | - scoped.row.abnormalSource == 0 | |
20 | - ? "无" | |
21 | - : scoped.row.abnormalSource == 1 | |
22 | - ? "云平台" | |
23 | - : scoped.row.abnormalSource == 2 | |
24 | - ? "授课端" | |
25 | - : scoped.row.abnormalSource == 3 | |
26 | - ? "出厂工具" | |
27 | - : "发卡工具" | |
28 | - }} | |
29 | - </template> | |
30 | - </el-table-column> | |
31 | 16 | <el-table-column prop="deviceType" label="设备类型" align="center"> |
32 | 17 | <template slot-scope="scoped"> |
33 | 18 | {{ |
... | ... | @@ -83,6 +68,21 @@ |
83 | 68 | label="状态" |
84 | 69 | align="center" |
85 | 70 | ></el-table-column> |
71 | + <el-table-column prop="abnormalSource" label="信息来源" align="center"> | |
72 | + <template slot-scope="scoped"> | |
73 | + {{ | |
74 | + scoped.row.abnormalSource == 0 | |
75 | + ? "无" | |
76 | + : scoped.row.abnormalSource == 1 | |
77 | + ? "云平台" | |
78 | + : scoped.row.abnormalSource == 2 | |
79 | + ? "授课端" | |
80 | + : scoped.row.abnormalSource == 3 | |
81 | + ? "出厂工具" | |
82 | + : "发卡工具" | |
83 | + }} | |
84 | + </template> | |
85 | + </el-table-column> | |
86 | 86 | <el-table-column label="操作" align="center" width="100" |
87 | 87 | ><template slot-scope="scoped"> |
88 | 88 | <el-link | ... | ... |