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 @@
- {{ scope.row.score === 0? '': scope.row.score }}
+ {{ scope.row.score === 0? '': scope.row.score/100 }}
@@ -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 @@
- {{ scope.row.score === 0? '': scope.row.score }}
+ {{ scope.row.score === 0? '': scope.row.score/100 }}
@@ -184,6 +184,7 @@ export default {
const { data } = param;
const sums = ['总分', '/', '/', 0, '/'];
this.handleSummaries(data, sums);
+ sums[3] = sums[3] / 100;
return sums;
}
}