Commit f6fc4301f0262f1fadee26e8f5c707016be21c89
1 parent
ca630320
等级调整
Showing
1 changed file
with
4 additions
and
8 deletions
src/views/standard/test/contrast.vue
| ... | ... | @@ -201,12 +201,12 @@ |
| 201 | 201 | ></el-input> |
| 202 | 202 | % |
| 203 | 203 | <template v-if="fromData.levelType == 0"> |
| 204 | - ({{ index != 0 ? "含" : "" | |
| 204 | + ({{ index != 0 ? "不含" : "" | |
| 205 | 205 | }}{{ |
| 206 | 206 | Number(((item[1] / 100) * examPaperScore).toFixed(1)) |
| 207 | 207 | }}分) |
| 208 | 208 | </template> |
| 209 | - <template v-else>{{ index != 0 ? "含" : "" }}</template> | |
| 209 | + <template v-else>{{ index != 0 ? "不含" : "" }}</template> | |
| 210 | 210 | </p> |
| 211 | 211 | <p>~</p> |
| 212 | 212 | <p class="item3"> |
| ... | ... | @@ -220,14 +220,10 @@ |
| 220 | 220 | ></el-input> |
| 221 | 221 | % |
| 222 | 222 | <template v-if="fromData.levelType == 0"> |
| 223 | - ({{ index < fromData.levels.length - 1 ? "不含" : "" | |
| 224 | - }}{{ | |
| 223 | + ({{ | |
| 225 | 224 | Number(((item[2] / 100) * examPaperScore).toFixed(1)) |
| 226 | 225 | }}分) |
| 227 | 226 | </template> |
| 228 | - <template v-else>{{ | |
| 229 | - index < fromData.levels.length - 1 ? "不含" : "" | |
| 230 | - }}</template> | |
| 231 | 227 | </p> |
| 232 | 228 | <p class="item"> |
| 233 | 229 | <el-link |
| ... | ... | @@ -403,7 +399,6 @@ export default { |
| 403 | 399 | const { data, info, status } = await this.$request.defaultLevels(); |
| 404 | 400 | if (status === 0) { |
| 405 | 401 | this.defaultLevels = { ...data } || { |
| 406 | - type: 0, | |
| 407 | 402 | levelType: 0, |
| 408 | 403 | levels: [ |
| 409 | 404 | ["优秀", 100, 90], |
| ... | ... | @@ -412,6 +407,7 @@ export default { |
| 412 | 407 | ["不合格", 59.9, 0], |
| 413 | 408 | ], |
| 414 | 409 | }; |
| 410 | + this.defaultLevels.type = 0 | |
| 415 | 411 | this.fromData.levelType = this.defaultLevels.levelType; |
| 416 | 412 | this.fromData.levels = [...this.defaultLevels.levels]; |
| 417 | 413 | sessionStorage.setItem( | ... | ... |