From a66e64cf7f86e1e28afefc9b6d7fcbb772d3531e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com>
Date: Thu, 7 Jul 2022 14:24:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E5=9F=BA=E6=9C=ACok?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/route.js | 2 +-
src/views/wf/configuration.vue | 2 +-
src/views/wf/field.vue | 30 +-
src/views/wf/state.vue | 943 ++++++++++++++++++++-------------
src/views/wf/transform.vue | 64 ++-
5 files changed, 616 insertions(+), 425 deletions(-)
diff --git a/src/config/route.js b/src/config/route.js
index 14b4f10b..6adcde0b 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -168,7 +168,7 @@ const routes = [
"name": "configuration",
"path": "/wf/configuration",
"meta": {
- "title": "工单",
+ "title": "工作流配置",
"icon": "el-icon-menu",
"hidden": true
},
diff --git a/src/views/wf/configuration.vue b/src/views/wf/configuration.vue
index d588d34f..df35ddef 100644
--- a/src/views/wf/configuration.vue
+++ b/src/views/wf/configuration.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/views/wf/field.vue b/src/views/wf/field.vue
index 24872024..5949a26b 100644
--- a/src/views/wf/field.vue
+++ b/src/views/wf/field.vue
@@ -6,7 +6,7 @@
-
+
@@ -121,9 +121,8 @@
name: "field",
data() {
return {
- apiObj: this.$API.wf.field.list,
id: sessionStorage.getItem('jinYuWorkflowId'),
- list: null,
+ list: [],
type: "add",
titleMap: {
add: '新增',
@@ -193,28 +192,6 @@
}
},
mounted() {
- this.list = [
- {
- id: "5001",
- name: "scEcharts",
- subtitle: "重新封装的Echarts,暴露源对象",
- state: "1",
- type: "数据",
- progress: 70,
- user: "sss",
- time: "2010-10-10"
- },
- {
- id: "5002",
- name: "scEditor",
- subtitle: "Tinymce封装的富文本编辑器",
- state: "2",
- type: "表单",
- progress: 40,
- user: "sss",
- time: "2010-10-10"
- }
- ];
this.getList();
},
methods: {
@@ -271,8 +248,7 @@
this.addForm = Object.assign({}, row);
},
async getList() {
- let res = await this.$API.wf.getCustomfields.get(this.id);
- console.log(res);
+ let res = await this.$API.wf.workflow.customfields.req(this.id);
this.list = res;
},
},
diff --git a/src/views/wf/state.vue b/src/views/wf/state.vue
index 3043cac7..04f5ceaf 100644
--- a/src/views/wf/state.vue
+++ b/src/views/wf/state.vue
@@ -1,381 +1,590 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 是
- 否
-
-
-
-
-
-
- 普通类型
-
-
- 初始状态
-
-
- 结束状态
-
-
-
-
- {{ options_[scope.row.participant_type] }}
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 普通类型
+
+
+ 初始状态
+
+
+ 结束状态
+
+
+
+
+ {{
+ options_[scope.row.participant_type]
+ }}
+
+
+ {{
+ options2_[scope.row.distribute_type]
+ }}
+
+
+
+
+ 编辑
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
diff --git a/src/views/wf/transform.vue b/src/views/wf/transform.vue
index c3aa717d..a52f8575 100644
--- a/src/views/wf/transform.vue
+++ b/src/views/wf/transform.vue
@@ -1,11 +1,17 @@
-
-
-
+
+
+
+
+
+
+
+
-
+
@@ -38,7 +44,7 @@
-
+
@@ -78,6 +83,7 @@
+
+