|
|
|
@ -224,7 +224,7 @@
@@ -224,7 +224,7 @@
|
|
|
|
|
function handleTaskOrdinaryDelete(record) { |
|
|
|
|
const index = getTaskOrdinaryDataSource().findIndex(item => item.key == record.key); |
|
|
|
|
if (index != -1) { |
|
|
|
|
getTaskOrdinaryDataSource().splice(record.index, 1); |
|
|
|
|
getTaskOrdinaryDataSource().splice(index, 1); |
|
|
|
|
} else notification.error({ |
|
|
|
|
message: `找不到key:${record.key}的数据,请刷新页面重试!`, |
|
|
|
|
duration: 2 |
|
|
|
@ -247,7 +247,7 @@
@@ -247,7 +247,7 @@
|
|
|
|
|
function handleTaskPresetDelete(record) { |
|
|
|
|
const index = getTaskPresetDataSource().findIndex(item => item.key == record.key); |
|
|
|
|
if (index != -1) { |
|
|
|
|
getTaskPresetDataSource().splice(record.index, 1); |
|
|
|
|
getTaskPresetDataSource().splice(index, 1); |
|
|
|
|
} else notification.error({ |
|
|
|
|
message: `找不到key:${record.key}的数据,请刷新页面重试!`, |
|
|
|
|
duration: 2 |
|
|
|
|