|
@@ -65,7 +65,7 @@
|
|
|
|
|
|
|
|
<div class="data-tab">
|
|
<div class="data-tab">
|
|
|
<ele-pro-table
|
|
<ele-pro-table
|
|
|
- ref="tableRef"
|
|
|
|
|
|
|
+ ref="tableRef2"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
@@ -199,15 +199,20 @@
|
|
|
this.selectedRow = {};
|
|
this.selectedRow = {};
|
|
|
this.selectedRowData = [];
|
|
this.selectedRowData = [];
|
|
|
this.tabValue = tab.name;
|
|
this.tabValue = tab.name;
|
|
|
- this.$refs.tableRef.clearSelection();
|
|
|
|
|
|
|
+ this.$refs.tableRef2.clearSelection();
|
|
|
},
|
|
},
|
|
|
open(row, val) {
|
|
open(row, val) {
|
|
|
|
|
+ console.log(row, val);
|
|
|
this.entranceValue = val;
|
|
this.entranceValue = val;
|
|
|
if (val == 'noFinishSubmit') {
|
|
if (val == 'noFinishSubmit') {
|
|
|
this.tabValue = '1';
|
|
this.tabValue = '1';
|
|
|
}
|
|
}
|
|
|
if (val == 'transfer') {
|
|
if (val == 'transfer') {
|
|
|
- this.tabValue = '2';
|
|
|
|
|
|
|
+ if (row.assistsName == '') {
|
|
|
|
|
+ this.tabValue = '2';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.tabValue = '1';
|
|
|
|
|
+ }
|
|
|
if (row.assists) {
|
|
if (row.assists) {
|
|
|
this.arry = row.assists.split(',');
|
|
this.arry = row.assists.split(',');
|
|
|
}
|
|
}
|
|
@@ -217,7 +222,7 @@
|
|
|
this.groupId = '';
|
|
this.groupId = '';
|
|
|
this.executorDeptName = '';
|
|
this.executorDeptName = '';
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
- this.$refs.tableRef.clearSelection();
|
|
|
|
|
|
|
+ this.$refs.tableRef2.clearSelection();
|
|
|
},
|
|
},
|
|
|
handleDone() {
|
|
handleDone() {
|
|
|
console.log('handDone');
|
|
console.log('handDone');
|
|
@@ -226,7 +231,7 @@
|
|
|
// this.tableData.find((item2) => {
|
|
// this.tableData.find((item2) => {
|
|
|
// if (item == item2.id) {
|
|
// if (item == item2.id) {
|
|
|
// console.log(item2, 'item2');
|
|
// console.log(item2, 'item2');
|
|
|
- // this.$refs.tableRef.toggleRowSelection(item2, true);
|
|
|
|
|
|
|
+ // this.$refs.tableRef2.toggleRowSelection(item2, true);
|
|
|
// }
|
|
// }
|
|
|
// });
|
|
// });
|
|
|
// });
|
|
// });
|
|
@@ -239,12 +244,12 @@
|
|
|
},
|
|
},
|
|
|
// 搜索
|
|
// 搜索
|
|
|
search() {
|
|
search() {
|
|
|
- this.$refs.tableRef.reload();
|
|
|
|
|
|
|
+ this.$refs.tableRef2.reload();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
deptClick(data) {
|
|
deptClick(data) {
|
|
|
if (data) {
|
|
if (data) {
|
|
|
- this.$refs.tableRef.reload();
|
|
|
|
|
|
|
+ this.$refs.tableRef2.reload();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -261,13 +266,13 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleSelectAll(selection) {
|
|
handleSelectAll(selection) {
|
|
|
- this.$refs.tableRef.clearSelection();
|
|
|
|
|
|
|
+ this.$refs.tableRef2.clearSelection();
|
|
|
},
|
|
},
|
|
|
handleSelectionChange(row) {
|
|
handleSelectionChange(row) {
|
|
|
if (this.tabValue == '1') {
|
|
if (this.tabValue == '1') {
|
|
|
if (row.length > 1) {
|
|
if (row.length > 1) {
|
|
|
- this.$refs.tableRef.clearSelection();
|
|
|
|
|
- this.$refs.tableRef.toggleRowSelection(row.pop());
|
|
|
|
|
|
|
+ this.$refs.tableRef2.clearSelection();
|
|
|
|
|
+ this.$refs.tableRef2.toggleRowSelection(row.pop());
|
|
|
}
|
|
}
|
|
|
this.selectedRow = row[0];
|
|
this.selectedRow = row[0];
|
|
|
} else {
|
|
} else {
|
|
@@ -317,7 +322,10 @@
|
|
|
},
|
|
},
|
|
|
confirm() {
|
|
confirm() {
|
|
|
this.visible = false;
|
|
this.visible = false;
|
|
|
- this.$emit('confirm', this.selectedRow.id);
|
|
|
|
|
|
|
+ this.$emit('confirm', {
|
|
|
|
|
+ id: this.selectedRow.id,
|
|
|
|
|
+ name: this.selectedRow.name
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
cancel() {
|
|
cancel() {
|
|
|
this.tabValue = '1';
|
|
this.tabValue = '1';
|