mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-11 12:03:15 +08:00
fix: update delete functionality to use spelDelete API
This commit is contained in:
@@ -10,8 +10,7 @@ import { getVxePopupContainer } from '@vben/utils';
|
|||||||
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
import { Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||||
|
|
||||||
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
|
||||||
import { configRemove } from '#/api/system/config';
|
import { spelList,spelDelete } from '#/api/workflow/spel';
|
||||||
import { spelList } from '#/api/workflow/spel';
|
|
||||||
|
|
||||||
import { columns, querySchema } from './data';
|
import { columns, querySchema } from './data';
|
||||||
import spelDrawer from './spel-drawer.vue';
|
import spelDrawer from './spel-drawer.vue';
|
||||||
@@ -75,7 +74,7 @@ async function handleEdit(record: Spel) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleDelete(row: Spel) {
|
async function handleDelete(row: Spel) {
|
||||||
await configRemove([row.id]);
|
await spelDelete([row.id]);
|
||||||
await tableApi.query();
|
await tableApi.query();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +86,7 @@ function handleMultiDelete() {
|
|||||||
okType: 'danger',
|
okType: 'danger',
|
||||||
content: `确认删除选中的${ids.length}条记录吗?`,
|
content: `确认删除选中的${ids.length}条记录吗?`,
|
||||||
onOk: async () => {
|
onOk: async () => {
|
||||||
await configRemove(ids);
|
await spelDelete(ids);
|
||||||
await tableApi.query();
|
await tableApi.query();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user