|
|
@@ -204,15 +204,8 @@ export default {
|
|
|
this.$refs.table.reload();
|
|
|
},
|
|
|
remove(row) {
|
|
|
- if (row.id) {
|
|
|
- route.taskinstanceDelete([row.id]).then(() => {
|
|
|
- this.$message.success('删除成功');
|
|
|
- this.reload();
|
|
|
- });
|
|
|
- } else {
|
|
|
- const data = this.$refs.table.getData() ?? [];
|
|
|
- this.$refs.table.setData(data.filter((d) => d.code !== row.code));
|
|
|
- }
|
|
|
+ const data = this.$refs.table.getData() ?? [];
|
|
|
+ this.$refs.table.setData(data.filter((d) => d.id !== row.id));
|
|
|
this.$emit('taskList', this.$refs.table.getData())
|
|
|
},
|
|
|
/* 表格数据源 */
|