feat:【ele】【ai】modal 部分的代码迁移
This commit is contained in:
@@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -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!);
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user