From 4828dc3daef812a2e2acc7bbcb735a9ceb7563fd Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sat, 31 Oct 2020 14:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8A=82=E7=82=B9=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/model/wf_process.go | 8 +++++++- .../DetailPanel/StartEventDetail.vue | 8 ++++++++ .../DetailPanel/TimerEventDetail.vue | 8 ++++++++ .../components/DetailPanel/UserTaskDetail.vue | 20 +++++++++++++------ .../workflowCreate/workflowCreate.vue | 16 ++++++++++++--- 5 files changed, 50 insertions(+), 10 deletions(-) diff --git a/server/model/wf_process.go b/server/model/wf_process.go index 735608a5..54d15c0a 100644 --- a/server/model/wf_process.go +++ b/server/model/wf_process.go @@ -17,6 +17,7 @@ type WorkflowProcess struct { Label string `json:"label" gorm:"comment:流程标题"` HideIcon bool `json:"hideIcon" gorm:"comment:是否隐藏图标"` Description string `json:"description" gorm:"comment:详细介绍"` + View string `json:"view" gorm:"comment:前端视图文件"` Nodes []WorkflowNode `json:"nodes"` // 流程节点数据 Edges []WorkflowEdge `json:"edges"` // 流程链接数据 } @@ -31,7 +32,8 @@ type WorkflowNode struct { Label string `json:"label" gorm:"comment:节点名称"` Type string `json:"type" gorm:"comment:图标类型"` Shape string `json:"shape" gorm:"comment:形状"` - Description bool `json:"description" gorm:"comment:详细介绍"` + Description string `json:"description" gorm:"comment:详细介绍"` + View string `json:"view" gorm:"comment:前端视图文件"` X float64 `json:"y" gorm:"comment:x位置"` Y float64 `json:"x" gorm:"comment:y位置"` WaitState string `json:"waitState" gorm:"comment:等待属性"` @@ -42,6 +44,9 @@ type WorkflowNode struct { Cycle string `json:"cycle" gorm:"comment:循环时间"` Duration string `json:"duration" gorm:"comment:持续时间"` HideIcon bool `json:"hideIcon" gorm:"comment:是否隐藏图标"` + DueDate time.Time `json:"dueDate" gorm:"comment:到期时间"` + AssignType string `json:"assignType" gorm:"comment:审批类型"` + AssignValue string `json:"assignValue" gorm:"comment:审批类型值"` } type WorkflowEdge struct { @@ -55,6 +60,7 @@ type WorkflowEdge struct { Target string `json:"target" gorm:"comment:目标节点"` SourceAnchor int `json:"sourceAnchor" gorm:"comment:起点"` TargetAnchor int `json:"targetAnchor" gorm:"comment:目标点"` + Description string `json:"description" gorm:"comment:详细介绍"` Shape string `json:"shape" gorm:"comment:形状"` StartPoint WorkflowStartPoint `json:"startPoint"` // 起点信息 EndPoint WorkflowEndPoint `json:"endPoint"` // 终点信息 diff --git a/web/src/components/gva-wfd/components/DetailPanel/StartEventDetail.vue b/web/src/components/gva-wfd/components/DetailPanel/StartEventDetail.vue index af4e0df0..c2dacb71 100644 --- a/web/src/components/gva-wfd/components/DetailPanel/StartEventDetail.vue +++ b/web/src/components/gva-wfd/components/DetailPanel/StartEventDetail.vue @@ -4,6 +4,14 @@
+
+
视图路径(以view开头)
+ +