diff --git a/src/api/workflow/definition/index.ts b/src/api/workflow/definition/index.ts index 02d7019..34337bb 100644 --- a/src/api/workflow/definition/index.ts +++ b/src/api/workflow/definition/index.ts @@ -130,6 +130,31 @@ export const add = (data: FlowDefinitionForm) => { }); }; +/** + * 修改 + * @param data 参数 + * @returns + */ +export const edit = (data: FlowDefinitionForm) => { + return request({ + url: `/workflow/definition`, + method: 'put', + data: data + }); +}; + +/** + * 查询详情 + * @param id 参数 + * @returns + */ +export const getInfo = (id: number | string) => { + return request({ + url: `/workflow/definition/${id}`, + method: 'get' + }); +}; + /** * 复制流程定义 * @param id 流程定义id diff --git a/src/api/workflow/definition/types.ts b/src/api/workflow/definition/types.ts index c09a276..d888167 100644 --- a/src/api/workflow/definition/types.ts +++ b/src/api/workflow/definition/types.ts @@ -9,6 +9,7 @@ export interface FlowDefinitionVo { id: string; flowName: string; flowCode: string; + formPath: string; version: string; isPublish: number; activityStatus: number; @@ -17,9 +18,11 @@ export interface FlowDefinitionVo { } export interface FlowDefinitionForm { + id: string; flowName: string; flowCode: string; category: string; + formPath: string; } export interface definitionXmlVO { diff --git a/src/api/workflow/task/types.ts b/src/api/workflow/task/types.ts index c930e91..8ea803b 100644 --- a/src/api/workflow/task/types.ts +++ b/src/api/workflow/task/types.ts @@ -24,6 +24,8 @@ export interface FlowTaskVO { nodeName: string; flowCode: string; flowStatus: string; + formCustom: string; + formPath: string; nodeType: number; nodeRatio: string | number; version?: string; diff --git a/src/api/workflow/workflowCommon/index.ts b/src/api/workflow/workflowCommon/index.ts index 2efdf56..fd9e7c0 100644 --- a/src/api/workflow/workflowCommon/index.ts +++ b/src/api/workflow/workflowCommon/index.ts @@ -5,7 +5,7 @@ export default { proxy.$tab.closePage(proxy.$route); console.log(routerJumpVo); proxy.$router.push({ - path: `/workflow/leaveEdit/index`, + path: routerJumpVo.formPath, query: { id: routerJumpVo.businessKey, type: routerJumpVo.type, diff --git a/src/api/workflow/workflowCommon/types.ts b/src/api/workflow/workflowCommon/types.ts index 54383ea..9991b4a 100644 --- a/src/api/workflow/workflowCommon/types.ts +++ b/src/api/workflow/workflowCommon/types.ts @@ -2,6 +2,8 @@ export interface RouterJumpVo { businessKey: string; taskId: string | number; type: string; + formCustom: string; + formPath: string; } export interface StartProcessBo { diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue index 7c413d0..1e9a607 100644 --- a/src/views/workflow/processDefinition/index.vue +++ b/src/views/workflow/processDefinition/index.vue @@ -44,6 +44,9 @@ 添加 + + 修改 + 删除 @@ -51,7 +54,7 @@ 部署流程文件 - 导出 + 导出 @@ -59,7 +62,7 @@ - + @@ -223,7 +226,7 @@ - + @@ -256,7 +262,7 @@