소스 검색

修复回显-1

gangyj 3 년 전
부모
커밋
b6d97267f5
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  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;
           })