reactor:【system 系统管理】area、dept、dict、loginlog 进一步统一代码风格
This commit is contained in:
@@ -34,7 +34,7 @@ const [DataFormModal, dataFormModalApi] = useVbenModal({
|
||||
});
|
||||
|
||||
/** 刷新表格 */
|
||||
function onRefresh() {
|
||||
function handleRefresh() {
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -60,9 +60,9 @@ async function handleDelete(row: SystemDictDataApi.DictData) {
|
||||
text: $t('ui.actionMessage.deleting', [row.label]),
|
||||
});
|
||||
try {
|
||||
await deleteDictData(row.id);
|
||||
await deleteDictData(row.id!);
|
||||
ElMessage.success($t('ui.actionMessage.deleteSuccess', [row.label]));
|
||||
onRefresh();
|
||||
handleRefresh();
|
||||
} finally {
|
||||
loadingInstance.close();
|
||||
}
|
||||
@@ -78,7 +78,7 @@ async function handleDeleteBatch() {
|
||||
await deleteDictDataList(checkedIds.value);
|
||||
checkedIds.value = [];
|
||||
ElMessage.success($t('ui.actionMessage.deleteSuccess'));
|
||||
onRefresh();
|
||||
handleRefresh();
|
||||
} finally {
|
||||
loadingInstance.close();
|
||||
}
|
||||
@@ -133,7 +133,7 @@ watch(
|
||||
() => props.dictType,
|
||||
() => {
|
||||
if (props.dictType) {
|
||||
onRefresh();
|
||||
handleRefresh();
|
||||
}
|
||||
},
|
||||
);
|
||||
@@ -141,7 +141,7 @@ watch(
|
||||
|
||||
<template>
|
||||
<div class="flex h-full flex-col">
|
||||
<DataFormModal @success="onRefresh" />
|
||||
<DataFormModal @success="handleRefresh" />
|
||||
|
||||
<Grid table-title="字典数据列表">
|
||||
<template #toolbar-tools>
|
||||
|
||||
Reference in New Issue
Block a user