mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 02:14:44 +08:00
routine update
This commit is contained in:
@@ -74,6 +74,8 @@
|
||||
height: 500,
|
||||
widht: 700,
|
||||
OpenNode: function (object) {
|
||||
FlowDesignObject = object;
|
||||
|
||||
if (object.$nodeData[object.$focus].type == 'startround') {
|
||||
return false;
|
||||
}
|
||||
@@ -90,6 +92,7 @@
|
||||
var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象,执行iframe页的方法:iframeWin.method();
|
||||
var nodedata = iframeWin.getVal();
|
||||
flowDesignPanel.SetNodeEx(object.$focus, nodedata);
|
||||
layer.close(index);
|
||||
},
|
||||
cancel: function (index) {
|
||||
layer.close(index);
|
||||
|
||||
@@ -4,13 +4,28 @@ layui.config({
|
||||
var //layer = (parent == undefined || parent.layer === undefined )? layui.layer : parent.layer,
|
||||
layer = layui.layer,
|
||||
$ = layui.jquery;
|
||||
var users = []; //节点的执行人
|
||||
|
||||
var users = [];
|
||||
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
|
||||
//从flowschemes.js进入的节点信息
|
||||
var _FlowDesignObject = parent.FlowDesignObject;
|
||||
var node = _FlowDesignObject.$nodeData[_FlowDesignObject.$focus];
|
||||
node.id = _FlowDesignObject.$focus;
|
||||
|
||||
var vm = new Vue({
|
||||
el: "#formEdit"
|
||||
});
|
||||
|
||||
//初始化节点设置信息
|
||||
if (node.setInfo != null) {
|
||||
vm.$set('$data', node.setInfo);
|
||||
users = node.setInfo.NodeDesignateData.users;
|
||||
}
|
||||
|
||||
//菜单列表
|
||||
var menucon = {}; //table的参数,如搜索key,点击tree的id
|
||||
//菜单树状列表,等lay table没问题了,可以换成table
|
||||
var menutree = function () {
|
||||
//副树状结构,等lay table没问题了,可以换成table
|
||||
var subtree = function () {
|
||||
var url = '/UserManager/Load';
|
||||
var menuTree;
|
||||
var setting = {
|
||||
@@ -82,7 +97,7 @@ layui.config({
|
||||
},
|
||||
callback: {
|
||||
onClick: function (event, treeId, treeNode) {
|
||||
menutree.load({ orgId: treeNode.Id });
|
||||
subtree.load({ orgId: treeNode.Id });
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -92,7 +107,7 @@ layui.config({
|
||||
var newNode = { Name: "全部", Id: null, ParentId: "" };
|
||||
json.push(newNode);
|
||||
zTreeObj.addNodes(null, json);
|
||||
menutree.load({ orgId: '' });
|
||||
subtree.load({ orgId: '' });
|
||||
zTreeObj.expandAll(true);
|
||||
});
|
||||
};
|
||||
@@ -102,22 +117,13 @@ layui.config({
|
||||
}
|
||||
}();
|
||||
|
||||
var vm = new Vue({
|
||||
el: "#formEdit"
|
||||
});
|
||||
|
||||
var _FlowDesignObject = parent.FlowDesignObject;
|
||||
node = _FlowDesignObject.$nodeData[_FlowDesignObject.$focus];
|
||||
node.id = _FlowDesignObject.$focus;
|
||||
vm.set($data.node.setInfo);
|
||||
|
||||
//提供给上父页面调用
|
||||
getVal = function () {
|
||||
var result = {
|
||||
NodeDesignateData: { //节点指定操作人
|
||||
users: users,
|
||||
role: [],
|
||||
org:[]
|
||||
org: []
|
||||
}
|
||||
};
|
||||
$.extend(result, vm.$data);
|
||||
@@ -126,4 +132,6 @@ layui.config({
|
||||
return result;
|
||||
}
|
||||
|
||||
//让层自适应iframe
|
||||
parent.layer.iframeAuto(index);
|
||||
})
|
||||
Reference in New Issue
Block a user