From da3a58071168168b64aa4e22dabe2e5497f9de92 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Mon, 19 May 2025 11:19:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=81=E7=A8=8B=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E:=20=E8=A1=A8=E5=8D=95=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bpm/model/form/index.vue | 34 ++-- .../bpm/model/form/modules/basic-info.vue | 13 +- .../bpm/model/form/modules/form-design.vue | 187 ++++++++++++++++++ 3 files changed, 215 insertions(+), 19 deletions(-) create mode 100644 apps/web-antd/src/views/bpm/model/form/modules/form-design.vue diff --git a/apps/web-antd/src/views/bpm/model/form/index.vue b/apps/web-antd/src/views/bpm/model/form/index.vue index 7764d634..6d86eeb0 100644 --- a/apps/web-antd/src/views/bpm/model/form/index.vue +++ b/apps/web-antd/src/views/bpm/model/form/index.vue @@ -1,6 +1,7 @@ @@ -471,7 +475,7 @@ onBeforeUnmount(() => {
-
+
{ ref="basicInfoRef" />
- - + +
+ +
-
+
diff --git a/apps/web-antd/src/views/bpm/model/form/modules/basic-info.vue b/apps/web-antd/src/views/bpm/model/form/modules/basic-info.vue index 07a47a96..2e246141 100644 --- a/apps/web-antd/src/views/bpm/model/form/modules/basic-info.vue +++ b/apps/web-antd/src/views/bpm/model/form/modules/basic-info.vue @@ -10,7 +10,7 @@ import type { SystemUserApi } from '#/api/system/user'; import { ref, watch } from 'vue'; -import { IconifyIcon, Plus, ShieldQuestion, X } from '@vben/icons'; +import { CircleHelp, IconifyIcon, Plus, X } from '@vben/icons'; import { Avatar, @@ -65,6 +65,7 @@ const rules: Record = { category: [{ required: true, message: '流程分类不能为空', trigger: 'blur' }], type: [{ required: true, message: '流程类型不能为空', trigger: 'blur' }], visible: [{ required: true, message: '是否可见不能为空', trigger: 'blur' }], + // TODO 这个的校验好像没有起作用 managerUserIds: [ { required: true, message: '流程管理员不能为空', trigger: 'blur' }, ], @@ -219,9 +220,7 @@ const validate = async () => { await formRef.value?.validate(); }; -defineExpose({ - validate, -}); +defineExpose({ validate });