Browse Source

装置系统

yuhan 9 months ago
parent
commit
98fef46dc2

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

@@ -479,7 +479,6 @@
         })
         })
       },
       },
       submit(){
       submit(){
-        var submitData = {}
         this.confirmLoading = true;
         this.confirmLoading = true;
         let httpurl = '';
         let httpurl = '';
         let method = '';
         let method = '';
@@ -495,13 +494,12 @@
           this.confirmLoading = false;
           this.confirmLoading = false;
           return;
           return;
         }
         }
-        submitData.interlockBase = this.model
         if(this.model.interlockType === '1'){
         if(this.model.interlockType === '1'){
           var index = this.interlockTwoTree.findIndex(item => item.key === this.model.pid)
           var index = this.interlockTwoTree.findIndex(item => item.key === this.model.pid)
-          submitData.groupName = this.interlockTwoTree[index].title + '_' + this.model.interlockName
+          this.model.groupName = this.interlockTwoTree[index].title + '_' + this.model.interlockName
         }
         }
         // console.log(this.model.groupName)
         // console.log(this.model.groupName)
-        httpAction(httpurl,submitData,method).then((res)=>{
+        httpAction(httpurl,this.model,method).then((res)=>{
           if(res.success){
           if(res.success){
             this.$message.success(res.message);
             this.$message.success(res.message);
             this.$emit('ok');
             this.$emit('ok');