From f832a6b3befc5fc64f6c222682d19f2a851857a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?=
<15040126243@163.com>
Date: Mon, 16 Dec 2024 10:43:58 +0800
Subject: [PATCH] =?UTF-8?q?update=20=E6=B5=81=E7=A8=8B=E5=AE=9A=E4=B9=89?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A1=A8=E5=8D=95=E8=B7=AF=E5=BE=84=E4=B8=8E?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD=20=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=85=B6=E4=BB=96bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/workflow/definition/index.ts | 25 +++++++
src/api/workflow/definition/types.ts | 3 +
src/api/workflow/task/types.ts | 2 +
src/api/workflow/workflowCommon/index.ts | 2 +-
src/api/workflow/workflowCommon/types.ts | 2 +
.../workflow/processDefinition/index.vue | 72 +++++++++++++------
src/views/workflow/task/taskWaiting.vue | 4 +-
7 files changed, 86 insertions(+), 24 deletions(-)
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 @@
-
+
@@ -245,10 +248,13 @@
+
+
+
@@ -256,7 +262,7 @@