From 9a3a9eec09897e8b9cb857df43634d829bd65edf Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Tue, 24 Jun 2025 14:10:47 +0800 Subject: [PATCH] fix: type error --- .../src/views/bpm/form/designer/index.vue | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/apps/web-antd/src/views/bpm/form/designer/index.vue b/apps/web-antd/src/views/bpm/form/designer/index.vue index b270b9fe..473827db 100644 --- a/apps/web-antd/src/views/bpm/form/designer/index.vue +++ b/apps/web-antd/src/views/bpm/form/designer/index.vue @@ -21,7 +21,7 @@ const props = defineProps<{ type: 'copy' | 'create' | 'edit'; }>(); -// 流程表单详情 +/** 流程表单详情 */ const flowFormConfig = ref(); const [FormModal, formModalApi] = useVbenModal({ @@ -31,7 +31,7 @@ const [FormModal, formModalApi] = useVbenModal({ const designerRef = ref>(); -// 表单设计器配置 +/** 表单设计器配置 */ const designerConfig = ref({ switchType: [], // 是否可以切换组件类型,或者可以相互切换的字段 autoActive: true, // 是否自动选中拖入的组件 @@ -80,7 +80,7 @@ const currentFormId = computed(() => { }); // 加载表单配置 -async function loadFormConfig(id: number | string) { +async function loadFormConfig(id: number) { try { const formDetail = await getFormDetail(id); flowFormConfig.value = formDetail; @@ -106,8 +106,7 @@ async function initializeDesigner() { } } -// TODO @ziye:注释使用 /** */ 风格,高亮更明显哈,方法注释; -// 保存表单 +/** 保存表单 */ function handleSave() { formModalApi .setData({ @@ -118,7 +117,7 @@ function handleSave() { .open(); } -// 返回列表页 +/** 返回列表页 */ function onBack() { router.push({ path: '/bpm/manager/form', @@ -137,7 +136,11 @@ onMounted(() => { - + - -