From 508593e80a3ad8623b8fbb165f4809f427d459c1 Mon Sep 17 00:00:00 2001 From: yujh Date: Wed, 2 Oct 2024 10:10:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E6=B5=81=E7=A8=8B=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../method/process.epc/diagram.schema.tpl | 20 ++++++++++++++++++- .../process.flowchart/diagram.schema.tpl | 18 +++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl b/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl index 8fcc2b2e..210c5053 100644 --- a/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl +++ b/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl @@ -13,6 +13,7 @@ {name:"Risk", type:"string", value:"", category:"default"}, {name:"Remarks", type:"string", value:"", category:"default"} ]}); + Schema.addGlobalCommand("method_user_task", [ {action:"move", x:"100*0.05+ 100/11*2*0.5-100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"}, {action:"curve", x1:"100*0.05+ 100/11*2*0.30", y1:"60*0.1+ 60/55*16*0.3 - 60/55*16*0.4*2/3", x2:"100*0.05+ 100/11*2*0.5+100/11*2*0.2", y2:"60*0.1+ 60/55*16*0.3 - 60/55*16*0.4*2/3", x:"100*0.05+ 100/11*2*0.5+100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"}, @@ -304,6 +305,7 @@ Schema.addShape({name:"method_service_node", title:"线下审批", text:"线下 ]}); + /***Method*/Schema.addShape({name:"method_approval_node3", title:"系统任务", text:"系统任务",groupName:"features3", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ {actions:[ {action:"move", x:"w*0", y:"5"}, @@ -374,7 +376,23 @@ Schema.addShape({name:"method_service_node4", title:"人工任务", text:"人工 ]} ]}); - +Schema.addShape({name:"sub_process_node", title:"子流程", text:"子流程", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"197,197,197"}, + fillStyle:{type:"gradient", gradientType:"linear", beginColor:"255,255,255", endColor:"237,237,237", angle:Math.PI * 0.5}, textBlock:{x:"20", y:"0", w:"w-40", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[ + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"0", y:"0"}, + {action:"line", x:"w", y:"0"}, + {action:"line", x:"w", y:"h"}, + {action:"line", x:"0", y:"h"}, + {action:"close"} + ]}, + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"20", y:"0"}, + {action:"line", x:"w-20", y:"0"}, + {action:"line", x:"w-20", y:"h"}, + {action:"line", x:"20", y:"h"}, + {action:"close"} + ]} +]}); /***And*/Schema.addShape({name:"and", title:"与", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[ {lineStyle:{lineWidth:0},actions:{ref:"round"}}, {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ diff --git a/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl b/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl index 32a3ebdf..fe4d8e33 100644 --- a/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl +++ b/com.actionsoft.apps.coe.method.process.flowchart/method/process.flowchart/diagram.schema.tpl @@ -379,6 +379,24 @@ Schema.addShape({name:"method_service_node4", title:"人工任务", text:"人工 ]} ]}); +Schema.addShape({name:"sub_process_node", title:"子流程", text:"子流程", category:"process_flowchart", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"197,197,197"}, + fillStyle:{type:"gradient", gradientType:"linear", beginColor:"255,255,255", endColor:"237,237,237", angle:Math.PI * 0.5}, textBlock:{x:"20", y:"0", w:"w-40", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[ + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"0", y:"0"}, + {action:"line", x:"w", y:"0"}, + {action:"line", x:"w", y:"h"}, + {action:"line", x:"0", y:"h"}, + {action:"close"} + ]}, + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"20", y:"0"}, + {action:"line", x:"w-20", y:"0"}, + {action:"line", x:"w-20", y:"h"}, + {action:"line", x:"20", y:"h"}, + {action:"close"} + ]} +]}); + /***菱形:Decision*/Schema.addShape({name:"decision", title:"判定", text:"判定", category:"process_flowchart", props:{w:150, h:66},fillStyle:{color:"175,210,255"}, path:[