Explorar el Código

系统设置默认值

yuhan hace 5 meses
padre
commit
823f76dd05

+ 9 - 5
src/views/module_interLock/baseInterLock/modules/BaseInterLockModal.vue

@@ -322,12 +322,16 @@
         // this.getSystemValue()
         this.modelDefault.pid=''
         this.edit(Object.assign(this.modelDefault , obj));
-        },
-        edit (record) {
-          // this.getInterlockTwoTree()
-          this.getData('0', 'interlockTwoTree')
-          // this.getSystemValue()
+      },
+      edit (record) {
+        // this.getInterlockTwoTree()
+        this.getData('0', 'interlockTwoTree')
+        // this.getSystemValue()
         this.model = Object.assign({}, record);
+        this.model.controlSystemStatusAbnormal = this.model.controlSystemStatusNormal === '0' ? '1' : '0'
+        this.model.bypassNo = this.model.bypassYes === '0' ? '1' : '0'
+        this.model.instrumentStatusAbnormal = this.model.instrumentStatusNormal === '0' ? '1' : '0'
+        this.model.interlockStatusWty = this.model.interlockStatusTy === '0' ? '1' : '0'
         this.visible = true;
       },
       close () {