浏览代码

系统设置默认值

yuhan 5 月之前
父节点
当前提交
823f76dd05
共有 1 个文件被更改,包括 9 次插入5 次删除
  1. 9 5
      src/views/module_interLock/baseInterLock/modules/BaseInterLockModal.vue

+ 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 () {