From 4901d92ce68d1e1f7880c87a7c345c089645c3a0 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 14 九月 2023 17:39:32 +0800
Subject: [PATCH] modified: src/components/view/rawInsDetail.vue
---
src/components/view/Technicalindex.vue | 26 ++++++++++++++++++--------
1 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/src/components/view/Technicalindex.vue b/src/components/view/Technicalindex.vue
index 96f7f9f..9d33124 100644
--- a/src/components/view/Technicalindex.vue
+++ b/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>
@@ -413,7 +416,8 @@
"Content-Type": "application/json"
}
}).then(res => {
- this.selectAllright()
+ /* this.selectAllright() */
+ this.$parent.removeAllTab()
})
},
submitUpData() { //纭畾
@@ -426,8 +430,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) {
@@ -441,7 +446,8 @@
this.$axios.post(this.$api.url.delAllTechskill, {
ids: this.delete
}).then(res => {
- this.selectAllright()
+ /* this.selectAllright() */
+ this.$parent.removeAllTab()
})
},
dels() {
@@ -456,6 +462,7 @@
let cc = this.selects.map(el => {
return el.id
})
+ cc.splice(0,1)
this.delete = cc.join(',')
console.log(this.delete);
this.delAllTechskill()
@@ -596,12 +603,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);
+ }
+ });
},
//缂栬緫
--
Gitblit v1.9.3