From 0f43e73770f188e937920ef432123c4cf3d0f8a4 Mon Sep 17 00:00:00 2001
From: pixel <303176530@qq.com>
Date: Wed, 4 Dec 2019 11:17:15 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2bug=E5=A4=84?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
QMPlusServer/model/dbModel/worfFlow.go | 20 +++---
QMPlusVuePage/src/style/base.scss | 22 ++++--
.../workflowCreate/workflowCreate.vue | 70 +++++++++----------
3 files changed, 62 insertions(+), 50 deletions(-)
diff --git a/QMPlusServer/model/dbModel/worfFlow.go b/QMPlusServer/model/dbModel/worfFlow.go
index 2e86117b3..2dc3872b6 100644
--- a/QMPlusServer/model/dbModel/worfFlow.go
+++ b/QMPlusServer/model/dbModel/worfFlow.go
@@ -8,21 +8,21 @@ import (
//工作流属性表
type Workflow struct {
gorm.Model
- WorkflowNickName string // 工作流名称
- WorkflowName string // 工作流英文id
- WorkflowDescription string // 工作流描述
- WorkflowStep []WorkflowStepInfo // 工作流步骤
+ WorkflowNickName string `json:"workflowNickName"` // 工作流名称
+ WorkflowName string `json:"workflowName"` // 工作流英文id
+ WorkflowDescription string `json:"workflowDescription"` // 工作流描述
+ WorkflowStep []WorkflowStepInfo `json:"workflowStep"` // 工作流步骤
}
// 工作流状态表
type WorkflowStepInfo struct {
gorm.Model
- WorkflowID uint `json:"-"` // 所属工作流ID
- IsStrat bool // 是否是开始流节点
- StepName string // 工作流名称
- StepNo float64 // 步骤id (第几步)
- StepAuthorityID string // 操作者级别id
- IsEnd bool // 是否是完结流节点
+ WorkflowID uint `json:"workflowID"` // 所属工作流ID
+ IsStrat bool `json:"isStrat"` // 是否是开始流节点
+ StepName string `json:"stepName"` // 工作流名称
+ StepNo float64 `json:"stepNo"` // 步骤id (第几步)
+ StepAuthorityID string `json:"stepAuthorityID"` // 操作者级别id
+ IsEnd bool `json:"isEnd"` // 是否是完结流节点
}
//创建工作流
diff --git a/QMPlusVuePage/src/style/base.scss b/QMPlusVuePage/src/style/base.scss
index 0223db2d0..a5fc9fe3b 100644
--- a/QMPlusVuePage/src/style/base.scss
+++ b/QMPlusVuePage/src/style/base.scss
@@ -18,24 +18,36 @@
float: right;
}
+.mg {
+ margin: 10px !important;
+}
+
.left-mg-xs {
- margin-left: 6px;
+ margin-left: 6px !important;
}
.left-mg-sm {
- margin-left: 10px;
+ margin-left: 10px !important;
}
.left-mg-md {
- margin-left: 14px;
+ margin-left: 14px !important;
+}
+
+.top-mg-lg {
+ margin-top: 20px !important;
+}
+
+.tb-mg-lg {
+ margin: 20px 0 !important;
}
.bottom-mg-lg {
- margin-bottom: 20px;
+ margin-bottom: 20px !important;
}
.left-mg-lg {
- margin-left: 18px;
+ margin-left: 18px !important;
}
.title-1 {
diff --git a/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue b/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue
index 7c4ea11d0..96e254b17 100644
--- a/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue
+++ b/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue
@@ -11,9 +11,10 @@
-
+ 新增
+
-
+
-
+
-
+
-
+
-
+
- 提交
+ 提交
-
From effab2d2b03afabca001c2c53f2c9261a8c7d067 Mon Sep 17 00:00:00 2001
From: pixel <303176530@qq.com>
Date: Wed, 4 Dec 2019 17:49:50 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E5=AE=9A?=
=?UTF-8?q?=E4=B9=89=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2bug=E5=A4=84?=
=?UTF-8?q?=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/view/workflow/workflowCreate/workflowCreate.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue b/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue
index 96e254b17..9577a69e5 100644
--- a/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue
+++ b/QMPlusVuePage/src/view/workflow/workflowCreate/workflowCreate.vue
@@ -69,8 +69,8 @@ export default {
workflowNickName: '',
workflowStep: [
{
- isEnd: '',
- isStrat: '',
+ isEnd: false,
+ isStrat: true,
stepAuthorityID: '',
stepName: '',
stepNo: ''
@@ -92,8 +92,8 @@ export default {
methods: {
createWorkflowStep() {
this.form.workflowStep.push({
- isEnd: '',
- isStrat: '',
+ isEnd: false,
+ isStrat: false,
stepAuthorityID: '',
stepName: '',
stepNo: ''