Browse Source

修复回显-1

gangyj 3 years ago
parent
commit
b6d97267f5
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/views/manager/contractinfo/detail.vue

+ 12 - 0
src/views/manager/contractinfo/detail.vue

@@ -862,6 +862,12 @@ export default {
           if (Number(this.contractForm.contractAmount) < 0) {
             this.contractForm.contractAmount = 0;
           }
+          if(Number(this.contractForm.securityLevel) <0){
+            this.contractForm.securityLevel = 0;
+          }
+          if(Number(this.contractForm.storagePeriod) <0){
+            this.contractForm.storagePeriod = 0;
+          }
           this.$nextTick(() => {
             this.typeChang['1'] = false;
           })
@@ -892,6 +898,12 @@ export default {
           if (Number(this.contractForm.contractAmount) < 0) {
             this.contractForm.contractAmount = 0;
           }
+          if(Number(this.contractForm.securityLevel) <0){
+            this.contractForm.securityLevel = 0;
+          }
+          if(Number(this.contractForm.storagePeriod) <0){
+            this.contractForm.storagePeriod = 0;
+          }
           this.$nextTick(() => {
             this.typeChang['1'] = false;
           })