feat:【mall 商城】快递模版的迁移(antd 30% 列表 ok)

This commit is contained in:
YunaiV
2025-10-11 22:03:40 +08:00
parent 53195748b8
commit 7eeb52c582
3 changed files with 608 additions and 40 deletions

View File

@@ -22,7 +22,7 @@ const [FormModal, formModalApi] = useVbenModal({
});
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
gridApi.query();
}
@@ -46,10 +46,8 @@ async function handleDelete(
});
try {
await deleteDeliveryExpressTemplate(row.id as number);
message.success({
content: $t('ui.actionMessage.deleteSuccess', [row.name]),
});
onRefresh();
message.success($t('ui.actionMessage.deleteSuccess', [row.name]));
handleRefresh();
} finally {
hideLoading();
}
@@ -76,6 +74,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
},
rowConfig: {
keyField: 'id',
isHover: true,
},
toolbarConfig: {
refresh: true,
@@ -87,7 +86,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<template>
<Page auto-content-height>
<FormModal @success="onRefresh" />
<FormModal @success="handleRefresh" />
<Grid table-title="快递模板列表">
<template #toolbar-tools>
<TableAction