feat:【antd】bpm form 的迁移

This commit is contained in:
YunaiV
2025-10-20 22:06:36 +08:00
parent fe9928f9bf
commit 0b39a8ff38
14 changed files with 125 additions and 135 deletions

View File

@@ -27,7 +27,7 @@ import {
Switch,
} from 'ant-design-vue';
import { getFormDetail } from '#/api/bpm/form';
import { getForm } from '#/api/bpm/form';
import { getModelList } from '#/api/bpm/model';
import {
@@ -354,7 +354,7 @@ const loadFormInfo = async () => {
);
if (!childInfo) return;
const formInfo = await getFormDetail(childInfo.formId);
const formInfo = await getForm(childInfo.formId);
childFormFieldOptions.value = [];
if (formInfo.fields) {
formInfo.fields.forEach((fieldStr: string) => {

View File

@@ -17,7 +17,7 @@ import { handleTree } from '@vben/utils';
import { Button } from 'ant-design-vue';
import { getFormDetail } from '#/api/bpm/form';
import { getForm } from '#/api/bpm/form';
import { getUserGroupSimpleList } from '#/api/bpm/userGroup';
import { getSimpleDeptList } from '#/api/system/dept';
import { getSimplePostList } from '#/api/system/post';
@@ -82,7 +82,7 @@ watch(
() => props.modelFormId,
async (newVal) => {
if (newVal) {
const form = await getFormDetail(newVal);
const form = await getForm(newVal);
formFields.value = form?.fields;
} else {
// 如果 modelFormId 为空,清空表单字段