Fixiaobai
2023-09-15 c7ccbc6510a9350e0a0a5a39a84f46c382d080b3
src/components/view/Technicalindex.vue
@@ -94,7 +94,10 @@
            <!-- 主体右 -->
            <div class="right">
               <el-table :data="tableData" style="width: 100%;overflow-y: auto;min-height: 100%"
                  max-height="100%" row-key="name" border @selection-change="handleSelectionChange"
                  max-height="100%" row-key="name" border
                  @select="selectTr"
                  ref="multipleTable"
                  @selection-change="handleSelectionChange"
                  default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
                  <el-table-column type="selection" width="55">
                  </el-table-column>
@@ -219,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>
@@ -306,6 +309,7 @@
                modifyevent:false,
                dialogVisible:false,
                tableData: [],
            crafval:'',
                typeselect:0,
                upData:{},
                upDia:false,
@@ -459,6 +463,7 @@
            let cc = this.selects.map(el => {
               return el.id
            })
            cc.splice(0,1)
            this.delete = cc.join(',')
            console.log(this.delete);
            this.delAllTechskill()
@@ -518,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();
@@ -549,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;
@@ -599,12 +609,15 @@
         modify() {
            this.modifyevent = true
         },
         // deleteRow(index, rows) {
         // console.log();
         // rows.splice(index, 1);
         // },
         handleSelectionChange(val) {
            this.selects = val;
            this.deleteList = [];
                val.forEach((v) => {
                if (v.id !== undefined) {
                    this.deleteList.push(v.id);
                }
                });
         },
         //编辑