mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
layui升级到2.2.5
This commit is contained in:
@@ -20,6 +20,11 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
public ActionResult Design()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
//添加或修改
|
||||
[System.Web.Mvc.HttpPost]
|
||||
public string Add(FlowScheme obj)
|
||||
|
@@ -180,7 +180,7 @@
|
||||
<Content Include="images\login\right_hand.png" />
|
||||
<Content Include="images\login\tou.png" />
|
||||
<Content Include="js\flow-ui\flow.css" />
|
||||
<Content Include="js\flow-ui\flow.js" />
|
||||
<Content Include="js\flow-ui\gooflow.js" />
|
||||
<Content Include="js\flow-ui\img\1.png" />
|
||||
<Content Include="js\flow-ui\img\10.png" />
|
||||
<Content Include="js\flow-ui\img\11.png" />
|
||||
@@ -236,6 +236,7 @@
|
||||
<Content Include="userJs\modules.js" />
|
||||
<Content Include="js\queryString.js" />
|
||||
<Content Include="userJs\orgs.js" />
|
||||
<Content Include="userJs\flowDesign.js" />
|
||||
<Content Include="userJs\roles.js" />
|
||||
<Content Include="js\ueditor\dialogs\anchor\anchor.html" />
|
||||
<Content Include="js\ueditor\dialogs\attachment\attachment.css" />
|
||||
@@ -642,6 +643,7 @@
|
||||
<Content Include="Views\Forms\Preview.cshtml" />
|
||||
<Content Include="Views\FlowInstances\Index.cshtml" />
|
||||
<Content Include="Views\FlowSchemes\Index.cshtml" />
|
||||
<Content Include="Views\FlowSchemes\Design.cshtml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
|
@@ -25,9 +25,9 @@
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/html" id="barList">
|
||||
@*<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>*@
|
||||
<a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
|
||||
<a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a>
|
||||
@*<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</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>
|
||||
|
||||
<!--用户添加/编辑窗口-->
|
||||
|
@@ -38,7 +38,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
|
||||
</script>
|
||||
|
||||
<!--用户添加/编辑窗口-->
|
||||
|
19
OpenAuth.Mvc/Views/FlowSchemes/Design.cshtml
Normal file
19
OpenAuth.Mvc/Views/FlowSchemes/Design.cshtml
Normal file
@@ -0,0 +1,19 @@
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link href="/js/ueditor/formdesign/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="/js/flow-ui/flow.css" rel="stylesheet" />
|
||||
<title>流程设计</title>
|
||||
</head>
|
||||
<body id="flowPanel" style="margin: 0">
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript" src="/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="/userJs/flowDesign.js"></script>
|
@@ -31,59 +31,75 @@
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
|
||||
</script>
|
||||
|
||||
<!--用户添加/编辑窗口-->
|
||||
<div id="divEdit" style="display: none">
|
||||
<form class="layui-form" action="" id="formEdit">
|
||||
<input type="hidden" name="Id" v-model="Id" />
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">流程编号</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="SchemeCode" v-model="SchemeCode" required lay-verify="required"
|
||||
placeholder="流程编号" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">流程名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="SchemeName" v-model="SchemeName" required lay-verify="required"
|
||||
placeholder="流程名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模板权限类型0所有人,1指定成员</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="AuthorizeType" value="1" title="value1" checked>
|
||||
<input type="radio" name="AuthorizeType" value="0" title="value2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="SortCode" value="1" title="value1" checked>
|
||||
<input type="radio" name="SortCode" value="0" title="value2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-row">
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">基本信息</li>
|
||||
<li>表单设计</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content" style="height: 100px;">
|
||||
<div class="layui-tab-item layui-show">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">有效</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="Disabled" value="1" title="value1" checked>
|
||||
<input type="radio" name="Disabled" value="0" title="value2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">备注</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="Description" v-model="Description" required lay-verify="required"
|
||||
placeholder="备注" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">流程编号</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="SchemeCode" v-model="SchemeCode" required lay-verify="required"
|
||||
placeholder="流程编号" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">流程名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="SchemeName" v-model="SchemeName" required lay-verify="required"
|
||||
placeholder="流程名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模板权限类型0所有人,1指定成员</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="AuthorizeType" value="1" title="value1" checked>
|
||||
<input type="radio" name="AuthorizeType" value="0" title="value2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="SortCode" value="1" title="value1" checked>
|
||||
<input type="radio" name="SortCode" value="0" title="value2">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">有效</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="Disabled" value="1" title="value1" checked>
|
||||
<input type="radio" name="Disabled" value="0" title="value2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">备注</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="Description" v-model="Description" required lay-verify="required"
|
||||
placeholder="备注" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<iframe src="/flowschemes/design" style="margin: 0px;"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-row">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
|
@@ -29,7 +29,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
|
||||
</script>
|
||||
|
||||
<!--用户添加/编辑窗口-->
|
||||
|
@@ -80,9 +80,9 @@
|
||||
<span style="color: #1E9FFF;">郑重提示:为安全起见,关闭了所有修改请求,如想体验完整功能可搭建本地环境,并将version置为空字符串</span>
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://git.oschina.net/yubaolee/OpenAuth.Net" target="_blank" class="layui-btn layui-btn-mini layui-btn-danger">项目地址</a>
|
||||
<a class="layui-btn layui-btn-mini" target="_blank" href="https://www.w3cschool.cn/openauthdotnet/e8931tly.html">在线文档</a>
|
||||
<a class="layui-btn layui-btn-mini layui-btn-danger" target="_blank" href="http://git.oschina.net/yubaolee/OpenAuth.Net/stargazers">喜欢就Star一下吧</a>
|
||||
<a href="https://git.oschina.net/yubaolee/OpenAuth.Net" target="_blank" class="layui-btn layui-btn-xs layui-btn-danger">项目地址</a>
|
||||
<a class="layui-btn layui-btn-xs" target="_blank" href="https://www.w3cschool.cn/openauthdotnet/e8931tly.html">在线文档</a>
|
||||
<a class="layui-btn layui-btn-xs layui-btn-danger" target="_blank" href="http://git.oschina.net/yubaolee/OpenAuth.Net/stargazers">喜欢就Star一下吧</a>
|
||||
<span style="color: #f00;">注:【本框架仅作为学习交流使用,如需用作商业用途,请联系作者授权,谢谢】</span>
|
||||
</p>
|
||||
<p>技术交流QQ群:【1号:】484498493 【2号:】626433139</p>
|
||||
|
@@ -26,7 +26,7 @@
|
||||
</table>
|
||||
<!--列表右边的按钮-->
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看菜单</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看菜单</a>
|
||||
</script>
|
||||
<script type="text/html" id="iconTpl">
|
||||
{{# if( d.IconName != null && d.IconName != ''){ }}
|
||||
@@ -54,7 +54,7 @@
|
||||
</table>
|
||||
<!--列表右边的按钮-->
|
||||
<script type="text/html" id="menuBar">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="del">删除</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del">删除</a>
|
||||
</script>
|
||||
<script type="text/html" id="miconTpl">
|
||||
{{# if( d.Icon != null && d.Icon != ''){ }}
|
||||
|
@@ -27,7 +27,7 @@
|
||||
|
||||
<!--列表右边的按钮-->
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
|
||||
</script>
|
||||
|
||||
<!--用户添加/编辑窗口-->
|
||||
|
@@ -22,7 +22,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
|
||||
</script>
|
||||
|
||||
<!--角色添加/编辑窗口-->
|
||||
|
@@ -25,7 +25,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/html" id="barList">
|
||||
<a class="layui-btn layui-btn-primary layui-btn-mini" lay-event="detail">查看</a>
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
|
||||
</script>
|
||||
|
||||
<!--用户添加/编辑窗口-->
|
||||
|
File diff suppressed because it is too large
Load Diff
2279
OpenAuth.Mvc/js/flow-ui/gooflow.js
Normal file
2279
OpenAuth.Mvc/js/flow-ui/gooflow.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -46,7 +46,7 @@ layui.define(['jquery', 'layer'], function (exports) {
|
||||
layer.close(index);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
exports(MOD_NAME, openauth);
|
||||
});
|
@@ -1,25 +1,25 @@
|
||||
// ***********************************************************************
|
||||
// Assembly : OpenAuth.Mvc
|
||||
// Author : yubaolee
|
||||
// Created : 09-04-2016
|
||||
//
|
||||
// Last Modified By : yubaolee
|
||||
// Last Modified On : 09-04-2016
|
||||
// ***********************************************************************
|
||||
// <copyright file="queryString.js" company="www.cnblogs.com/yubaolee">
|
||||
// 版权所有(C) 2015
|
||||
// </copyright>
|
||||
// <summary>解析URL中的参数</summary>
|
||||
// ***********************************************************************
|
||||
|
||||
// ***********************************************************************
|
||||
// Assembly : OpenAuth.Mvc
|
||||
// Author : yubaolee
|
||||
// Created : 09-04-2016
|
||||
//
|
||||
// Last Modified By : yubaolee
|
||||
// Last Modified On : 09-04-2016
|
||||
// ***********************************************************************
|
||||
// <copyright file="queryString.js" company="www.cnblogs.com/yubaolee">
|
||||
// 版权所有(C) 2015
|
||||
// </copyright>
|
||||
// <summary>解析URL中的参数</summary>
|
||||
// ***********************************************************************
|
||||
|
||||
layui.define("jquery",function(exports){
|
||||
var jQuery=layui.jquery;
|
||||
(function ($) {
|
||||
$.getUrlParam = function (name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (r != null) return unescape(r[2]); return null;
|
||||
}
|
||||
})(jQuery);
|
||||
var jQuery=layui.jquery;
|
||||
(function ($) {
|
||||
$.getUrlParam = function (name) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (r != null) return unescape(r[2]); return null;
|
||||
}
|
||||
})(jQuery);
|
||||
exports('queryString');
|
||||
});
|
@@ -1,373 +1,403 @@
|
||||
//初始化设计流程器
|
||||
$.fn.flowdesign = function (options) {
|
||||
var $frmpreview = $(this);
|
||||
if (!$frmpreview.attr('id')) {
|
||||
return false;
|
||||
}
|
||||
var FlowPanel;
|
||||
$frmpreview.html("");
|
||||
var defaults = {
|
||||
flowcontent: "",
|
||||
frmtype: 0,//自定义表单0,系统表单1
|
||||
frmData: "",
|
||||
width: $(window).width(),
|
||||
height: $(window).height() + 2,
|
||||
OpenNode: function () { return false},
|
||||
OpenLine: function () { return false },
|
||||
NodeRemarks: {
|
||||
cursor: "选择指针",
|
||||
direct: "步骤连线",
|
||||
startround: "开始节点",
|
||||
endround: "结束节点",
|
||||
stepnode: "普通节点",
|
||||
shuntnode: "分流节点",
|
||||
confluencenode: "合流节点",
|
||||
group: "区域规划"
|
||||
},
|
||||
haveTool:true,
|
||||
toolBtns: ["startround", "endround", "stepnode", "shuntnode", "confluencenode"],
|
||||
isprocessing: false,
|
||||
nodeData: null,
|
||||
activityId: "",
|
||||
preview:0
|
||||
};
|
||||
var options = $.extend(defaults, options);
|
||||
FlowPanel = $.createGooFlow($(this), {
|
||||
width: options.width,
|
||||
height: options.height,
|
||||
haveHead: true,
|
||||
headBtns: ["undo", "redo"],
|
||||
haveTool: options.haveTool,
|
||||
toolBtns: options.toolBtns,
|
||||
haveGroup: true,
|
||||
useOperStack: true
|
||||
});
|
||||
FlowPanel.setNodeRemarks(options.NodeRemarks);
|
||||
FlowPanel.loadData(options.flowcontent);
|
||||
OpenNode = options.OpenNode;
|
||||
OpenLine = options.OpenLine;
|
||||
//导出数据扩展方法
|
||||
//所有节点必须有进出线段
|
||||
//必须有开始结束节点(且只能为一个)
|
||||
//分流合流节点必须成对出现
|
||||
//分流合流节点必须一一对应且中间必须有且只能有一个普通节点
|
||||
//分流节点与合流节点之前的审核节点必须有且只能有一条出去和进来节点
|
||||
FlowPanel.exportDataEx = function () {
|
||||
var _data = FlowPanel.exportData();
|
||||
var _fromlines = {}, _tolines = {}, _nodes = {}, _fnodes = [], _hnodes = [], _startroundFlag = 0, _endroundFlag = 0;
|
||||
for (var i in _data.lines)
|
||||
{
|
||||
if (_fromlines[_data.lines[i].from] == undefined)
|
||||
{
|
||||
_fromlines[_data.lines[i].from] = [];
|
||||
}
|
||||
_fromlines[_data.lines[i].from].push(_data.lines[i].to);
|
||||
layui.define("jquery",
|
||||
function(exports) {
|
||||
var $ = layui.jquery;
|
||||
|
||||
if (_tolines[_data.lines[i].to] == undefined) {
|
||||
_tolines[_data.lines[i].to] = [];
|
||||
//初始化设计流程器
|
||||
$.fn.flowdesign = function(options) {
|
||||
var $frmpreview = $(this);
|
||||
if (!$frmpreview.attr('id')) {
|
||||
return false;
|
||||
}
|
||||
_tolines[_data.lines[i].to].push(_data.lines[i].from);
|
||||
}
|
||||
for (var j in _data.nodes)
|
||||
{
|
||||
var _node = _data.nodes[j];
|
||||
var _flag = false;
|
||||
switch (_node.type)
|
||||
{
|
||||
case "startround":
|
||||
_startroundFlag++;
|
||||
if (_fromlines[_node.id] == undefined) {
|
||||
dialogTop("开始节点无法流转到下一个节点", "error");
|
||||
return -1;
|
||||
var flowPanel;
|
||||
$frmpreview.html("");
|
||||
var defaults = {
|
||||
flowcontent: "",
|
||||
frmtype: 0, //自定义表单0,系统表单1
|
||||
frmData: "",
|
||||
width: $(window).width(),
|
||||
height: $(window).height() + 2,
|
||||
OpenNode: function() { return false },
|
||||
OpenLine: function() { return false },
|
||||
NodeRemarks: {
|
||||
cursor: "选择指针",
|
||||
direct: "步骤连线",
|
||||
startround: "开始节点",
|
||||
endround: "结束节点",
|
||||
stepnode: "普通节点",
|
||||
shuntnode: "分流节点",
|
||||
confluencenode: "合流节点",
|
||||
group: "区域规划"
|
||||
},
|
||||
haveTool: true,
|
||||
toolBtns: ["startround", "endround", "stepnode", "shuntnode", "confluencenode"],
|
||||
isprocessing: false,
|
||||
nodeData: null,
|
||||
activityId: "",
|
||||
preview: 0
|
||||
};
|
||||
var options = $.extend(defaults, options);
|
||||
flowPanel = $.createGooFlow($(this),
|
||||
{
|
||||
width: options.width,
|
||||
height: options.height,
|
||||
haveHead: true,
|
||||
headBtns: ["undo", "redo"],
|
||||
haveTool: options.haveTool,
|
||||
toolBtns: options.toolBtns,
|
||||
haveGroup: true,
|
||||
useOperStack: true
|
||||
});
|
||||
flowPanel.setNodeRemarks(options.NodeRemarks);
|
||||
flowPanel.loadData(options.flowcontent);
|
||||
OpenNode = options.OpenNode;
|
||||
OpenLine = options.OpenLine;
|
||||
//导出数据扩展方法
|
||||
//所有节点必须有进出线段
|
||||
//必须有开始结束节点(且只能为一个)
|
||||
//分流合流节点必须成对出现
|
||||
//分流合流节点必须一一对应且中间必须有且只能有一个普通节点
|
||||
//分流节点与合流节点之前的审核节点必须有且只能有一条出去和进来节点
|
||||
flowPanel.exportDataEx = function() {
|
||||
var _data = flowPanel.exportData();
|
||||
var _fromlines = {},
|
||||
_tolines = {},
|
||||
_nodes = {},
|
||||
_fnodes = [],
|
||||
_hnodes = [],
|
||||
_startroundFlag = 0,
|
||||
_endroundFlag = 0;
|
||||
for (var i in _data.lines) {
|
||||
if (_fromlines[_data.lines[i].from] == undefined) {
|
||||
_fromlines[_data.lines[i].from] = [];
|
||||
}
|
||||
break;
|
||||
case "endround":
|
||||
_endroundFlag++;
|
||||
if ( _tolines[_node.id] == undefined) {
|
||||
dialogTop("无法流转到结束节点", "error");
|
||||
return -1;
|
||||
_fromlines[_data.lines[i].from].push(_data.lines[i].to);
|
||||
|
||||
if (_tolines[_data.lines[i].to] == undefined) {
|
||||
_tolines[_data.lines[i].to] = [];
|
||||
}
|
||||
break;
|
||||
case "stepnode":
|
||||
_flag = true;
|
||||
break;
|
||||
case "shuntnode":
|
||||
_flag = true;
|
||||
_fnodes.push(_node.id);
|
||||
break;
|
||||
case "confluencenode":
|
||||
_hnodes.push(_node.id);
|
||||
_flag = true;
|
||||
break;
|
||||
default:
|
||||
dialogTop("节点数据异常,请重新登录下系统!", "error");
|
||||
return -1;
|
||||
break;
|
||||
}
|
||||
if (_flag)
|
||||
{
|
||||
if (_tolines[_node.id] == undefined) {
|
||||
labellingRedNode(_node.id);
|
||||
dialogTop("标注红色的节点没有【进来】的连接线段", "error");
|
||||
_tolines[_data.lines[i].to].push(_data.lines[i].from);
|
||||
}
|
||||
for (var j in _data.nodes) {
|
||||
var _node = _data.nodes[j];
|
||||
var _flag = false;
|
||||
switch (_node.type) {
|
||||
case "startround":
|
||||
_startroundFlag++;
|
||||
if (_fromlines[_node.id] == undefined) {
|
||||
dialogTop("开始节点无法流转到下一个节点", "error");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
case "endround":
|
||||
_endroundFlag++;
|
||||
if (_tolines[_node.id] == undefined) {
|
||||
dialogTop("无法流转到结束节点", "error");
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
case "stepnode":
|
||||
_flag = true;
|
||||
break;
|
||||
case "shuntnode":
|
||||
_flag = true;
|
||||
_fnodes.push(_node.id);
|
||||
break;
|
||||
case "confluencenode":
|
||||
_hnodes.push(_node.id);
|
||||
_flag = true;
|
||||
break;
|
||||
default:
|
||||
dialogTop("节点数据异常,请重新登录下系统!", "error");
|
||||
return -1;
|
||||
break;
|
||||
}
|
||||
if (_flag) {
|
||||
if (_tolines[_node.id] == undefined) {
|
||||
labellingRedNode(_node.id);
|
||||
dialogTop("标注红色的节点没有【进来】的连接线段", "error");
|
||||
return -1;
|
||||
}
|
||||
if (_fromlines[_node.id] == undefined) {
|
||||
labellingRedNode(_node.id);
|
||||
dialogTop("标注红色的节点没有【出去】的连接线段", "error");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
_nodes[_node.id] = _node;
|
||||
}
|
||||
if (_startroundFlag == 0) {
|
||||
dialogTop("必须有开始节点", "error");
|
||||
return -1;
|
||||
}
|
||||
if (_fromlines[_node.id] == undefined) {
|
||||
labellingRedNode(_node.id);
|
||||
dialogTop("标注红色的节点没有【出去】的连接线段", "error");
|
||||
|
||||
if (_endroundFlag == 0) {
|
||||
dialogTop("必须有结束节点", "error");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
_nodes[_node.id] = _node;
|
||||
}
|
||||
if (_startroundFlag == 0) {
|
||||
dialogTop("必须有开始节点", "error");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (_endroundFlag == 0)
|
||||
{
|
||||
dialogTop("必须有结束节点", "error");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (_fnodes.length != _hnodes.length)
|
||||
{
|
||||
dialogTop("分流节点必须等于合流节点", "error");
|
||||
return -1;
|
||||
}
|
||||
for (var a in _fnodes) {
|
||||
var aNondeid = _fnodes[a];
|
||||
if (_fromlines[aNondeid].length == 1) {
|
||||
labellingRedNode(aNondeid);
|
||||
dialogTop("标注红色的分流节点不允许只有一条【出去】的线段", "error");
|
||||
return -1;
|
||||
}
|
||||
var _hhnodeid = {};
|
||||
for (var b in _fromlines[aNondeid])
|
||||
{
|
||||
btoNode = _fromlines[aNondeid][b];
|
||||
if (_nodes[btoNode].type == "stepnode") {
|
||||
var _nextLine = _fromlines[_nodes[btoNode].id];
|
||||
|
||||
var _nextNode = _nodes[_nextLine[0]];
|
||||
if (_nextNode.type != "confluencenode") {
|
||||
labellingRedNode(_nodes[btoNode].id);
|
||||
dialogTop("标注红色的普通节点下一个节点必须是合流节点", "error");
|
||||
if (_fnodes.length != _hnodes.length) {
|
||||
dialogTop("分流节点必须等于合流节点", "error");
|
||||
return -1;
|
||||
}
|
||||
for (var a in _fnodes) {
|
||||
var aNondeid = _fnodes[a];
|
||||
if (_fromlines[aNondeid].length == 1) {
|
||||
labellingRedNode(aNondeid);
|
||||
dialogTop("标注红色的分流节点不允许只有一条【出去】的线段", "error");
|
||||
return -1;
|
||||
}
|
||||
else {
|
||||
_hhnodeid[_nextLine[0]] = 0;
|
||||
if (_hhnodeid.length > 1) {
|
||||
var _hhnodeid = {};
|
||||
for (var b in _fromlines[aNondeid]) {
|
||||
btoNode = _fromlines[aNondeid][b];
|
||||
if (_nodes[btoNode].type == "stepnode") {
|
||||
var _nextLine = _fromlines[_nodes[btoNode].id];
|
||||
|
||||
var _nextNode = _nodes[_nextLine[0]];
|
||||
if (_nextNode.type != "confluencenode") {
|
||||
labellingRedNode(_nodes[btoNode].id);
|
||||
dialogTop("标注红色的普通节点下一个节点必须是合流节点", "error");
|
||||
return -1;
|
||||
} else {
|
||||
_hhnodeid[_nextLine[0]] = 0;
|
||||
if (_hhnodeid.length > 1) {
|
||||
labellingRedNode(aNondeid);
|
||||
dialogTop("标注红色的分流节点与之对应的合流节点只能有一个", "error");
|
||||
return -1;
|
||||
}
|
||||
if (_tolines[_nextLine[0]].length != _fromlines[aNondeid].length) {
|
||||
labellingRedNode(_nextLine[0]);
|
||||
dialogTop("标注红色的合流节点与之对应的分流节点只能有一个", "error");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (_nextLine.length > 1) {
|
||||
labellingRedNode(_nodes[btoNode].id);
|
||||
dialogTop("标注红色的节点只能有一条出去的线条【分流合流之间】", "error");
|
||||
return -1;
|
||||
} else if (_tolines[_nodes[btoNode].id], length > 1) {
|
||||
labellingRedNode(_nodes[btoNode].id);
|
||||
dialogTop("标注红色的节点只能有一条进来的线条【分流合流之间】", "error");
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
labellingRedNode(aNondeid);
|
||||
dialogTop("标注红色的分流节点与之对应的合流节点只能有一个", "error");
|
||||
return -1;
|
||||
}
|
||||
if (_tolines[_nextLine[0]].length != _fromlines[aNondeid].length) {
|
||||
labellingRedNode(_nextLine[0]);
|
||||
dialogTop("标注红色的合流节点与之对应的分流节点只能有一个", "error");
|
||||
dialogTop("标注红色的分流节点必须经过一个普通节点到合流节点", "error");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (_nextLine.length > 1) {
|
||||
labellingRedNode(_nodes[btoNode].id);
|
||||
dialogTop("标注红色的节点只能有一条出去的线条【分流合流之间】", "error");
|
||||
return -1;
|
||||
}
|
||||
else if (_tolines[_nodes[btoNode].id],length > 1) {
|
||||
labellingRedNode(_nodes[btoNode].id);
|
||||
dialogTop("标注红色的节点只能有一条进来的线条【分流合流之间】", "error");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
else {
|
||||
labellingRedNode(aNondeid);
|
||||
dialogTop("标注红色的分流节点必须经过一个普通节点到合流节点", "error");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return _data;
|
||||
}
|
||||
FlowPanel.SetNodeEx = function (id,data) {
|
||||
FlowPanel.setName(id, data.NodeName, "node", data);
|
||||
}
|
||||
FlowPanel.SetLineEx = function (id, data) {
|
||||
FlowPanel.setName(id, data.LineName, "line", data);
|
||||
}
|
||||
if (options.isprocessing)//如果是显示进程状态
|
||||
{
|
||||
var tipHtml = '<div style="position:absolute;left:10px;margin-top: 10px;padding:10px;border-radius:5px;background:rgba(0,0,0,0.05);z-index:1000;display:inline-block;">';
|
||||
tipHtml += '<div style="display: inline-block;"><i style="padding-right:5px;color:#5cb85c;" class="fa fa-flag"></i><span>已处理</span></div>';
|
||||
tipHtml += '<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#5bc0de;" class="fa fa-flag"></i><span>正在处理</span></div>';
|
||||
tipHtml += '<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#d9534f;" class="fa fa-flag"></i><span>不通过</span></div>';
|
||||
tipHtml += '<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#f0ad4e;" class="fa fa-flag"></i><span>驳回</span></div>';
|
||||
tipHtml += '<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#999;" class="fa fa-flag"></i><span>未处理</span></div></div>';
|
||||
|
||||
$frmpreview.find('.GooFlow_work .GooFlow_work_inner').css('background-image', 'none');
|
||||
$frmpreview.find('td').css('color', '#fff');
|
||||
$frmpreview.css('background', '#fff');
|
||||
$frmpreview.find('.ico').remove();
|
||||
$frmpreview.find('.GooFlow_item').css('border', '0px');
|
||||
$frmpreview.append(tipHtml);
|
||||
$.each(options.nodeData, function (i, item) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#999");
|
||||
if (item.type == "startround") {
|
||||
$frmpreview.find("#" + item.id).css("background", "#5cb85c");
|
||||
}
|
||||
else {
|
||||
if (item.id == options.activityId) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#5bc0de");//正在处理
|
||||
}
|
||||
if (item.setInfo != undefined && item.setInfo.Taged != undefined) {
|
||||
if (item.setInfo.Taged == -1) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#d9534f");//不通过
|
||||
}
|
||||
else if (item.setInfo.Taged == 1) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#5cb85c");//通过
|
||||
}
|
||||
else {
|
||||
$frmpreview.find("#" + item.id).css("background", "#f0ad4e");//驳回
|
||||
}
|
||||
}
|
||||
return _data;
|
||||
}
|
||||
if (item.setInfo != undefined && item.setInfo.Taged != undefined)
|
||||
flowPanel.SetNodeEx = function(id, data) {
|
||||
flowPanel.setName(id, data.NodeName, "node", data);
|
||||
}
|
||||
flowPanel.SetLineEx = function(id, data) {
|
||||
flowPanel.setName(id, data.LineName, "line", data);
|
||||
}
|
||||
if (options.isprocessing) //如果是显示进程状态
|
||||
{
|
||||
var _one = clientuserData[item.setInfo.UserId];
|
||||
var _row = '<div style="text-align:left">';
|
||||
var tagname = { "-1": "不通过", "1": "通过", "0": "驳回" };
|
||||
_row += "<p>处理人:" + (_one == undefined ? item.setInfo.UserId : _one.RealName) + "</p>";
|
||||
_row += "<p>结果:" + tagname[item.setInfo.Taged] + "</p>";
|
||||
_row += "<p>处理时间:" + item.setInfo.TagedTime + "</p>";
|
||||
_row += "<p>备注:" + item.setInfo.description + "</p></div>";
|
||||
var tipHtml =
|
||||
'<div style="position:absolute;left:10px;margin-top: 10px;padding:10px;border-radius:5px;background:rgba(0,0,0,0.05);z-index:1000;display:inline-block;">';
|
||||
tipHtml +=
|
||||
'<div style="display: inline-block;"><i style="padding-right:5px;color:#5cb85c;" class="fa fa-flag"></i><span>已处理</span></div>';
|
||||
tipHtml +=
|
||||
'<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#5bc0de;" class="fa fa-flag"></i><span>正在处理</span></div>';
|
||||
tipHtml +=
|
||||
'<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#d9534f;" class="fa fa-flag"></i><span>不通过</span></div>';
|
||||
tipHtml +=
|
||||
'<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#f0ad4e;" class="fa fa-flag"></i><span>驳回</span></div>';
|
||||
tipHtml +=
|
||||
'<div style="display: inline-block;margin-left: 10px;"><i style="padding-right:5px;color:#999;" class="fa fa-flag"></i><span>未处理</span></div></div>';
|
||||
|
||||
$frmpreview.find('#' + item.id).attr('data-toggle', 'tooltip');
|
||||
$frmpreview.find('#' + item.id).attr('data-placement', 'bottom');
|
||||
$frmpreview.find('#' + item.id).attr('title', _row);
|
||||
$frmpreview.find('.GooFlow_work .GooFlow_work_inner').css('background-image', 'none');
|
||||
$frmpreview.find('td').css('color', '#fff');
|
||||
$frmpreview.css('background', '#fff');
|
||||
$frmpreview.find('.ico').remove();
|
||||
$frmpreview.find('.GooFlow_item').css('border', '0px');
|
||||
$frmpreview.append(tipHtml);
|
||||
$.each(options.nodeData,
|
||||
function(i, item) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#999");
|
||||
if (item.type == "startround") {
|
||||
$frmpreview.find("#" + item.id).css("background", "#5cb85c");
|
||||
} else {
|
||||
if (item.id == options.activityId) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#5bc0de"); //正在处理
|
||||
}
|
||||
if (item.setInfo != undefined && item.setInfo.Taged != undefined) {
|
||||
if (item.setInfo.Taged == -1) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#d9534f"); //不通过
|
||||
} else if (item.setInfo.Taged == 1) {
|
||||
$frmpreview.find("#" + item.id).css("background", "#5cb85c"); //通过
|
||||
} else {
|
||||
$frmpreview.find("#" + item.id).css("background", "#f0ad4e"); //驳回
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.setInfo != undefined && item.setInfo.Taged != undefined) {
|
||||
var _one = clientuserData[item.setInfo.UserId];
|
||||
var _row = '<div style="text-align:left">';
|
||||
var tagname = { "-1": "不通过", "1": "通过", "0": "驳回" };
|
||||
_row += "<p>处理人:" + (_one == undefined ? item.setInfo.UserId : _one.RealName) + "</p>";
|
||||
_row += "<p>结果:" + tagname[item.setInfo.Taged] + "</p>";
|
||||
_row += "<p>处理时间:" + item.setInfo.TagedTime + "</p>";
|
||||
_row += "<p>备注:" + item.setInfo.description + "</p></div>";
|
||||
|
||||
$frmpreview.find('#' + item.id).attr('data-toggle', 'tooltip');
|
||||
$frmpreview.find('#' + item.id).attr('data-placement', 'bottom');
|
||||
$frmpreview.find('#' + item.id).attr('title', _row);
|
||||
}
|
||||
});
|
||||
$('[data-toggle="tooltip"]').tooltip({ "html": true });
|
||||
}
|
||||
if (options.preview == 1) {
|
||||
preview();
|
||||
}
|
||||
});
|
||||
$('[data-toggle="tooltip"]').tooltip({"html":true});
|
||||
}
|
||||
if (options.preview == 1)
|
||||
{
|
||||
preview();
|
||||
}
|
||||
|
||||
//预览
|
||||
function preview() {
|
||||
var _frmitems = {};
|
||||
for (var i in options.frmData) {
|
||||
var _frmitem = options.frmData[i];
|
||||
_frmitems[_frmitem.control_field] = _frmitem.control_label;
|
||||
//预览
|
||||
function preview() {
|
||||
var _frmitems = {};
|
||||
for (var i in options.frmData) {
|
||||
var _frmitem = options.frmData[i];
|
||||
_frmitems[_frmitem.control_field] = _frmitem.control_label;
|
||||
}
|
||||
var DataBaseLinkData = {};
|
||||
|
||||
|
||||
var _NodeRejectType = { "0": "前一步", "1": "第一步", "2": "某一步", "3": "用户指定", "4": "不处理" };
|
||||
var _NodeIsOver = { "0": "不允许", "1": "允许" };
|
||||
var _NodeDesignate = {
|
||||
"NodeDesignateType1": "所有成员",
|
||||
"NodeDesignateType2": "指定成员",
|
||||
"NodeDesignateType3": "发起者领导",
|
||||
"NodeDesignateType4": "前一步骤领导",
|
||||
"NodeDesignateType5": "发起者部门领导",
|
||||
"NodeDesignateType6": "发起者公司领导"
|
||||
};
|
||||
var _NodeConfluenceType = { "0": "所有步骤通过", "1": "一个步骤通过即可", "2": "按百分比计算" };
|
||||
$.each(options.flowcontent.nodes,
|
||||
function(i, item) {
|
||||
if (item.setInfo != undefined) {
|
||||
var _popoverhtml = "";
|
||||
_popoverhtml +=
|
||||
'<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 基本信息</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += '<li>节点标识:' + item.setInfo.NodeCode + '</li>';
|
||||
_popoverhtml += '<li>驳回类型:' + _NodeRejectType[item.setInfo.NodeRejectType] + '</li>';
|
||||
_popoverhtml += '<li>终止流程:' + _NodeIsOver[item.setInfo.NodeIsOver] + '</li>';
|
||||
if (item.setInfo.Description != "") {
|
||||
_popoverhtml += '<li>备注:' + item.setInfo.Description + '</li>';
|
||||
}
|
||||
if (item.setInfo.NodeConfluenceType != "") {
|
||||
_popoverhtml += '<li>会签策略:' +
|
||||
_NodeConfluenceType[item.setInfo.NodeConfluenceType] +
|
||||
'</li>';
|
||||
if (item.setInfo.NodeConfluenceType == 2) {
|
||||
_popoverhtml += '<li>会签比例:' + item.setInfo.NodeConfluenceRate + '</li>';
|
||||
}
|
||||
}
|
||||
if (item.setInfo.NodeDataBase != "") {
|
||||
_popoverhtml += '<li>绑定数据库:' + DataBaseLinkData[item.setInfo.NodeDataBase] + '</li>';
|
||||
}
|
||||
if (item.setInfo.NodeTable != "") {
|
||||
_popoverhtml += '<li>绑定表名:' + item.setInfo.NodeTable + '</li>';
|
||||
}
|
||||
if (item.setInfo.NodePram != "") {
|
||||
_popoverhtml += '<li>绑定字段:' + item.setInfo.NodePram + '</li>';
|
||||
}
|
||||
_popoverhtml += '</ul>';
|
||||
|
||||
_popoverhtml +=
|
||||
'<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 审核者</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += '<li>类型:' + _NodeDesignate[item.setInfo.NodeDesignate] + '</li>';
|
||||
if (item.setInfo.NodeDesignateData != undefined) {
|
||||
var _rowstr = "";
|
||||
for (var i in item.setInfo.NodeDesignateData.role) {
|
||||
var _postitem = item.setInfo.NodeDesignateData.role[i];
|
||||
var _one = top.clientroleData[_postitem];
|
||||
_rowstr += ' <span class="label label-success">' +
|
||||
(_one == undefined ? _postitem : _one.FullName) +
|
||||
'</span>';
|
||||
if (i == item.setInfo.NodeDesignateData.role.length - 1) {
|
||||
_popoverhtml += '<li>角色:' + _rowstr + '</li>';
|
||||
}
|
||||
}
|
||||
|
||||
_rowstr = "";
|
||||
for (var i in item.setInfo.NodeDesignateData.user) {
|
||||
var _postitem = item.setInfo.NodeDesignateData.user[i];
|
||||
var _one = clientuserData[_postitem];
|
||||
_rowstr += ' <span class="label label-danger">' +
|
||||
(_one == undefined ? _postitem : _one.RealName) +
|
||||
'</span>';
|
||||
if (i == item.setInfo.NodeDesignateData.user.length - 1) {
|
||||
_popoverhtml += '<li>用户:' + _rowstr + '</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
_popoverhtml += '</ul>';
|
||||
|
||||
var _row = "";
|
||||
for (var i in item.setInfo.frmPermissionInfo) {
|
||||
var _item = item.setInfo.frmPermissionInfo[i];
|
||||
var _downtext = "";
|
||||
if (_item.down) {
|
||||
_downtext = ' | 可下载';
|
||||
} else if (_item.down != undefined) {
|
||||
_downtext = ' | 不可下载';
|
||||
}
|
||||
_row += '<li>' +
|
||||
_frmitems[_item.fieldid] +
|
||||
': ' +
|
||||
(_item.look ? '可查看' : '不可查看') +
|
||||
_downtext +
|
||||
'</li>';
|
||||
if (i == item.setInfo.frmPermissionInfo.length - 1) {
|
||||
_popoverhtml +=
|
||||
'<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 权限分配</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += _row;
|
||||
_popoverhtml += '</ul>';
|
||||
}
|
||||
}
|
||||
|
||||
if (item.setInfo.NodeDataBaseToSQL != "" || item.setInfo.NodeSQL != "") {
|
||||
_popoverhtml +=
|
||||
'<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 执行SQL</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += '<li>数据库:' + DataBaseLinkData[item.setInfo.NodeDataBaseToSQL] + '</li>';
|
||||
_popoverhtml += '<li>SQL语句:' + item.setInfo.NodeSQL + '</li>';
|
||||
_popoverhtml += '</ul>';
|
||||
}
|
||||
|
||||
$frmpreview.find('#' + item.id).attr('title', item.name);
|
||||
$frmpreview.find('#' + item.id).attr('data-toggle', 'popover');
|
||||
$frmpreview.find('#' + item.id).attr('data-placement', 'bottom');
|
||||
$frmpreview.find('#' + item.id).attr('data-content', _popoverhtml);
|
||||
} else {
|
||||
$frmpreview.find('#' + item.id).attr('title', item.name);
|
||||
$frmpreview.find('#' + item.id).attr('data-toggle', 'popover');
|
||||
$frmpreview.find('#' + item.id).attr('data-placement', 'bottom');
|
||||
$frmpreview.find('#' + item.id).attr('data-content', "该节点未被设置");
|
||||
}
|
||||
});
|
||||
$frmpreview.find('.GooFlow_item').popover({ html: true });
|
||||
}
|
||||
|
||||
function labellingRedNode(id) {
|
||||
$frmpreview.find('.flow-labellingnode-red').removeClass('flow-labellingnode-red');
|
||||
$frmpreview.find('#' + id).addClass('flow-labellingnode-red');
|
||||
}
|
||||
|
||||
return flowPanel;
|
||||
}
|
||||
var DataBaseLinkData = {};
|
||||
|
||||
exports('utils/flowlayout'); //只有这样写才能找到utils/flowlayout??好尴尬
|
||||
});
|
||||
|
||||
|
||||
|
||||
var _NodeRejectType = { "0": "前一步", "1": "第一步", "2": "某一步", "3": "用户指定", "4": "不处理" };
|
||||
var _NodeIsOver = { "0": "不允许", "1": "允许" };
|
||||
var _NodeDesignate = { "NodeDesignateType1": "所有成员", "NodeDesignateType2": "指定成员", "NodeDesignateType3": "发起者领导", "NodeDesignateType4": "前一步骤领导", "NodeDesignateType5": "发起者部门领导", "NodeDesignateType6": "发起者公司领导" };
|
||||
var _NodeConfluenceType = { "0": "所有步骤通过", "1": "一个步骤通过即可", "2": "按百分比计算" };
|
||||
$.each(options.flowcontent.nodes, function (i, item) {
|
||||
if (item.setInfo != undefined) {
|
||||
var _popoverhtml = "";
|
||||
_popoverhtml += '<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 基本信息</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += '<li>节点标识:' + item.setInfo.NodeCode + '</li>';
|
||||
_popoverhtml += '<li>驳回类型:' + _NodeRejectType[item.setInfo.NodeRejectType] + '</li>';
|
||||
_popoverhtml += '<li>终止流程:' + _NodeIsOver[item.setInfo.NodeIsOver] + '</li>';
|
||||
if (item.setInfo.Description != "") { _popoverhtml += '<li>备注:' + item.setInfo.Description + '</li>'; }
|
||||
if (item.setInfo.NodeConfluenceType != "") {
|
||||
_popoverhtml += '<li>会签策略:' + _NodeConfluenceType[item.setInfo.NodeConfluenceType] + '</li>';
|
||||
if (item.setInfo.NodeConfluenceType == 2) {
|
||||
_popoverhtml += '<li>会签比例:' + item.setInfo.NodeConfluenceRate + '</li>';
|
||||
}
|
||||
}
|
||||
if (item.setInfo.NodeDataBase != "") {
|
||||
_popoverhtml += '<li>绑定数据库:' + DataBaseLinkData[item.setInfo.NodeDataBase] + '</li>';
|
||||
}
|
||||
if (item.setInfo.NodeTable != "") {
|
||||
_popoverhtml += '<li>绑定表名:' + item.setInfo.NodeTable + '</li>';
|
||||
}
|
||||
if (item.setInfo.NodePram != "") {
|
||||
_popoverhtml += '<li>绑定字段:' + item.setInfo.NodePram + '</li>';
|
||||
}
|
||||
_popoverhtml += '</ul>';
|
||||
|
||||
_popoverhtml += '<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 审核者</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += '<li>类型:' + _NodeDesignate[item.setInfo.NodeDesignate] + '</li>';
|
||||
if (item.setInfo.NodeDesignateData != undefined) {
|
||||
var _rowstr = "";
|
||||
for (var i in item.setInfo.NodeDesignateData.role) {
|
||||
var _postitem = item.setInfo.NodeDesignateData.role[i];
|
||||
var _one = top.clientroleData[_postitem];
|
||||
_rowstr += ' <span class="label label-success">' + (_one == undefined ? _postitem : _one.FullName) + '</span>';
|
||||
if (i == item.setInfo.NodeDesignateData.role.length - 1) {
|
||||
_popoverhtml += '<li>角色:' + _rowstr + '</li>';
|
||||
}
|
||||
}
|
||||
|
||||
_rowstr = "";
|
||||
for (var i in item.setInfo.NodeDesignateData.user) {
|
||||
var _postitem = item.setInfo.NodeDesignateData.user[i];
|
||||
var _one = clientuserData[_postitem];
|
||||
_rowstr += ' <span class="label label-danger">' + (_one == undefined ? _postitem : _one.RealName) + '</span>';
|
||||
if (i == item.setInfo.NodeDesignateData.user.length - 1) {
|
||||
_popoverhtml += '<li>用户:' + _rowstr + '</li>';
|
||||
}
|
||||
}
|
||||
}
|
||||
_popoverhtml += '</ul>';
|
||||
|
||||
var _row = "";
|
||||
for (var i in item.setInfo.frmPermissionInfo) {
|
||||
var _item = item.setInfo.frmPermissionInfo[i];
|
||||
var _downtext = "";
|
||||
if (_item.down) {
|
||||
_downtext = ' | 可下载';
|
||||
}
|
||||
else if (_item.down != undefined) {
|
||||
_downtext = ' | 不可下载';
|
||||
}
|
||||
_row += '<li>' + _frmitems[_item.fieldid] + ': ' + (_item.look ? '可查看' : '不可查看') + _downtext + '</li>';
|
||||
if (i == item.setInfo.frmPermissionInfo.length - 1) {
|
||||
_popoverhtml += '<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 权限分配</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += _row;
|
||||
_popoverhtml += '</ul>';
|
||||
}
|
||||
}
|
||||
|
||||
if (item.setInfo.NodeDataBaseToSQL != "" || item.setInfo.NodeSQL != "") {
|
||||
_popoverhtml += '<div class="flow-portal-panel-title"><i class="fa fa-navicon"></i> 执行SQL</div>';
|
||||
_popoverhtml += '<ul>';
|
||||
_popoverhtml += '<li>数据库:' + DataBaseLinkData[item.setInfo.NodeDataBaseToSQL] + '</li>';
|
||||
_popoverhtml += '<li>SQL语句:' + item.setInfo.NodeSQL + '</li>';
|
||||
_popoverhtml += '</ul>';
|
||||
}
|
||||
|
||||
$frmpreview.find('#' + item.id).attr('title', item.name);
|
||||
$frmpreview.find('#' + item.id).attr('data-toggle', 'popover');
|
||||
$frmpreview.find('#' + item.id).attr('data-placement', 'bottom');
|
||||
$frmpreview.find('#' + item.id).attr('data-content', _popoverhtml);
|
||||
}
|
||||
else {
|
||||
$frmpreview.find('#' + item.id).attr('title', item.name);
|
||||
$frmpreview.find('#' + item.id).attr('data-toggle', 'popover');
|
||||
$frmpreview.find('#' + item.id).attr('data-placement', 'bottom');
|
||||
$frmpreview.find('#' + item.id).attr('data-content', "该节点未被设置");
|
||||
}
|
||||
});
|
||||
$frmpreview.find('.GooFlow_item').popover({ html: true });
|
||||
}
|
||||
|
||||
function labellingRedNode(id)
|
||||
{
|
||||
$frmpreview.find('.flow-labellingnode-red').removeClass('flow-labellingnode-red');
|
||||
$frmpreview.find('#' + id).addClass('flow-labellingnode-red');
|
||||
}
|
||||
|
||||
return FlowPanel;
|
||||
}
|
||||
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 202 KiB After Width: | Height: | Size: 231 KiB |
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.indicator(),e.elemItem.length<=1||(e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});
|
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
|
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});
|
File diff suppressed because one or more lines are too long
2
OpenAuth.Mvc/layui/lay/modules/jquery.js
vendored
2
OpenAuth.Mvc/layui/lay/modules/jquery.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?'<a href="javascript:;" class="layui-laypage-prev'+(1==a.curr?" "+r:"")+'" data-page="'+(a.curr-1)+'">'+a.prev+"</a>":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'+(a.first||1)+"</a>");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r<t-1&&(r=u-t+1),a.first!==!1&&r>2&&e.push('<span class="layui-laypage-spr">…</span>');r<=u;r++)r===a.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(a.theme)?'style="background-color:'+a.theme+';"':"")+"></em><em>"+r+"</em></span>"):e.push('<a href="javascript:;" data-page="'+r+'">'+r+"</a>");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1<a.pages&&e.push('<span class="layui-laypage-spr">…</span>'),0!==t&&e.push('<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'+a.pages+'">'+(a.last||a.pages)+"</a>")),e.join("")}(),next:function(){return a.next?'<a href="javascript:;" class="layui-laypage-next'+(a.curr==a.pages?" "+r:"")+'" data-page="'+(a.curr+1)+'">'+a.next+"</a>":""}(),count:'<span class="layui-laypage-count">共 '+a.count+" 条</span>",limit:function(){var e=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(a.limits,function(t,n){e.push('<option value="'+n+'"'+(n===a.limit?"selected":"")+">"+n+" 条/页</option>")}),e.join("")+"</select></span>"}(),skip:function(){return['<span class="layui-laypage-skip">到第','<input type="text" min="1" value="'+a.curr+'" class="layui-input">','页<button type="button" class="layui-laypage-btn">确定</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(a.theme?/^#/.test(a.theme)?"molv":a.theme:"default")+'" id="layui-laypage-'+a.index+'">',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"</div>"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;o<y;o++)"a"===r[o].nodeName.toLowerCase()&&s.on(r[o],"click",function(){var e=0|this.getAttribute("data-page");e<1||e>i.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)});
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?'<a href="javascript:;" class="layui-laypage-prev'+(1==a.curr?" "+r:"")+'" data-page="'+(a.curr-1)+'">'+a.prev+"</a>":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'+(a.first||1)+"</a>");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r<t-1&&(r=u-t+1),a.first!==!1&&r>2&&e.push('<span class="layui-laypage-spr">…</span>');r<=u;r++)r===a.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(a.theme)?'style="background-color:'+a.theme+';"':"")+"></em><em>"+r+"</em></span>"):e.push('<a href="javascript:;" data-page="'+r+'">'+r+"</a>");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1<a.pages&&e.push('<span class="layui-laypage-spr">…</span>'),0!==t&&e.push('<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'+a.pages+'">'+(a.last||a.pages)+"</a>")),e.join("")}(),next:function(){return a.next?'<a href="javascript:;" class="layui-laypage-next'+(a.curr==a.pages?" "+r:"")+'" data-page="'+(a.curr+1)+'">'+a.next+"</a>":""}(),count:'<span class="layui-laypage-count">共 '+a.count+" 条</span>",limit:function(){var e=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(a.limits,function(t,n){e.push('<option value="'+n+'"'+(n===a.limit?"selected":"")+">"+n+" 条/页</option>")}),e.join("")+"</select></span>"}(),skip:function(){return['<span class="layui-laypage-skip">到第','<input type="text" min="1" value="'+a.curr+'" class="layui-input">','页<button type="button" class="layui-laypage-btn">确定</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(a.theme?/^#/.test(a.theme)?"molv":a.theme:"default")+'" id="layui-laypage-'+a.index+'">',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"</div>"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;o<y;o++)"a"===r[o].nodeName.toLowerCase()&&s.on(r[o],"click",function(){var e=0|this.getAttribute("data-page");e<1||e>i.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)});
|
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},n={exp:function(e){return new RegExp(e,"g")},query:function(e,n,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return c((n||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var n="Laytpl Error:";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},c=n.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=c("^"+r.open+"#",""),l=c(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(c(r.open+"#"),r.open+"# ").replace(c(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(n.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(n.query(1),function(e){var n='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(c(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),n='"+_escape_('),n+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,n.escape)}catch(u){return delete o.cache,n.error(u,p)}},t.pt.render=function(e,r){var c,t=this;return e?(c=t.cache?t.cache(e,n.escape):t.parse(t.tpl,e),r?void r(c):c):n.error("no data")};var o=function(e){return"string"!=typeof e?n.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var n in e)r[n]=e[n]},o.v="1.2.0",e("laytpl",o)});
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('<ul class="'+(n.spread?"layui-show":"")+'"></ul>'),s=o(["<li "+(n.spread?'data-spread="'+n.spread+'"':"")+">",function(){return l?'<i class="layui-icon layui-tree-spread">'+(n.spread?t.arrow[1]:t.arrow[0])+"</i>":""}(),function(){return r.check?'<i class="layui-icon layui-tree-check">'+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"</i>":""}(),function(){return'<a href="'+(n.href||"javascript:;")+'" '+(r.target&&n.href?'target="'+r.target+'"':"")+">"+('<i class="layui-icon layui-tree-'+(l?"branch":"leaf")+'">'+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"</i>")+("<cite>"+(n.name||"未命名")+"</cite></a>")}(),"</li>"].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('<div class="layui-box '+t+'"></div>'));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})});
|
File diff suppressed because one or more lines are too long
@@ -1,2 +1,2 @@
|
||||
/** layui-v2.1.5 MIT License By http://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var o=layui.$,t={fixbar:function(e){var t,a,i="layui-fixbar",l="layui-fixbar-top",r=o(document),c=o("body");e=o.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var n=[e.bar1,e.bar2,""],u=o(['<ul class="'+i+'">',e.bar1?'<li class="layui-icon" lay-type="bar1" style="'+e.bgcolor+'">'+n[0]+"</li>":"",e.bar2?'<li class="layui-icon" lay-type="bar2" style="'+e.bgcolor+'">'+n[1]+"</li>":"",'<li class="layui-icon '+l+'" lay-type="top" style="'+e.bgcolor+'">'+n[2]+"</li>","</ul>"].join("")),s=u.find("."+l),b=function(){var o=r.scrollTop();o>=e.showHeight?t||(s.show(),t=1):t&&(s.hide(),t=0)};o("."+i)[0]||("object"==typeof e.css&&u.css(e.css),c.append(u),b(),u.find("li").on("click",function(){var t=o(this),a=t.attr("lay-type");"top"===a&&o("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,a)}),r.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){b()},100)}))},countdown:function(e,o,t){var a=this,i="function"==typeof o,l=new Date(e).getTime(),r=new Date(!o||i?(new Date).getTime():o).getTime(),c=l-r,n=[Math.floor(c/864e5),Math.floor(c/36e5)%24,Math.floor(c/6e4)%60,Math.floor(c/1e3)%60];i&&(t=o);var u=setTimeout(function(){a.countdown(e,r+1e3,t)},1e3);return t&&t(c>0?n:[0,0,0,0],o,u),c<=0&&clearTimeout(u),u},timeAgo:function(e,o){var t=(new Date).getTime()-new Date(e).getTime();return t>2592e6?(t=new Date(e).toLocaleString(),o&&(t=t.replace(/\s[\S]+$/g,"")),t):t>=864e5?(t/1e3/60/60/24|0)+"天前":t>=36e5?(t/1e3/60/60|0)+"小时前":t>=18e4?(t/1e3/60|0)+"分钟前":t<0?"未来":"刚刚"}};e("util",t)});
|
||||
/** layui-v2.2.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var t=layui.$,i={fixbar:function(e){var i,o,a="layui-fixbar",r="layui-fixbar-top",n=t(document),l=t("body");e=t.extend({showHeight:200},e),e.bar1=e.bar1===!0?"":e.bar1,e.bar2=e.bar2===!0?"":e.bar2,e.bgcolor=e.bgcolor?"background-color:"+e.bgcolor:"";var c=[e.bar1,e.bar2,""],g=t(['<ul class="'+a+'">',e.bar1?'<li class="layui-icon" lay-type="bar1" style="'+e.bgcolor+'">'+c[0]+"</li>":"",e.bar2?'<li class="layui-icon" lay-type="bar2" style="'+e.bgcolor+'">'+c[1]+"</li>":"",'<li class="layui-icon '+r+'" lay-type="top" style="'+e.bgcolor+'">'+c[2]+"</li>","</ul>"].join("")),s=g.find("."+r),u=function(){var t=n.scrollTop();t>=e.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};t("."+a)[0]||("object"==typeof e.css&&g.css(e.css),l.append(g),u(),g.find("li").on("click",function(){var i=t(this),o=i.attr("lay-type");"top"===o&&t("html,body").animate({scrollTop:0},200),e.click&&e.click.call(this,o)}),n.on("scroll",function(){clearTimeout(o),o=setTimeout(function(){u()},100)}))},countdown:function(e,t,i){var o=this,a="function"==typeof t,r=new Date(e).getTime(),n=new Date(!t||a?(new Date).getTime():t).getTime(),l=r-n,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=t);var g=setTimeout(function(){o.countdown(e,n+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],t,g),l<=0&&clearTimeout(g),g},timeAgo:function(e,t){var i=this,o=[[],[]],a=(new Date).getTime()-new Date(e).getTime();return a>6912e5?(a=new Date(e),o[0][0]=i.digit(a.getFullYear(),4),o[0][1]=i.digit(a.getMonth()+1),o[0][2]=i.digit(a.getDate()),t||(o[1][0]=i.digit(a.getHours()),o[1][1]=i.digit(a.getMinutes()),o[1][2]=i.digit(a.getSeconds())),o[0].join("-")+" "+o[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(e,t){var i="";e=String(e),t=t||2;for(var o=e.length;o<t;o++)i+="0";return e<Math.pow(10,t)?i+(0|e):e},toDateString:function(e,t){var i=this,o=new Date(e||new Date),a=[i.digit(o.getFullYear(),4),i.digit(o.getMonth()+1),i.digit(o.getDate())],r=[i.digit(o.getHours()),i.digit(o.getMinutes()),i.digit(o.getSeconds())];return t=t||"yyyy-MM-dd HH:mm:ss",t.replace(/yyyy/g,a[0]).replace(/MM/g,a[1]).replace(/dd/g,a[2]).replace(/HH/g,r[0]).replace(/mm/g,r[1]).replace(/ss/g,r[2])}};e("util",i)});
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
101
OpenAuth.Mvc/userJs/flowDesign.js
Normal file
101
OpenAuth.Mvc/userJs/flowDesign.js
Normal file
@@ -0,0 +1,101 @@
|
||||
layui.config({
|
||||
base: "/js/"
|
||||
}).use(['form', 'vue', 'layer', 'jquery', 'table', 'flow-ui/gooflow', 'utils/flowlayout', 'droptree', 'queryString'], function () {
|
||||
var form = layui.form,
|
||||
element = layui.element,
|
||||
//layer = (parent == undefined || parent.layer === undefined )? layui.layer : parent.layer,
|
||||
layer = layui.layer,
|
||||
$ = layui.jquery;
|
||||
|
||||
var postData = {};//提交数据
|
||||
var flowData = {};
|
||||
var frmData = {};
|
||||
var SchemeContentOld;
|
||||
var frmapp;
|
||||
var shcemeAuthorizeData = "";
|
||||
var AllAuthorizeCheckData = {};
|
||||
|
||||
|
||||
/*=========流程设计(begin)======================*/
|
||||
var FlowDesignPanel;
|
||||
var FlowDesignObject;//
|
||||
var LineId;
|
||||
var nodePramData = [];
|
||||
FlowDesignPanel = $('#flowPanel').flowdesign({
|
||||
height: ($(window).height() - 87),
|
||||
widht: 1000,
|
||||
OpenNode: function (object) {
|
||||
FlowDesignObject = object;
|
||||
if (object.$nodeData[object.$focus].type == 'startround') {
|
||||
return false;
|
||||
}
|
||||
|
||||
layer.open({
|
||||
type: 2,
|
||||
skin: 'layui-layer-rim', //加上边框
|
||||
area: ['800px', '450px'], //宽高
|
||||
maxmin: true, //开启最大化最小化按钮
|
||||
title: '节点设置【' + object.$nodeData[object.$focus].name + '】',
|
||||
content: '/FlowManage/FlowDesign/FlowNodeForm',
|
||||
btn: ['保存', '关闭'],
|
||||
yes: function (index, layero) {
|
||||
var body = layer.getChildFrame('body', index);
|
||||
var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
||||
iframeWin.AcceptClick();
|
||||
},
|
||||
cancel: function (index) {
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
},
|
||||
OpenLine: function (id, object) {
|
||||
FlowDesignObject = object;
|
||||
LineId = id;
|
||||
var _line = object.$lineData[id];
|
||||
var _fromNode = object.$nodeData[_line.from];
|
||||
if (_fromNode.type == "shuntnode") {
|
||||
dialogTop("前一个节点是分流节点无法设置流转条件", "error");
|
||||
return false;
|
||||
}
|
||||
|
||||
layer.open({
|
||||
type: 2,
|
||||
skin: 'layui-layer-rim', //加上边框
|
||||
area: ['800px', '450px'], //宽高
|
||||
maxmin: true, //开启最大化最小化按钮
|
||||
title: '流转条件设置',
|
||||
content: '/FlowManage/FlowDesign/FlowLineForm',
|
||||
btn: ['保存', '关闭'],
|
||||
yes: function (index, layero) {
|
||||
var body = layer.getChildFrame('body', index);
|
||||
var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
||||
iframeWin.AcceptClick();
|
||||
},
|
||||
cancel: function (index) {
|
||||
layer.close(index);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
function setFlowInfo(data) {
|
||||
FlowDesignPanel.loadData(data);
|
||||
}
|
||||
function callBackNode(id, data, _nodePramData) {
|
||||
nodePramData = _nodePramData;
|
||||
FlowDesignPanel.SetNodeEx(id, data);
|
||||
}
|
||||
function callBackLine(id, data) {
|
||||
FlowDesignPanel.SetLineEx(id, data);
|
||||
}
|
||||
function bindingFlow() {
|
||||
var _content = FlowDesignPanel.exportDataEx();
|
||||
if (_content == -1) {
|
||||
return false;
|
||||
}
|
||||
flowData["SchemeContent"] = JSON.stringify({ "Frm": frmData, "Flow": _content });
|
||||
return true;
|
||||
}
|
||||
/*=========流程设计(end)=====================*/
|
||||
|
||||
})
|
@@ -1,12 +1,18 @@
|
||||
layui.config({
|
||||
base: "/js/"
|
||||
}).use(['form','vue', 'ztree', 'layer', 'jquery', 'table','droptree','openauth'], function () {
|
||||
var form = layui.form,
|
||||
}).use(['form','vue', 'ztree', 'layer','element', 'jquery', 'table','droptree','openauth'], function () {
|
||||
var form = layui.form, element = layui.element,
|
||||
//layer = (parent == undefined || parent.layer === undefined )? layui.layer : parent.layer,
|
||||
layer = layui.layer,
|
||||
$ = layui.jquery;
|
||||
var table = layui.table;
|
||||
var openauth = layui.openauth;
|
||||
|
||||
//标签切换
|
||||
element.on('tab(tab)', function (data) {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
layui.droptree("/UserSession/GetOrgs", "#Organizations", "#OrganizationIds");
|
||||
|
||||
//主列表加载,可反复调用进行刷新
|
||||
@@ -70,7 +76,7 @@
|
||||
var title = update ? "编辑信息" : "添加";
|
||||
layer.open({
|
||||
title: title,
|
||||
area: ["500px", "400px"],
|
||||
area: ["800px", "600px"],
|
||||
type: 1,
|
||||
content: $('#divEdit'),
|
||||
success: function() {
|
||||
@@ -116,7 +122,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//监听页面主按钮操作
|
||||
var active = {
|
||||
btnDel: function () { //批量删除
|
||||
@@ -153,4 +158,8 @@
|
||||
});
|
||||
|
||||
//监听页面主按钮操作 end
|
||||
|
||||
|
||||
|
||||
|
||||
})
|
Reference in New Issue
Block a user