瀏覽代碼

装置系统问题优化

yuhan 10 月之前
父節點
當前提交
69a09c9d66
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/module_interLock/baseInterLock/modules/BaseInterLockModal.vue

+ 4 - 2
src/views/module_interLock/baseInterLock/modules/BaseInterLockModal.vue

@@ -494,8 +494,10 @@
           this.confirmLoading = false;
           return;
         }
-        var index = this.interlockTwoTree.findIndex(item => item.key === this.model.pid)
-        this.model.groupName = this.interlockTwoTree[index].title + '_' + this.model.interlockName
+        if(this.model.interlockType === '1'){
+          var index = this.interlockTwoTree.findIndex(item => item.key === this.model.pid)
+          this.model.groupName = this.interlockTwoTree[index].title + '_' + this.model.interlockName
+        }
         // console.log(this.model.groupName)
         httpAction(httpurl,this.model,method).then((res)=>{
           if(res.success){