private DoubleClick(row: any, column: any, cell: any, event: any) { // 双几行删除
this.$confirm('确定要删除这条信息吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
const NewData: any = [];
const Index = row.index * 1;
this.tableData[this.activeName].filter((item: any) => {
if (row.index !== item.index) {
if (Index < (item.index * 1)) {
item.index = item.index - 1;
NewData.push(item);
} else if (Index > (item.index * 1)) {
NewData.push(item);
}
}
});
this.tableData[this.activeName] = NewData;
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除!',
});
});
}