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 @@