refactor: (web-ele)优化多个组件的删除操作和确认逻辑

- 将 ElMessageBox 替换为自定义 confirm 函数- 添加全局 loading 功能
- 优化错误处理和消息提示- 调整部分组件属性和样式
This commit is contained in:
lrl
2025-08-01 13:56:55 +08:00
parent c447145d62
commit 38daaa2934
63 changed files with 674 additions and 662 deletions

View File

@@ -1,7 +1,7 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { DICT_TYPE } from '#/utils/dict';
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
/** 表单配置 */
export function useFormSchema(): VbenFormSchema[] {
@@ -55,7 +55,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
componentProps: {
placeholder: '请选择活动状态',
clearable: true,
dictType: DICT_TYPE.COMMON_STATUS,
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
},
];