From ceaf44950dd87a691b5a2cf956609ba5bc0ca152 Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 8 Mar 2024 10:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=80=BC=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contest/scoreRule.vue | 3 ++- .../contestDataManage/contestTaskScoreManage/detailAdd.vue | 5 +++-- src/views/contestDataManage/contestTaskScoreManage/edit.vue | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/contest/scoreRule.vue b/src/views/contest/scoreRule.vue index edc7b7543..db887c0f6 100644 --- a/src/views/contest/scoreRule.vue +++ b/src/views/contest/scoreRule.vue @@ -17,7 +17,7 @@ @@ -59,6 +59,7 @@ export default { const { data } = param; const sums = ['总分', '/', '/', 0, '/']; this.handleSummaries(data, sums); + sums[3] = sums[3] / 100; return sums; } } diff --git a/src/views/contestDataManage/contestTaskScoreManage/detailAdd.vue b/src/views/contestDataManage/contestTaskScoreManage/detailAdd.vue index 4a272202d..e2cf1025f 100644 --- a/src/views/contestDataManage/contestTaskScoreManage/detailAdd.vue +++ b/src/views/contestDataManage/contestTaskScoreManage/detailAdd.vue @@ -14,7 +14,7 @@ - + @@ -61,7 +61,7 @@ export default { if (row) { this.formModel.id = row.id; this.formModel.name = row.name; - this.formModel.score = row.score; + this.formModel.score = row.score / 100; this.formModel.criteria = row.criteria; this.formModel.children = row.children; } @@ -84,6 +84,7 @@ export default { if (valid) { this.loading = true; const data = Object.assign({}, this.formModel); + data.score = data.score * 100; if (this.type === 'edit') { this.$emit('editData', data); } else if (this.type === 'add') { diff --git a/src/views/contestDataManage/contestTaskScoreManage/edit.vue b/src/views/contestDataManage/contestTaskScoreManage/edit.vue index 36bbd8c0b..b2e526075 100644 --- a/src/views/contestDataManage/contestTaskScoreManage/edit.vue +++ b/src/views/contestDataManage/contestTaskScoreManage/edit.vue @@ -27,7 +27,7 @@ @@ -184,6 +184,7 @@ export default { const { data } = param; const sums = ['总分', '/', '/', 0, '/']; this.handleSummaries(data, sums); + sums[3] = sums[3] / 100; return sums; } }