Explorar el Código

数据采集-辅助指标-分值输入判断防止出现0001 这样的伪数字在输入的同时自动转换

Sanmu8 hace 1 año
padre
commit
57f0e36264
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/views/norm/quotaBonded.vue

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

@@ -349,6 +349,7 @@ export default {
     checkPermi,
     checkRole,
     maxChange(dict){
+      dict.score = Number(dict.score)
       if(dict.score > dict.maxScore){
         this.$message.warning("分数最大不能大于"+dict.maxScore)
         dict.score = dict.maxScore
@@ -358,6 +359,7 @@ export default {
       }
     },
     minChange(dict){
+      dict.score = Number(dict.score)
       if(dict.score < dict.maxScore){
         this.$message.warning("分数最小不能小于"+dict.maxScore)
         dict.score = dict.maxScore