| | |
| | | <!-- 主体右 --> |
| | | <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> |
| | |
| | | let cc = this.selects.map(el => { |
| | | return el.id |
| | | }) |
| | | cc.splice(0,1) |
| | | this.delete = cc.join(',') |
| | | console.log(this.delete); |
| | | this.delAllTechskill() |
| | |
| | | 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); |
| | | } |
| | | }); |
| | | }, |
| | | //编辑 |
| | | |