王震
2023-09-05 b64259d6ca1b599427f927b2a35cd0ae5091ac92
src/components/view/technology.vue
@@ -396,12 +396,13 @@
            process: [],
            product: [],
            procedure:[],
            checkTreeNode:'下料',
            checkTreeNode:{
               name:'下料'
            },
            towTree:[],
            value:"",
            modifyevent:false,
            dialogVisible:false,
            checkTreeNode: {},
            tableData: [],
            upIndex: 0,
            selects: [],
@@ -427,10 +428,12 @@
         this.chooseTech()
         this.chooseDevGroup()
         this.chooseElement()
         this.selectAllTechNam()
      },
      methods: {
         type(val){
            this.typeselect = val
            this.upData.type = val
            console.log(this.typeselect);
            this.selectAllTechTem()
         },
@@ -438,8 +441,8 @@
         Neworder() {
            this.dialogVisible = false
            this.addTechTemp()
            this.selectAllTechNam()
            // this.form = '';
         },
         Deleteapi() {
            this.dialogVisible = false
@@ -463,6 +466,8 @@
            }
            ).then(res=>{
               console.log(res);
               this.selectAllTechNam()
               this.form = {}
            })
         },
@@ -520,6 +525,9 @@
               headers: {
                      "Content-Type": "application/json"
                    }
            }).then(res =>{
               console.log(res);
            })
         },
         
@@ -608,22 +616,16 @@
                  }
               }
            })
            // console.log(this.selects);
            let cc = this.selects.map(el => {
               // console.log(el.id);
               return el.id
            })
            // console.log(this.delete);
            this.delete = cc.join(',')
            console.log(this.delete);
            this.delAllTech()
            // this.delete =
            // console.log('444');
            this.$message.success('删除完成')
         },
         deleteRow(index, rows) {
            // console.log(rows);
            // rows.splice(index, 1);
            this.tableData.splice(index,1)
            this.upData.id = rows.id
            this.delTechById()