feat: 统一方法名 on => handle

This commit is contained in:
xingyu4j
2025-10-15 14:19:30 +08:00
parent daf01c0da8
commit 4052e3c8d2
78 changed files with 273 additions and 275 deletions

View File

@@ -22,7 +22,7 @@ import { useGridColumns, useGridFormSchema } from './data';
defineOptions({ name: 'BpmProcessInstanceMy' });
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
gridApi.query();
}
@@ -43,7 +43,7 @@ function handleCancel(row: BpmTaskApi.Task) {
try {
await cancelProcessInstanceByStartUser(row.id, scope.value);
message.success('取消成功');
onRefresh();
handleRefresh();
} catch {
return false;
}

View File

@@ -22,7 +22,7 @@ import { useGridColumns, useGridFormSchema } from './data';
defineOptions({ name: 'BpmProcessInstanceManager' });
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
gridApi.query();
}
@@ -50,7 +50,7 @@ function handleCancel(row: BpmProcessInstanceApi.ProcessInstance) {
try {
await cancelProcessInstanceByAdmin(row.id, scope.value);
message.success('取消成功');
onRefresh();
handleRefresh();
} catch {
return false;
}

View File

@@ -62,7 +62,7 @@ const parseFormCreateFields = (formFields?: string[]) => {
};
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
if (gridApi) {
gridApi.query();
}
@@ -97,7 +97,7 @@ const handleCancel = async (row: BpmProcessInstanceApi.ProcessInstance) => {
},
}).then(() => {
message.success('取消成功');
onRefresh();
handleRefresh();
});
};