Bläddra i källkod

系统设置默认值

yuhan 5 månader sedan
förälder
incheckning
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 () {