From 3466b318b1b1a46894cf42b3a6c6cdfb3c7e5da8 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 20 Jan 2023 21:57:41 +0800 Subject: [PATCH] =?UTF-8?q?bpm=EF=BC=9A=E6=B5=81=E7=A8=8B=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E7=9A=84=E5=88=97=E8=A1=A8=E7=9A=84=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bpm/model/index.vue | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/yudao-ui-admin-vue3/src/views/bpm/model/index.vue b/yudao-ui-admin-vue3/src/views/bpm/model/index.vue index 1c836b119..6cc8d07af 100644 --- a/yudao-ui-admin-vue3/src/views/bpm/model/index.vue +++ b/yudao-ui-admin-vue3/src/views/bpm/model/index.vue @@ -28,7 +28,7 @@ @@ -212,7 +212,7 @@ @@ -287,6 +287,15 @@ + + + + + @@ -306,6 +315,10 @@ const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 const router = useRouter() // 路由 +import viewForm from '@form-create/element-ui' +const ViewForm = viewForm.$form() +import { setConfAndFields2 } from '@/utils/formCreate' + // ========== 列表相关 ========== const [registerTable, { reload }] = useXTable({ allSchemas: allSchemas, @@ -335,10 +348,17 @@ const handleDefinitionList = (row) => { } // 流程表单的详情按钮操作 -const handleFormDetail = (row) => { - // TODO 芋艿:表单组件开发中 - console.log(row) - message.success('动态表单开发中,预计 2 月底完成') +const formDetailVisible = ref(false) +const formDetailPreview = ref({ + rule: [], + option: {} +}) +const handleFormDetail = async (rowId: number) => { + // 设置表单 + const data = await FormApi.getFormApi(rowId) + setConfAndFields2(formDetailPreview, data.conf, data.fields) + // 弹窗打开 + formDetailVisible.value = true } // 流程图的详情按钮操作