Fixiaobai
2023-09-15 c7ccbc6510a9350e0a0a5a39a84f46c382d080b3
src/components/view/Technicalindex.vue
@@ -222,7 +222,7 @@
                        <el-col :span="11" :offset="2">
                           <el-form-item label="工艺">
                              <template>
                                 <el-select v-model="form.name" placeholder="请选择" allow-create filterable>
                                 <el-select v-model="form.name" placeholder="请选择" @change="craftrow" allow-create filterable>
                                    <el-option v-for="item in craftapi" :key="item.id" :label="item.name" :value="item.id">
                                    </el-option>
                                 </el-select>
@@ -309,6 +309,7 @@
                modifyevent:false,
                dialogVisible:false,
                tableData: [],
            crafval:'',
                typeselect:0,
                upData:{},
                upDia:false,
@@ -416,7 +417,8 @@
                  "Content-Type": "application/json"
               }
            }).then(res => {
               this.selectAllright()
               /* this.selectAllright() */
                 this.$parent.removeAllTab()
            })
         },
         submitUpData() { //确定
@@ -429,8 +431,9 @@
            this.$axios.post(this.$api.url.delTechBy, {
               id: this.upData.id
            }).then(res => {
               this.selectAllright()
               /* this.selectAllright() */
               this.$message.success('删除完成')
               this.$parent.removeAllTab()
            })
         },
         deleteRow(index, rows) {
@@ -444,7 +447,8 @@
            this.$axios.post(this.$api.url.delAllTechskill, {
               ids: this.delete
            }).then(res => {
               this.selectAllright()
               /* this.selectAllright() */
               this.$parent.removeAllTab()
            })
         },
         dels() {
@@ -519,6 +523,7 @@
               })[0]
               console.log(one);
               let name = one.children[0].id
               this.checkTreeNode.id = name
               console.log(name);
               this.selectAllrightStart(name)
               this.selectDataList();
@@ -550,12 +555,16 @@
               console.log(this.tableData);
            });
         },
         craftrow(val){
            this.crafval = val
            this.chooseProFath()
         },
         //上级
         chooseProFath() {
            console.log(this.checkTreeNode.id);
            this.$axios.get(this.$api.url.chooseProFath, {
               params: {
                  techTemId: this.checkTreeNode.id
                  techTemId:this.crafval
               }
            }).then(res => {
               this.higherlevel = res.data;