feat:【ele】【ai】modal 部分的代码迁移

This commit is contained in:
YunaiV
2025-10-26 16:41:03 +08:00
parent fc6a467e63
commit 86cae454d1
11 changed files with 14 additions and 25 deletions

View File

@@ -39,7 +39,8 @@ export function useFormSchema(): VbenFormSchema[] {
label: '状态',
component: 'RadioGroup',
componentProps: {
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'), },
options: getDictOptions(DICT_TYPE.COMMON_STATUS, 'number'),
},
defaultValue: CommonStatusEnum.ENABLE,
},
];

View File

@@ -37,7 +37,6 @@ function handleEdit(row: AiModelToolApi.Tool) {
async function handleDelete(row: AiModelToolApi.Tool) {
const loadingInstance = ElLoading.service({
text: $t('ui.actionMessage.deleting', [row.name]),
duration: 0,
});
try {
await deleteTool(row.id!);

View File

@@ -5,7 +5,7 @@ import { computed, ref } from 'vue';
import { useVbenModal } from '@vben/common-ui';
import { ElMessage as message } from 'element-plus';
import { ElMessage } from 'element-plus';
import { useVbenForm } from '#/adapter/form';
import { createTool, getTool, updateTool } from '#/api/ai/model/tool';