代码拉取完成,页面将自动刷新
同步操作将从 lianglongqun/flowable-diagram 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="snap.svg.js"></script>
<script src="diagram.js"></script>
</head>
<body>
<style>
#svg {
border : 1px solid #000000;
}
</style>
<svg id="svg"></svg>
<script>
(function(){
var data = {
"cellPadding" : 15,
"tableMargin" : 10,
"nodes": [
{
"type": "start",
"cell" : "0,0"
},
{
"type" : "task",
"cell" : "1,0",
"id" : "manager",
"name" : "直属上司审批"
},
{
"type" : "decision",
"id" : "decision",
"name" : "请假天数是否大于3",
"cell" : "2,0",
"w" : 180
},
{
"type" : "task",
"cell" : "3,1",
"id" : "director",
"name" : "总监审批",
"highlight" : true
},
{
"type": "end",
"cell" : "4,0"
}
],
"lines": [
{
"from": "start",
"to": "manager"
},
{
"from": "manager",
"to": "decision"
},
{
"from": "decision",
"to": "director",
"direction" : "x",
"text" : "是"
},
{
"from": "decision",
"to": "end",
"text" : "否"
},
{
"from": "director",
"to": "end",
"direction" : "y"
}
]
};
var flow = new Flow("svg", data);
flow.renderByTableLayout();
})();
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。