reactor:【system 系统管理】area、dept、dict、loginlog 进一步统一代码风格

This commit is contained in:
YunaiV
2025-09-06 09:39:09 +08:00
parent 84e32a0884
commit fcaa81ff3b
15 changed files with 135 additions and 175 deletions

View File

@@ -27,7 +27,7 @@ const [FormModal, formModalApi] = useVbenModal({
});
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
gridApi.query();
}
@@ -50,7 +50,7 @@ async function handleDelete(row: SystemNoticeApi.Notice) {
try {
await deleteNotice(row.id as number);
message.success($t('ui.actionMessage.deleteSuccess', [row.title]));
onRefresh();
handleRefresh();
} finally {
hideLoading();
}
@@ -67,7 +67,7 @@ async function handleDeleteBatch() {
await deleteNoticeList(checkedIds.value);
checkedIds.value = [];
message.success($t('ui.actionMessage.deleteSuccess'));
onRefresh();
handleRefresh();
} finally {
hideLoading();
}
@@ -132,7 +132,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<template>
<Page auto-content-height>
<FormModal @success="onRefresh" />
<FormModal @success="handleRefresh" />
<Grid table-title="公告列表">
<template #toolbar-tools>
<TableAction