提交 c6c40ebe 编写于 作者: doc_wei's avatar doc_wei

流程图修改

上级 f6174f1c
......@@ -47,6 +47,8 @@ layui.config({
del(data, obj);
}else if (layEvent === 'edit') { //编辑
edit(data);
}else if (layEvent === 'flowChart') { //流程图设计
flowChart(data);
}else if (layEvent === 'projectDesc') { //项目简介
layer.open({
id: '项目简介',
......@@ -103,6 +105,24 @@ layui.config({
}});
}
//流程图设计
function flowChart(data){
rowId = data.id;
_openNewWindows({
url: "../../tpl/flowchart/makeflowchart.html",
title: "流程图设计",
pageId: "planprojectedit",
maxmin: true,
callBack: function(refreshCode){
if (refreshCode == '0') {
top.winui.window.msg("操作成功", {icon: 1,time: 2000});
loadTable();
} else if (refreshCode == '-9999') {
top.winui.window.msg("操作失败", {icon: 2,time: 2000});
}
}});
}
//刷新数据
$("body").on("click", "#reloadTable", function(){
loadTable();
......
......@@ -8,63 +8,67 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="layui-col-xs12">
<div id="toolBar" class="lct-toolBar layui-col-xs12">
<ul>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addCustom1"><i class="iconfont icon-tuoyuan"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addCustom2"><i class="iconfont icon-changfangxing"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addCustom3"><i class="iconfont icon-lingxing-B"></i></button>
</li>
<li class="s-line">|</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addLine"><i class="iconfont icon-line"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addArrowLine"><i class="iconfont icon-one-line-arrow"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addSmooth"><i class="iconfont icon-quxian"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addArrowSmooth"><i class="iconfont icon-quxianjiantou"></i></button>
</li>
<!-- <li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addLineFlow"><i class="iconfont icon-zhexian"></i></button>
</li> -->
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addPolyLineFlow"><i class="iconfont icon-zhexianjiantou-copy"></i></button>
</li>
<li class="s-line">|</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="drag"><i class="fa fa-arrows"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="edit"><i class="fa fa-edit"></i></button>
</li>
<li class="s-line">|</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="delete"><i class="fa fa-trash-o"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="consoleJSON"><i class="fa fa-save"></i></button>
</li>
</ul>
<div class="layui-col-xs12">
<div class="layui-col-xs2" style="min-height: 100px;">
</div>
<div class="layui-col-xs12">
<!-- <div class="layui-col-xs2 left-div">
</div> -->
<div class="layui-col-xs12 coverModel" id="mountNode">
<div class="layui-col-xs10">
<div id="toolBar" class="lct-toolBar layui-col-xs12">
<ul>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addCustom1"><i class="iconfont icon-tuoyuan"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addCustom2"><i class="iconfont icon-changfangxing"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addCustom3"><i class="iconfont icon-lingxing-B"></i></button>
</li>
<li class="s-line">|</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addLine"><i class="iconfont icon-line"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addArrowLine"><i class="iconfont icon-one-line-arrow"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addSmooth"><i class="iconfont icon-quxian"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addArrowSmooth"><i class="iconfont icon-quxianjiantou"></i></button>
</li>
<!-- <li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addLineFlow"><i class="iconfont icon-zhexian"></i></button>
</li> -->
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="addPolyLineFlow"><i class="iconfont icon-zhexianjiantou-copy"></i></button>
</li>
<li class="s-line">|</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="drag"><i class="fa fa-arrows"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="edit"><i class="fa fa-edit"></i></button>
</li>
<li class="s-line">|</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="delete"><i class="fa fa-trash-o"></i></button>
</li>
<li>
<button class="layui-btn layui-btn-primary layui-btn-sm" id="consoleJSON"><i class="fa fa-save"></i></button>
</li>
</ul>
</div>
<div class="layui-col-xs12">
<!-- <div class="layui-col-xs2 left-div">
</div> -->
<div class="layui-col-xs12 coverModel" id="mountNode">
</div>
<!-- <div class="layui-col-xs2 right-div">
</div> -->
</div>
<!-- <div class="layui-col-xs2 right-div">
</div> -->
</div>
</div>
</div>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
......
......@@ -34,6 +34,7 @@
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
<a class="layui-btn layui-btn-xs" lay-event="flowChart">流程图设计</a>
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册