Commit c9318ed04efd78c72fda781a6782fb987a5f6555
1 parent
4d5235d7
多班对比等级设置问题
Showing
1 changed file
with
4 additions
and
4 deletions
src/views/basic/test/components/contrast.vue
... | ... | @@ -322,10 +322,10 @@ export default { |
322 | 322 | let params = { ...this.fromData }; |
323 | 323 | if (params.levelType == 0) { |
324 | 324 | params.levels = params.levels.map((item) => { |
325 | - console.log(item); | |
326 | - item[1] = ((item[1] / 100) * this.examPaperScore).toFixed(1); | |
327 | - item[2] = ((item[2] / 100) * this.examPaperScore).toFixed(1); | |
328 | - return item; | |
325 | + let jsons = [...item] | |
326 | + jsons[1] = ((jsons[1] / 100) * this.examPaperScore).toFixed(1); | |
327 | + jsons[2] = ((jsons[2] / 100) * this.examPaperScore).toFixed(1); | |
328 | + return jsons; | |
329 | 329 | }); |
330 | 330 | } |
331 | 331 | const data = await this.$request.exportExamMultiReport({ | ... | ... |