feat: 新增流程定义页面

This commit is contained in:
xlsea
2025-05-22 22:56:59 +08:00
parent 32c241564d
commit 11aba9e2c8
19 changed files with 899 additions and 15 deletions

View File

@ -40,5 +40,51 @@ declare namespace Api {
/** 工作流分类列表 */
type WorkflowCategoryList = WorkflowCategory[];
/** 工作流发布状态 */
type WorkflowPublishStatus = 0 | 1 | 9;
/** definition */
type Definition = Common.CommonTenantRecord<{
/** 主键id */
id: CommonType.IdType;
/** 流程编码 */
flowCode: string;
/** 流程名称 */
flowName: string;
/** 流程类别 */
category: string;
/** 流程版本 */
version: string;
/** 是否发布0未发布 1已发布 9失效 */
isPublish: WorkflowPublishStatus;
/** 审批表单是否自定义Y是 N否 */
formCustom: string;
/** 审批表单路径 */
formPath: string;
/** 流程激活状态0挂起 1激活 */
activityStatus: number;
/** 监听器类型 */
listenerType: string;
/** 监听器路径 */
listenerPath: string;
/** 业务详情 存业务表对象json字符串 */
ext: string;
/** 删除标志 */
delFlag: string;
}>;
/** definition search params */
type DefinitionSearchParams = CommonType.RecordNullable<
Pick<Api.Workflow.Definition, 'flowCode' | 'flowName' | 'category'> & Api.Common.CommonSearchParams
>;
/** definition operate params */
type DefinitionOperateParams = CommonType.RecordNullable<
Pick<Api.Workflow.Definition, 'id' | 'flowCode' | 'flowName' | 'category' | 'formPath'>
>;
/** definition list */
type DefinitionList = Api.Common.PaginatingQueryRecord<Definition>;
}
}

View File

@ -12,6 +12,7 @@ declare module 'vue' {
BetterScroll: typeof import('./../components/custom/better-scroll.vue')['default']
BooleanTag: typeof import('./../components/custom/boolean-tag.vue')['default']
ButtonIcon: typeof import('./../components/custom/button-icon.vue')['default']
copy: typeof import('./../components/custom/dept-tree-select copy.vue')['default']
CountTo: typeof import('./../components/custom/count-to.vue')['default']
DarkModeContainer: typeof import('./../components/common/dark-mode-container.vue')['default']
DeptTree: typeof import('./../components/custom/dept-tree.vue')['default']
@ -144,5 +145,6 @@ declare module 'vue' {
ThemeSchemaSwitch: typeof import('./../components/common/theme-schema-switch.vue')['default']
UserSelect: typeof import('./../components/custom/user-select.vue')['default']
WaveBg: typeof import('./../components/custom/wave-bg.vue')['default']
WorkflowCategorySelect: typeof import('./../components/custom/workflow-category-select.vue')['default']
}
}

View File

@ -55,6 +55,7 @@ declare module "@elegant-router/types" {
"user-center": "/user-center";
"workflow": "/workflow";
"workflow_category": "/workflow/category";
"workflow_process-definition": "/workflow/process-definition";
};
/**
@ -149,6 +150,7 @@ declare module "@elegant-router/types" {
| "system_user"
| "tool_gen"
| "workflow_category"
| "workflow_process-definition"
>;
/**