Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zui
提交
64ff9b92
Z
zui
项目概览
易企天创
/
zui
大约 1 年 前同步成功
通知
6
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
37
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
37
Issue
37
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
64ff9b92
编写于
7月 26, 2019
作者:
C
Catouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* update flowchart example.
上级
997c9c81
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
11 addition
and
3 deletion
+11
-3
docs/examples/flowchart.html
docs/examples/flowchart.html
+11
-3
未找到文件。
docs/examples/flowchart.html
浏览文件 @
64ff9b92
...
...
@@ -13,15 +13,17 @@
<body
style=
"padding: 20px"
>
<div
style=
"margin-bottom: 20px"
>
<button
type=
"button"
class=
"btn
"
id=
"resetLayoutBtn"
>
重置布局
</button>
<button
type=
"button"
class=
"btn
btn-primary"
id=
"exportDataBtn"
>
导出数据
</button>
<button
type=
"button"
class=
"btn btn-danger"
id=
"resetDataBtn"
>
重置数据
</button>
<button
type=
"button"
class=
"btn"
id=
"resetLayoutBtn"
>
重置布局
</button>
</div>
<div
id=
"flowchart"
></div>
<div
id=
"flowchart"
class=
"panel"
></div>
<script
src=
"../../assets/jquery.js"
></script>
<script
src=
"../../dist/js/zui.js"
></script>
<script
src=
"../../dist/lib/flowchart/zui.flowchart.js"
></script>
<script
src=
"../../dist/lib/flowchart/zui.flowchart.js"
></script>
<link
href=
"../../dist/lib/bootbox/bootbox.min.css"
rel=
"stylesheet"
>
<script
src=
"../../dist/lib/bootbox/bootbox.min.js"
></script>
<script>
$
(
function
()
{
var
data
=
[{
"
id
"
:
"
start
"
,
"
type
"
:
"
start
"
,
"
position
"
:{
"
left
"
:
20
,
"
top
"
:
20
},
"
text
"
:
"
开始
"
},{
"
id
"
:
"
createBug
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
180
,
"
top
"
:
20
},
"
text
"
:
"
新建缺陷
"
},{
"
id
"
:
"
submitBug
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
310
,
"
top
"
:
20
},
"
text
"
:
"
提交确认
"
},{
"
id
"
:
"
confirmBug
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
450
,
"
top
"
:
20
},
"
text
"
:
"
确认缺陷
"
},{
"
id
"
:
"
submitArbitration
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
620
,
"
top
"
:
20
},
"
text
"
:
"
提交仲裁
"
},{
"
id
"
:
"
arbitration
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
820
,
"
top
"
:
20
},
"
text
"
:
"
仲裁
"
},{
"
id
"
:
"
requestHang
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
320
,
"
top
"
:
250
},
"
text
"
:
"
申请挂起
"
},{
"
id
"
:
"
hangApproval
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
540
,
"
top
"
:
250
},
"
text
"
:
"
挂起审批
"
},{
"
id
"
:
"
startRepair
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
540
,
"
top
"
:
170
},
"
text
"
:
"
启动修复
"
},{
"
id
"
:
"
restartRepair
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
770
,
"
top
"
:
250
},
"
text
"
:
"
重启修复
"
},{
"
id
"
:
"
submitVerify
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
770
,
"
top
"
:
170
},
"
text
"
:
"
提交验证
"
},{
"
id
"
:
"
startVerify
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
910
,
"
top
"
:
170
},
"
text
"
:
"
启动验证
"
},{
"
id
"
:
"
verify
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
1080
,
"
top
"
:
250
},
"
text
"
:
"
验证
"
},{
"
id
"
:
"
close
"
,
"
type
"
:
"
stop
"
,
"
position
"
:{
"
left
"
:
1080
,
"
top
"
:
20
},
"
text
"
:
"
关闭
"
},{
"
id
"
:
"
tip1
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
0
,
"
top
"
:
130
},
"
text
"
:
"
★ 双击节点或关系名称编辑
"
,
className
:
"
text-green
"
},{
"
id
"
:
"
tip2
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
20
,
"
top
"
:
200
},
"
text
"
:
"
★ 拖动节点移动位置
"
,
className
:
"
text-green
"
},{
"
id
"
:
"
tip3
"
,
"
type
"
:
"
action
"
,
"
position
"
:{
"
left
"
:
10
,
"
top
"
:
270
},
"
text
"
:
"
★ 使用右键访问更多操作
"
,
className
:
"
text-green
"
},{
"
id
"
:
"
start-createBug
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
start
"
,
"
to
"
:
"
createBug
"
},{
"
id
"
:
"
createBug-submitBug
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
createBug
"
,
"
to
"
:
"
submitBug
"
},{
"
id
"
:
"
submitBug-confirmBug
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
submitBug
"
,
"
to
"
:
"
confirmBug
"
},{
"
id
"
:
"
confirmBug-submitArbitration
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
confirmBug
"
,
"
to
"
:
"
submitArbitration
"
,
"
text
"
:
"
否
"
},{
"
id
"
:
"
submitArbitration-arbitration
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
submitArbitration
"
,
"
to
"
:
"
arbitration
"
},{
"
id
"
:
"
confirmBug-requestHang
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
confirmBug
"
,
"
to
"
:
"
requestHang
"
,
"
text
"
:
"
是缺陷
"
},{
"
id
"
:
"
requestHang-hangApproval
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
requestHang
"
,
"
to
"
:
"
hangApproval
"
,
"
text
"
:
"
同意
"
},{
"
id
"
:
"
confirmBug-startRepair
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
confirmBug
"
,
"
to
"
:
"
startRepair
"
,
"
text
"
:
"
是缺陷
"
},{
"
id
"
:
"
requestHang-startRepair
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
requestHang
"
,
"
to
"
:
"
startRepair
"
,
"
text
"
:
"
拒绝
"
},{
"
id
"
:
"
arbitration-startRepair
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
arbitration
"
,
"
to
"
:
"
startRepair
"
,
"
text
"
:
"
是缺陷
"
},{
"
id
"
:
"
hangApproval-startRepair
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
hangApproval
"
,
"
to
"
:
"
startRepair
"
,
"
text
"
:
"
拒绝
"
},{
"
id
"
:
"
hangApproval-restartRepair
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
hangApproval
"
,
"
to
"
:
"
restartRepair
"
,
"
text
"
:
"
同意
"
},{
"
id
"
:
"
verify-restartRepair
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
verify
"
,
"
to
"
:
"
restartRepair
"
,
"
text
"
:
"
不通过
"
},{
"
id
"
:
"
restartRepair-submitVerify
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
restartRepair
"
,
"
to
"
:
"
submitVerify
"
},{
"
id
"
:
"
startRepair-submitVerify
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
startRepair
"
,
"
to
"
:
"
submitVerify
"
},{
"
id
"
:
"
submitVerify-startVerify
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
submitVerify
"
,
"
to
"
:
"
startVerify
"
},{
"
id
"
:
"
startVerify-verify
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
startVerify
"
,
"
to
"
:
"
verify
"
},{
"
id
"
:
"
verify-close
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
verify
"
,
"
to
"
:
"
close
"
,
"
text
"
:
"
通过
"
},{
"
id
"
:
"
arbitration-close
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
arbitration
"
,
"
to
"
:
"
close
"
,
"
text
"
:
"
不是缺陷
"
},{
"
id
"
:
"
start-tip1
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
start
"
,
"
to
"
:
"
tip1
"
},{
"
id
"
:
"
tip1-tip2
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
tip1
"
,
"
to
"
:
"
tip2
"
},{
"
id
"
:
"
tip2-tip3
"
,
"
type
"
:
"
relation
"
,
"
from
"
:
"
tip2
"
,
"
to
"
:
"
tip3
"
}];
...
...
@@ -110,6 +112,12 @@
$
(
'
#resetDataBtn
'
).
on
(
'
click
'
,
function
()
{
flowchart
.
resetData
();
});
$
(
'
#exportDataBtn
'
).
on
(
'
click
'
,
function
()
{
bootbox
.
dialog
({
title
:
'
流程图数据导出
'
,
message
:
'
<pre><code>
'
+
JSON
.
stringify
(
flowchart
.
exportData
(),
null
,
4
)
+
'
</code></pre>
'
});
});
console
.
log
(
flowchart
);
});
</script>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录