From 043c37dfb3b7d2752d382b82169de6f0cee7bc4d Mon Sep 17 00:00:00 2001
From: ssc <273702440@qq.com>
Date: Mon, 16 May 2022 08:28:49 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=B7=E5=81=87=E6=B5=81=E7=A8=8B?=
=?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=A4=BA=E4=BE=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/plugin/workflow/demo/leave.js | 25 ++
.../plugin/workflow/demo/leave/index.vue | 325 ++++++++++++++++++
src/views/plugin/workflow/util/status.js | 38 ++
3 files changed, 388 insertions(+)
create mode 100644 src/api/plugin/workflow/demo/leave.js
create mode 100644 src/views/plugin/workflow/demo/leave/index.vue
create mode 100644 src/views/plugin/workflow/util/status.js
diff --git a/src/api/plugin/workflow/demo/leave.js b/src/api/plugin/workflow/demo/leave.js
new file mode 100644
index 0000000..cfef9b8
--- /dev/null
+++ b/src/api/plugin/workflow/demo/leave.js
@@ -0,0 +1,25 @@
+import request from '@/router/axios';
+
+const prefix = '/api/blade-workflow/process/leave'
+
+export const getList = (current, size, params) => {
+ return request({
+ url: `${prefix}/list`,
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
+}
+
+export const remove = (ids) => {
+ return request({
+ url: `${prefix}/remove`,
+ method: 'post',
+ params: {
+ ids,
+ }
+ })
+}
\ No newline at end of file
diff --git a/src/views/plugin/workflow/demo/leave/index.vue b/src/views/plugin/workflow/demo/leave/index.vue
new file mode 100644
index 0000000..559a2f6
--- /dev/null
+++ b/src/views/plugin/workflow/demo/leave/index.vue
@@ -0,0 +1,325 @@
+
+
+
+
+ {{row.datetime.split(',')[0]}} ~ {{row.datetime.split(',')[1]}}
+
+
+
+ 创 建
+ 删 除
+
+
+
+ 详情
+ 流程图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/plugin/workflow/util/status.js b/src/views/plugin/workflow/util/status.js
new file mode 100644
index 0000000..14c8989
--- /dev/null
+++ b/src/views/plugin/workflow/util/status.js
@@ -0,0 +1,38 @@
+export default [
+ {
+ label: '发起流程',
+ value: 1
+ },
+ {
+ label: '审核中', // 审核通过
+ value: 2
+ },
+ {
+ label: '审核驳回',
+ value: 3
+ },
+ {
+ label: '流程终结',
+ value: 6
+ },
+ {
+ label: '流程结束',
+ value: 7
+ },
+ {
+ label: '审核中', // 到候选人/候选组
+ value: 8
+ },
+ {
+ label: '审核中', // 节点被调度
+ value: 14
+ },
+ {
+ label: '已撤销',
+ value: 17
+ },
+ {
+ label: '已删除',
+ value: 18
+ },
+]