Browse Source

数据采集-辅助指标-分值输入判断防止出现0001 这样的伪数字

Sanmu8 1 year ago
parent
commit
31e3e0cd22
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/norm/quotaBonded.vue

+ 2 - 1
src/views/norm/quotaBonded.vue

@@ -135,7 +135,7 @@
               <div slot="header" style="margin-left: 30px; font-size: 15px">
                 <el-row>
                   <el-col :span="12">
-                    <el-form-item label-width="90px" prop="quotaName" label="指标:">
+                    <el-form-item label-width="90px" label="指标:">
                       <span>{{ dict.quotaName }}</span>
                     </el-form-item>
                   </el-col>
@@ -603,6 +603,7 @@ export default {
       this.form.bondedFeeList = this.QUOTAFEEList;
       this.form.bondedFeeList.forEach((item, i) => {
         item.quotaId = item.id;
+        item.score = Number(item.score)  //防止出现0001 这样的伪数字
       })
       this.$refs["form"].validate((valid) => {
         if (valid) {