107 lines
5.6 KiB
Smarty
107 lines
5.6 KiB
Smarty
|
|
Schema.addCategory({name:"aris_organization", text:"组织图", dataAttributes:[
|
||
|
|
{name:"No.", type:"number", value:"", category:"default"},
|
||
|
|
{name:"Name", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Owner", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Link", type:"link", value:"", category:"default"},
|
||
|
|
{name:"Memo", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Cost", type:"number", value:"", category:"default"},
|
||
|
|
{name:"Time", type:"number", value:"", category:"default"},
|
||
|
|
{name:"Manner", type:"list", value:"", category:"default"},
|
||
|
|
{name:"Department", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Input", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Output", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Risk", type:"string", value:"", category:"default"},
|
||
|
|
{name:"Remarks", type:"string", value:"", category:"default"}
|
||
|
|
]});
|
||
|
|
/***内嵌矩形*/Schema.addGlobalCommand("inline_rect",[
|
||
|
|
{action:"move",x:"40",y:"5"},
|
||
|
|
{action:"line",x:"w",y:"5"},
|
||
|
|
{action:"line",x:"w",y:"h"},
|
||
|
|
{action:"line",x:"40",y:"h"},
|
||
|
|
{action:"close"}
|
||
|
|
]);
|
||
|
|
|
||
|
|
/***组织单元*/Schema.addShape({name:"organizationalUnit_aris",title:"组织单元",text:"组织单元",category:"aris_organization",
|
||
|
|
props:{w:140,h:80,scaling:true,panelProps:{translate: true, x: 1, y: 1}, titleProps: {x:44,y:2,w:100,h:30}},
|
||
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"},
|
||
|
|
lineStyle:{lineColor: "83,83,83", lineStyle:"solid",lineWidth:1},
|
||
|
|
fillStyle:{color:"255, 226, 133",type:"solid"},
|
||
|
|
path:[
|
||
|
|
{actions:{ref:"rectangle"}},
|
||
|
|
{lineStyle:{lineWidth:1},fillStyle:{type:"none"},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:0},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"w-1",y:"1"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
||
|
|
{lineStyle:{lineWidth:0},fillStyle:{color:"255,255,255"},actions:[{action:"move",x:"1",y:"30"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"w-1",y:"h-1"},{action:"line",x:"1",y:"h-1"},{action:"close"}]},
|
||
|
|
{lineStyle:{lineWidth:0},fillStyle:{colorOverlay:"multiplyOverlay"},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"30",y:"1"},{action:"line",x:"30",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
||
|
|
fillStyle:{type: "none"},
|
||
|
|
actions:[
|
||
|
|
{action: "curveArc",centerX: "15",centerY: "11.5",radius: "3.5",startAngle: "0",endAngle: "2 * Math.PI"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
||
|
|
fillStyle:{type: "none"},
|
||
|
|
actions:[
|
||
|
|
{action: "curveArc",centerX: "15",centerY: "21",radius: "6",startAngle: "0",endAngle: "Math.PI"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
||
|
|
fillStyle:{type: "none"},
|
||
|
|
actions:[
|
||
|
|
{action: "move",x: "6.5",y: "19.5"},
|
||
|
|
{action: "quadraticCurve",x1: "7",y1: "15",x: "10",y: "15"},
|
||
|
|
{action: "curve",x1: "8.5",y1: "13",x2: "8.5",y2: "10.5",x: "10.5",y: "9"},
|
||
|
|
|
||
|
|
{action: "move",x: "23.5",y: "19.5"},
|
||
|
|
{action: "quadraticCurve",x1: "23",y1: "15",x: "20",y: "15"},
|
||
|
|
{action: "curve",x1: "21.5",y1: "13",x2: "21.5",y2: "10.5",x: "19.5",y: "9"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
||
|
|
]});
|
||
|
|
|
||
|
|
/***岗位*/Schema.addShape({name:"position_aris",title:"岗位",text:"岗位",category:"aris_organization",
|
||
|
|
props:{w:140,h:80,scaling:true,panelProps:{translate: true, x: 1, y: 1}, titleProps: {x:44,y:2,w:100,h:30}},
|
||
|
|
textBlock:{x:"0",y:"30",w:"w",h:"h-30"},
|
||
|
|
lineStyle:{lineColor: "83,83,83", lineStyle:"solid",lineWidth:1},
|
||
|
|
fillStyle:{color:"255, 226, 133",type:"solid"},
|
||
|
|
path:[
|
||
|
|
{actions:{ref:"rectangle"}},
|
||
|
|
{lineStyle:{lineWidth:1},fillStyle:{type:"none"},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:0},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"w-1",y:"1"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
||
|
|
{lineStyle:{lineWidth:0},fillStyle:{color:"255,255,255"},actions:[{action:"move",x:"1",y:"30"},{action:"line",x:"w-1",y:"30"},{action:"line",x:"w-1",y:"h-1"},{action:"line",x:"1",y:"h-1"},{action:"close"}]},
|
||
|
|
{lineStyle:{lineWidth:0},fillStyle:{colorOverlay:"multiplyOverlay"},actions:[{action:"move",x:"1",y:"1"},{action:"line",x:"30",y:"1"},{action:"line",x:"30",y:"30"},{action:"line",x:"1",y:"30"},{action:"close"}]},
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
||
|
|
fillStyle:{type: "none"},
|
||
|
|
actions:[
|
||
|
|
{action: "curveArc",centerX: "15",centerY: "12",radius: "1.3",startAngle: "0",endAngle: "2 * Math.PI"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
||
|
|
fillStyle:{type: "none"},
|
||
|
|
actions:[
|
||
|
|
{action: "move",x: "8.5",y: "8"},
|
||
|
|
{action: "line",x: "21.5",y: "8"},
|
||
|
|
{action: "line",x: "21.5",y: "22"},
|
||
|
|
{action: "line",x: "8.5",y: "22"},
|
||
|
|
{action:"close"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
lineStyle:{lineWidth:1,lineColor: "51,51,51"},
|
||
|
|
fillStyle:{type: "none"},
|
||
|
|
actions:[
|
||
|
|
{action: "move",x: "14",y: "13"},
|
||
|
|
{action: "line",x: "13",y: "17"},
|
||
|
|
{action: "line",x: "15",y: "19"},
|
||
|
|
{action: "line",x: "17",y: "17"},
|
||
|
|
{action: "line",x: "16",y: "13"}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"rectangle"}}
|
||
|
|
]});
|