王震
2023-09-05 b64259d6ca1b599427f927b2a35cd0ae5091ac92
src/components/view/technology.vue
@@ -120,7 +120,7 @@
      </div>
      <div class="choose">
         <span>类型:</span>
         <el-select v-model="search.type" size="small" placeholder="请选择" @change="type" style="width: 224px;margin-right: 30px;">
         <el-select  v-model="search.type" size="small" placeholder="请选择" @change="type" style="width: 224px;margin-right: 30px;">
            <el-option label="橡胶连接器" :value="0"></el-option>
            <el-option label="金属连接器" :value="1"></el-option>
            <el-option label="湿插拔电连接器" :value="2"></el-option>
@@ -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()