5.0.230 版本发布
parent
fbe85d1566
commit
0a2d5516c3
|
@ -1,5 +1,5 @@
|
|||
layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (exports) {
|
||||
var $ = layui.$
|
||||
let $ = layui.$
|
||||
, zlContext = layui.zlContext
|
||||
, table = layui.table
|
||||
, layer = layui.layer
|
||||
|
@ -20,7 +20,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
zlPopSourceExt = {
|
||||
$elem: null,
|
||||
getSettings: function () {
|
||||
var ret = {};
|
||||
let ret = {};
|
||||
ret = obj.$elem.attr('settings');
|
||||
if (ret) {
|
||||
return JSON.parse(ret);
|
||||
|
@ -35,12 +35,12 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
},
|
||||
render: function ($elem, value, text) {
|
||||
var showvalue = (value == undefined ? ($elem.attr('value') == undefined ? "" : $elem.attr('value')) : value);
|
||||
let showvalue = (value == undefined ? ($elem.attr('value') == undefined ? "" : $elem.attr('value')) : value);
|
||||
if ($elem.attr('loaded') && ($elem.attr('value') == undefined ? "" : $elem.attr('value')) == showvalue) {
|
||||
return;
|
||||
}
|
||||
text = text ? text: '' ;
|
||||
var defaultsetting = {
|
||||
text = text ? text : '';
|
||||
let defaultsetting = {
|
||||
multselect: true
|
||||
, formtitle: "选择树节点"
|
||||
, ischeckleaf: false
|
||||
|
@ -61,8 +61,8 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
type: 'get',
|
||||
dataFilter: function ajaxDataFilter(treeId, parentNode, responseData) {
|
||||
if (responseData[zlConfig.global.result.statusName] == 'OK') {
|
||||
var data = responseData[zlConfig.global.result.dataName];
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
let data = responseData[zlConfig.global.result.dataName];
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
if (data[i].EXPANDPROPERTY == "org") {
|
||||
data[i].icon = layui.cache['contentPath'] + "/static/image/org.png";
|
||||
} else {
|
||||
|
@ -96,21 +96,23 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
zlPopSourceExt.reloadTable(newoptions);
|
||||
}
|
||||
}
|
||||
,tabs: [
|
||||
{ name: '角色', url: '/kdayun/manager/coreroleauth/queryRole', method: 'get', entryname: 'ROLEID', tableUrl: '/kdayun/admin/coreuser/queryusersbydeptrole', tbmethod: 'post' },
|
||||
{ name: '机构部门', url: '/kdayun/manager/coreroleauth/queryOrgddata', method: 'get', tableUrl: '/kdayun/admin/coreuser/queryusersbydeptrole', tbmethod: 'post' }
|
||||
, tabs: [
|
||||
{ name: '角色', url: layui.cache['contentPath'] + '/manager/coreroleauth/queryRole', method: 'get', entryname: 'ROLEID', tableUrl: layui.cache['contentPath'] + '/admin/coreuser/queryusersbydeptrole', tbmethod: 'post' },
|
||||
{ name: '机构部门', url: layui.cache['contentPath'] + '/admin/coreorg/queryOrgddata', method: 'get', tableUrl: layui.cache['contentPath'] + '/admin/coreuser/queryusersbydeptrole', tbmethod: 'post' }
|
||||
]
|
||||
, cols: [[{ type: 'numbers', fixed: 'left', title: '#' },
|
||||
{ type: 'radio', fixed: 'left' },
|
||||
{ field: 'OBJNAME', title: '名称', width: 140 },
|
||||
{ field: 'OBJCODE', title: '编号', width: 140 }
|
||||
{ field: 'OBJCODE', title: '编号', width: 140 },
|
||||
{ field: 'DEPTNAME', title: '部门', width: 140 },
|
||||
{ field: 'ROLENAME', title: '角色', width: 140 }
|
||||
]]
|
||||
, page: false
|
||||
, limit: 20
|
||||
, tableismultiple: false
|
||||
, max: ''
|
||||
, readonly: false
|
||||
, verify:''
|
||||
, verify: ''
|
||||
, selectcallback: function (treedata, data, norow, options, $this) {
|
||||
|
||||
if (data == undefined) {
|
||||
|
@ -122,9 +124,9 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
options.setvalue = data[0][options.id];
|
||||
//$('input[name="' + options.inputtreehiddename + '"]').val(treedata[0][options.id]);
|
||||
} else {
|
||||
var id = ""
|
||||
let id = ""
|
||||
, name = "";
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
id = id + "," + data[i][options.id];
|
||||
name = name + "," + data[i][options.name];
|
||||
}
|
||||
|
@ -135,8 +137,8 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
$('input[name="' + options.inputhiddename + '"]').val(id);
|
||||
options.setvalue = id;
|
||||
}
|
||||
var noselectid = "";
|
||||
for (var b = 0; b < norow.length; b++) {
|
||||
let noselectid = "";
|
||||
for (let b = 0; b < norow.length; b++) {
|
||||
noselectid = noselectid + "," + norow[b][options.id];
|
||||
}
|
||||
$('input[name="' + options.inputhiddenameno + '"]').val(noselectid);
|
||||
|
@ -149,17 +151,17 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
, inputtreehiddename = 'tree' + name
|
||||
, inputhiddenameno = 'no' + name
|
||||
, $parent = $elem.parent()
|
||||
, options = obj.getSettings()
|
||||
, options = obj.getSettings()
|
||||
, optionstabs = options.tabs
|
||||
, url = optionstabs[0].url
|
||||
, placeholder = options.placeholder == undefined ? "" : options.placeholder
|
||||
, newoptions
|
||||
, addspanid = name + 'addspan'
|
||||
, delspanid = name + 'delspan'
|
||||
, tempvalue = options.setvalue ? options.setvalue : value
|
||||
, tempvalue = options.setvalue ? options.setvalue : value
|
||||
, html = [
|
||||
, '<div class = "layui-select-title" name="' + divname + '" >'
|
||||
, ' <input type="text" class="layui-input" placeholder ="' + placeholder + '" name="' + inputname + '" readonly lay-verify="'+options.verify+'" value="' + text + '">'
|
||||
, ' <input type="text" class="layui-input" placeholder ="' + placeholder + '" name="' + inputname + '" readonly lay-verify="' + options.verify + '" value="' + text + '">'
|
||||
, '</div>']
|
||||
, parenthtml = [
|
||||
, '<input type="hidden" class="layui-input" name="' + inputhiddename + '" value="' + tempvalue + '">'
|
||||
|
@ -189,7 +191,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
newoptions.inputhiddenameno = inputhiddenameno;
|
||||
if (zlContext.isEmpty(text) && !zlContext.isEmpty(value)) {
|
||||
if (!zlContext.isEmpty(url)) {
|
||||
var valuelist = new Array()
|
||||
let valuelist = new Array()
|
||||
, tempvalue = value;
|
||||
newoptions.async.otherParam = (newoptions.async.otherParam == undefined ? {} : newoptions.async.otherParam)
|
||||
newoptions.async.otherParam[newoptions.id] = tempvalue;
|
||||
|
@ -200,8 +202,8 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
data: newoptions.async.otherParam,
|
||||
dataType: 'json',
|
||||
success: function (result) {
|
||||
var sourcedata = result.obj;
|
||||
for (var i = 0; i < sourcedata.length; i++) {
|
||||
let sourcedata = result.obj;
|
||||
for (let i = 0; i < sourcedata.length; i++) {
|
||||
if (tempvalue.indexOf(sourcedata[i][newoptions.id]) > -1) {
|
||||
objname = objname + "," + sourcedata[i][newoptions.data.key.name]
|
||||
}
|
||||
|
@ -216,7 +218,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
});
|
||||
} else {
|
||||
for (var i = 0; i < newoptions.sourcedata.length; i++) {
|
||||
for (let i = 0; i < newoptions.sourcedata.length; i++) {
|
||||
if (tempvalue.indexOf((newoptions.sourcedata)[i][newoptions.id] > -1)) {
|
||||
objname = objname + "," + (newoptions.sourcedata)[i][newoptions.data.key.name]
|
||||
}
|
||||
|
@ -232,7 +234,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
|
||||
, initspans: function (options, addspanid, delspanid, divname) {
|
||||
var $input = $('input[name="' + options.inputname + '"]');
|
||||
let $input = $('input[name="' + options.inputname + '"]');
|
||||
$('#' + delspanid).on('click', function () {
|
||||
$('.layui-input').val("");
|
||||
});
|
||||
|
@ -253,7 +255,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
$('#' + delspanid).hide();
|
||||
});
|
||||
$('#' + addspanid).on('click', function () {
|
||||
var $this = $(this),
|
||||
let $this = $(this),
|
||||
//获取弹出框拼接内容
|
||||
html = zlPopSourceExt.concatenationStr(options);
|
||||
layer.open({
|
||||
|
@ -265,11 +267,11 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
content: html.join(''),
|
||||
btn: ['确定', '取消'],
|
||||
success: function (index) {
|
||||
var layercontentH = index.find(".layui-layer-content").height();
|
||||
var seacherbox = $("#seacher-box").height()+parseFloat($("#seacher-box").css('margin-top'));
|
||||
var tabtitleH = $("#tab-title").height();
|
||||
var poptreeboxH = $("#poptree-box");
|
||||
poptreeboxH.height(layercontentH - tabtitleH - seacherbox - 28).css('box-sizing','border-box');
|
||||
let layercontentH = index.find(".layui-layer-content").height();
|
||||
let seacherbox = $("#seacher-box").height() + parseFloat($("#seacher-box").css('margin-top'));
|
||||
let tabtitleH = $("#tab-title").height();
|
||||
let poptreeboxH = $("#poptree-box");
|
||||
poptreeboxH.height(layercontentH - tabtitleH - seacherbox - 28).css('box-sizing', 'border-box');
|
||||
tbFileresH = layercontentH - 15;
|
||||
tbSelectedH = layercontentH - 64
|
||||
checkdatas = [];
|
||||
|
@ -287,7 +289,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
selectionType = 'radio'
|
||||
}
|
||||
table.on(selectionType + '(tbDatagrid)', function (obj) {
|
||||
var bbb = table.checkStatus('tbFileres').data
|
||||
let bbb = table.checkStatus('tbFileres').data
|
||||
if (obj.checked == true) {
|
||||
if (selectionType == 'radio') {
|
||||
checkdatas = [];
|
||||
|
@ -296,7 +298,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
if (obj.type == 'one') {
|
||||
checkdatas.push(obj.data);
|
||||
} else {
|
||||
for (var i = 0; i < table_data.length; i++) {
|
||||
for (let i = 0; i < table_data.length; i++) {
|
||||
checkdatas.push(table_data[i]);
|
||||
}
|
||||
}
|
||||
|
@ -304,26 +306,26 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
} else {
|
||||
if (obj.type == 'one') {
|
||||
for (var i = 0; i < checkdatas.length; i++) {
|
||||
for (let i = 0; i < checkdatas.length; i++) {
|
||||
if (checkdatas[i][options.id] == obj.data[options.id]) {
|
||||
checkdatas.remove(i);
|
||||
}
|
||||
}
|
||||
for (var m = 0; m < selListIds.length; m++) {
|
||||
for (let m = 0; m < selListIds.length; m++) {
|
||||
if (selListIds[m][options.id] == obj.data[options.id]) {
|
||||
// 如果选中数据为空则已选择列表中选中的数据清空
|
||||
selListIds.remove(m);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (var j = 0; j < table_data.length; j++) {
|
||||
for (var i = 0; i < checkdatas.length; i++) {
|
||||
for (let j = 0; j < table_data.length; j++) {
|
||||
for (let i = 0; i < checkdatas.length; i++) {
|
||||
if (checkdatas[i][options.id] == table_data[j][options.id]) {
|
||||
checkdatas.remove(i);
|
||||
}
|
||||
}
|
||||
// 如果选中数据为空则已选择列表中选中的数据清空
|
||||
for (var i = 0; i < selListIds.length; i++) {
|
||||
for (let i = 0; i < selListIds.length; i++) {
|
||||
if (selListIds[i][options.id] == table_data[j][options.id]) {
|
||||
selListIds.remove(i);
|
||||
}
|
||||
|
@ -350,10 +352,10 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
});
|
||||
}
|
||||
, resizing: function (index) {
|
||||
var layercontentH = index.find(".layui-layer-content").height();
|
||||
var seacherbox = $("#seacher-box").height();
|
||||
var tabtitleH = $("#tab-title").height();
|
||||
var poptreeboxH = $("#poptree-box");
|
||||
let layercontentH = index.find(".layui-layer-content").height();
|
||||
let seacherbox = $("#seacher-box").height();
|
||||
let tabtitleH = $("#tab-title").height();
|
||||
let poptreeboxH = $("#poptree-box");
|
||||
poptreeboxH.height(layercontentH - tabtitleH - seacherbox - 50);
|
||||
tbFileresH = layercontentH - 20;
|
||||
tbSelectedH = layercontentH - 64
|
||||
|
@ -366,7 +368,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
});
|
||||
}
|
||||
, yes: function (index) {
|
||||
var rows = layui.table.cache['tbSelected']
|
||||
let rows = layui.table.cache['tbSelected']
|
||||
, norow = []
|
||||
, treedata = roletree.getSelectedNodes();
|
||||
if (rows.length == 0) {
|
||||
|
@ -387,8 +389,8 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
});
|
||||
}
|
||||
// 默认树和表头的设置
|
||||
, initialization: function (options, treeUrl, treeMethod,treeparams) {
|
||||
var setting = {
|
||||
, initTree: function (options, treeUrl, treeMethod, treeparams) {
|
||||
let setting = {
|
||||
multselect: true,
|
||||
formtitle: "选择树节点",
|
||||
ischeckleaf: false,
|
||||
|
@ -408,11 +410,11 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
enable: true,
|
||||
type: treeMethod == undefined ? 'get' : treeMethod,
|
||||
url: treeUrl == undefined ? 'get' : treeUrl,
|
||||
otherParam: treeparams?treeparams:[],
|
||||
otherParam: treeparams ? treeparams : [],
|
||||
dataFilter: function ajaxDataFilter(treeId, parentNode, responseData) {
|
||||
if (responseData[zlConfig.global.result.statusName] == 'OK') {
|
||||
var data = responseData[zlConfig.global.result.dataName];
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
let data = responseData[zlConfig.global.result.dataName];
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
if (data[i].EXPANDPROPERTY == "org") {
|
||||
data[i].icon = layui.cache['contentPath'] + "/static/image/org.png";
|
||||
} else {
|
||||
|
@ -442,14 +444,21 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
onAsyncSuccess: function (event, treeId, treeNode, msg) {
|
||||
},
|
||||
onClick: function (event, treeId, treeNode) {
|
||||
zlPopSourceExt.reloadTable(options);
|
||||
let param
|
||||
if (treeNode.EXPANDPROPERTY == 'org') {
|
||||
param = { ORGID: treeNode.RWID }
|
||||
}
|
||||
if (treeNode.EXPANDPROPERTY == 'dept') {
|
||||
param = { DEPTID: treeNode.RWID }
|
||||
}
|
||||
zlPopSourceExt.reloadTable(options, param);
|
||||
}
|
||||
}
|
||||
, cols: [[{ type: 'numbers', fixed: 'left', title: '#' },
|
||||
{ type: 'checkbox', fixed: 'left' },
|
||||
{ field: 'OBJNAME', title: '名称', width: 140 },
|
||||
{ field: 'OBJCODE', title: '编号', width: 120 }
|
||||
]]
|
||||
{ type: 'checkbox', fixed: 'left' },
|
||||
{ field: 'OBJNAME', title: '名称', width: 140 },
|
||||
{ field: 'OBJCODE', title: '编号', width: 120 }
|
||||
]]
|
||||
, page: false
|
||||
, limit: 10
|
||||
, containermultiple: false
|
||||
|
@ -463,9 +472,9 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
zlContext.errorMsg("请配置tabs页签参数!");
|
||||
return;
|
||||
}
|
||||
var objlist = "",
|
||||
let objlist = "",
|
||||
tabsbox = new Array();
|
||||
for (var b = 0; b < options.tabs.length; b++) {
|
||||
for (let b = 0; b < options.tabs.length; b++) {
|
||||
treeUrl = options.tabs[b].url;
|
||||
treeMethod = (options.tabs[b].method == undefined ? 'get' : options.tabs[b].method);
|
||||
tableUrl = (options.tabs[b].tableUrl == undefined ? '' : options.tabs[b].tableUrl);
|
||||
|
@ -474,9 +483,9 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
tableParams = (options.tabs[b].tbparams == undefined ? '' : options.tabs[b].tbparams);
|
||||
treeparams = (options.tabs[b].params == undefined ? '' : options.tabs[b].params)
|
||||
if (b == 0) {
|
||||
objlist = '<li class="layui-this" lay-url="' + treeUrl + '" lay-tableurl="' + tableUrl + '" lay-tbmethod="' + tableMethod + '" lay-method="' + treeMethod + '" entryname="' + entryname + '" lay-params="' + tableParams + '" lay-treeparams="'+treeparams+'">' + options.tabs[b].name + '</li>'
|
||||
objlist = '<li class="layui-this" lay-url="' + treeUrl + '" lay-tableurl="' + tableUrl + '" lay-tbmethod="' + tableMethod + '" lay-method="' + treeMethod + '" entryname="' + entryname + '" lay-params="' + tableParams + '" lay-treeparams="' + treeparams + '">' + options.tabs[b].name + '</li>'
|
||||
} else {
|
||||
objlist = '<li class="" lay-url="' + treeUrl + '" lay-tableurl="' + tableUrl + '" lay-tbmethod="' + tableMethod + '" lay-method="' + treeMethod + '" entryname="' + entryname + '" lay-params="' + tableParams + '" lay-treeparams="'+treeparams+'">' + options.tabs[b].name + '</li>'
|
||||
objlist = '<li class="" lay-url="' + treeUrl + '" lay-tableurl="' + tableUrl + '" lay-tbmethod="' + tableMethod + '" lay-method="' + treeMethod + '" entryname="' + entryname + '" lay-params="' + tableParams + '" lay-treeparams="' + treeparams + '">' + options.tabs[b].name + '</li>'
|
||||
}
|
||||
tabsbox.push(objlist);
|
||||
}
|
||||
|
@ -484,7 +493,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
, ' <div class="layui-row" style="padding: 10px 0;">'
|
||||
, ' <div class="layui-col-xs3">'
|
||||
, ' <div id="seacher-box" class="layui-form" style="overflow: hidden; position: relative;">'
|
||||
, ' <input type="text" placeholder="请输入查找的节点值" id="keyvalue" autocomplete="on" class="layui-input" style="width:100%;float:left;margin-left:0px;height:30px;padding-right: 40px;">'
|
||||
, ' <input type="text" placeholder="请输入查找的人员信息" id="PopSourcekeyvalue" autocomplete="on" class="layui-input" style="width:100%;float:left;margin-left:0px;height:30px;padding-right: 40px;">'
|
||||
, ' <button class="layui-btn layui-btn-sm layui-btn-normal" id="seacher" style="float:left;height:30px;position: absolute;right: 0;">'
|
||||
, ' <i class="layui-icon"></i>'
|
||||
, ' </button>'
|
||||
|
@ -516,7 +525,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
//数据表格渲染
|
||||
, loadTable: function (options, tbFileresH) {
|
||||
var tbUrl = $(".layui-tab-title li.layui-this").attr("lay-tableurl"),
|
||||
let
|
||||
tbmethod = $(".layui-tab-title li.layui-this").attr("lay-tbmethod"),
|
||||
params = $(".layui-tab-title li.layui-this").attr("lay-params");
|
||||
tableIns = table.render({
|
||||
|
@ -525,7 +534,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
, height: tbFileresH
|
||||
, response: zlConfig.global.gridResponse
|
||||
, page: options.page
|
||||
, cols: options.cols
|
||||
, cols: options.coltitle == undefined ? options.cols : options.coltitle
|
||||
, method: tbmethod
|
||||
, limit: options.limit
|
||||
, where: params
|
||||
|
@ -544,33 +553,39 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
elem: '#tbSelected'
|
||||
, cellMinWidth: 75
|
||||
, height: tbSelectedH
|
||||
, cols: options.checkcols == undefined ? options.cols : options.checkcols
|
||||
, cols: options.chosencoltitle == undefined ? options.cols : options.chosencoltitle
|
||||
, done: function (res, curr, count) {
|
||||
$('.layui-none').width($('.layui-table-header table').width() + 'px');
|
||||
$('.empty-data').width($('.layui-table-body').width() + 'px');
|
||||
}
|
||||
});
|
||||
}
|
||||
, getCondition() {
|
||||
let tabsLi = $(".layui-tab-title li.layui-this");
|
||||
return tabsLi.attr("lay-params") == '' ? {} : JSON.parse(tabsLi.attr("lay-params"));
|
||||
}
|
||||
//数据列表要重新载入
|
||||
, reloadTable: function (options, tbFileresH) {
|
||||
var tabsLi = $(".layui-tab-title li.layui-this"),
|
||||
, reloadTable: function (options, filterParam) {
|
||||
let tabsLi = $(".layui-tab-title li.layui-this"),
|
||||
sNodes = roletree.getSelectedNodes(),
|
||||
paramname = tabsLi.attr('entryname') == undefined ? 'ORGID' : tabsLi.attr('entryname'),
|
||||
tabsUrl = tabsLi.attr("lay-tableurl"),
|
||||
params = tabsLi.attr("lay-params") == '' ? {} : JSON.parse(tabsLi.attr("lay-params"));
|
||||
params = this.getCondition();
|
||||
if (sNodes.length > 0) {
|
||||
var paramname1 = sNodes[0].RWID;
|
||||
let paramname1 = sNodes[0].RWID;
|
||||
params[paramname] = paramname1;
|
||||
} else {
|
||||
var paramname1 = "";
|
||||
let paramname1 = "";
|
||||
params = "";
|
||||
}
|
||||
params = filterParam || params
|
||||
this.options.onSearchData && (param = this.options.onSearchData(params, sNodes[0]))
|
||||
tableIns.reload(
|
||||
{
|
||||
url: params == '' ? '' : tabsUrl
|
||||
, page: { curr: 1 }
|
||||
, where: params
|
||||
, response: zlConfig.global.gridResponse
|
||||
, where: params
|
||||
, response: zlConfig.global.gridResponse
|
||||
, done: function (res, curr, count) {
|
||||
table_data = res.obj;
|
||||
zlPopSourceExt.setcheck(res, options, checkdatas);
|
||||
|
@ -582,7 +597,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
//选中数据表格重新载入
|
||||
, reloadSelTable: function (selectedData, options, tbSelectedH) {
|
||||
if (selectedData.length > 0) {
|
||||
for (var i = 0; i < selectedData.length; i++) {
|
||||
for (let i = 0; i < selectedData.length; i++) {
|
||||
if (selectedData[i].LAY_CHECKED != undefined) {
|
||||
delete selectedData[i].LAY_CHECKED
|
||||
}
|
||||
|
@ -599,11 +614,11 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
, tabsFun: function (options) {
|
||||
$(".layui-tab-title li").on('click', function () {
|
||||
selListIds = table.checkStatus('tbSelected').data;
|
||||
var treeUrl = $(this).attr("lay-url"),
|
||||
let treeUrl = $(this).attr("lay-url"),
|
||||
treeMethod = $(this).attr("lay-method"),
|
||||
treeparams = $(this).attr("lay-treeparams"),
|
||||
//创建zTree组件
|
||||
setting = zlPopSourceExt.initialization(options, treeUrl, treeMethod,treeparams);
|
||||
setting = zlPopSourceExt.initTree(options, treeUrl, treeMethod, treeparams);
|
||||
roletree = $.fn.zTree.init($("#" + options.name + "poptree"), setting, null);
|
||||
zlPopSourceExt.reloadTable(options);
|
||||
})
|
||||
|
@ -611,25 +626,54 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
// 搜索按钮事件
|
||||
, seacherFun: function () {
|
||||
$('#seacher').on('click', function () {
|
||||
var text = $('#keyvalue').val();
|
||||
zlPopSourceExt.searchNode(text);
|
||||
let text = $('#PopSourcekeyvalue').val();
|
||||
zlPopSourceExt.searchData(text);
|
||||
});
|
||||
}
|
||||
// 搜索输入框回车事件
|
||||
, keyvalueFun: function () {
|
||||
$("#keyvalue").keydown(function () {
|
||||
var e = event || window.event;
|
||||
$("#PopSourcekeyvalue").keydown(function () {
|
||||
let e = event || window.event;
|
||||
if (e.keyCode == 13) {
|
||||
var text = $('#keyvalue').val();
|
||||
zlPopSourceExt.searchNode(text);
|
||||
let text = $('#PopSourcekeyvalue').val();
|
||||
zlPopSourceExt.searchData(text);
|
||||
}
|
||||
});
|
||||
}
|
||||
,
|
||||
//搜索人员
|
||||
searchData: function (value) {
|
||||
let param, nodes = roletree.getSelectedNodes();
|
||||
if (nodes.length > 0) {
|
||||
let node = nodes[0];
|
||||
if (node.EXPANDPROPERTY) {
|
||||
if (node.EXPANDPROPERTY == 'org') {
|
||||
param = { ORGID: node.RWID }
|
||||
}
|
||||
if (node.EXPANDPROPERTY == 'dept') {
|
||||
param = { DEPTID: node.RWID, ORGID: node.ORGID }
|
||||
}
|
||||
} else {
|
||||
if (node.MAINTABLENAME_ZLFW == 'BD_DEPT') {
|
||||
param = { DEPTID: node.RWID, ORGID: node.ORGID }
|
||||
}
|
||||
param = $.extend(param, { ORGID: node.ORGID })
|
||||
}
|
||||
}
|
||||
|
||||
if (value) {
|
||||
param = $.extend(param, { keyvalue: value })
|
||||
}
|
||||
params = $.extend(param, this.getCondition())
|
||||
//给一次修改参数的机会
|
||||
|
||||
zlPopSourceExt.reloadTable({}, param);
|
||||
}
|
||||
//搜索节点事件
|
||||
, searchNode: function (value) {
|
||||
var keyType = "OBJNAME";
|
||||
let keyType = "OBJNAME";
|
||||
if (value === "") {
|
||||
var allNode = roletree.transformToArray(roletree.getNodes());
|
||||
let allNode = roletree.transformToArray(roletree.getNodes());
|
||||
roletree.showNodes(allNode);
|
||||
return;
|
||||
}
|
||||
|
@ -639,14 +683,14 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
//搜索完更新树内容
|
||||
, updateNodes: function (highlight, value, keyType) {
|
||||
var allNode = roletree.transformToArray(roletree.getNodes());
|
||||
let allNode = roletree.transformToArray(roletree.getNodes());
|
||||
roletree.hideNodes(allNode);
|
||||
for (var n = 0; n < nodeList.length; n++) {
|
||||
for (let n = 0; n < nodeList.length; n++) {
|
||||
zlPopSourceExt.findParent(roletree, nodeList[n]);
|
||||
}
|
||||
roletree.showNodes(nodeList);
|
||||
nodeList = roletree.getNodesByParamFuzzy(keyType, value);
|
||||
for (var i = 0; i < nodeList.length; i++) {
|
||||
for (let i = 0; i < nodeList.length; i++) {
|
||||
roletree.updateNode(nodeList[i]);
|
||||
|
||||
}
|
||||
|
@ -654,7 +698,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
// 查找父级节点
|
||||
, findParent: function (zTree, node) {
|
||||
zTree.expandNode(node, true, false, false);
|
||||
var pNode = node.getParentNode();
|
||||
let pNode = node.getParentNode();
|
||||
if (pNode != null) {
|
||||
nodeList.push(pNode);
|
||||
zlPopSourceExt.findParent(zTree, pNode);
|
||||
|
@ -663,7 +707,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
// 已选列表移除事件
|
||||
, removeFun: function (checkdatas, options) {
|
||||
// 获取移除选中的数据
|
||||
var checkdata = table.checkStatus('tbSelected').data;
|
||||
let checkdata = table.checkStatus('tbSelected').data;
|
||||
if (checkdata.length == 0) {
|
||||
zlContext.errorMsg(options.errmsg == undefined ? "请选择记录" : options.errmsg);
|
||||
return
|
||||
|
@ -671,8 +715,8 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
//添加去掉勾选状态
|
||||
zt = "1"
|
||||
table.deleteCheckRows('tbSelected');
|
||||
for (var i = 0; i < checkdatas.length; i++) {
|
||||
for (var j = 0; j < checkdata.length; j++) {
|
||||
for (let i = 0; i < checkdatas.length; i++) {
|
||||
for (let j = 0; j < checkdata.length; j++) {
|
||||
if (checkdatas[i][options.id] == checkdata[j][options.id]) {
|
||||
checkdatas.splice(i, 1)
|
||||
}
|
||||
|
@ -685,27 +729,28 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
if (res.state != 'OK') {
|
||||
return;
|
||||
}
|
||||
let ids
|
||||
if (options.setvalue != undefined) {
|
||||
var ids = options.setvalue
|
||||
ids = options.setvalue
|
||||
} else {
|
||||
var ids = $('input[name="' + options.inputhiddenameno + '"]').val()
|
||||
ids = $('input[name="' + options.inputhiddenameno + '"]').val()
|
||||
}
|
||||
res = res.obj;
|
||||
if (ids != undefined) {
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
for (let i = 0; i < res.length; i++) {
|
||||
if (ids.indexOf(res[i][options.id]) > -1 && zt == "") {
|
||||
recorddata.push(res[i]);
|
||||
res[i]['LAY_CHECKED'] = 'true';
|
||||
var index = res[i]['LAY_TABLE_INDEX'];
|
||||
var el = $('#tbFileres');
|
||||
let index = res[i]['LAY_TABLE_INDEX'];
|
||||
let el = $('#tbFileres');
|
||||
zlPopSourceExt.checkStyle(el, index);
|
||||
}
|
||||
if (recorddata.length > 0) {
|
||||
for (var n = 0; n < recorddata.length; n++) {
|
||||
for (let n = 0; n < recorddata.length; n++) {
|
||||
if (res[i][options.id] == recorddata[n][options.id]) {
|
||||
res[i]['LAY_CHECKED'] = 'true';
|
||||
var index = res[i]['LAY_TABLE_INDEX'];
|
||||
var el = $('#tbFileres');
|
||||
let index = res[i]['LAY_TABLE_INDEX'];
|
||||
let el = $('#tbFileres');
|
||||
zlPopSourceExt.checkStyle(el, index);
|
||||
}
|
||||
}
|
||||
|
@ -724,25 +769,25 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
return;
|
||||
}
|
||||
if (options.setvalue != undefined) {
|
||||
var ids = options.setvalue
|
||||
let ids = options.setvalue
|
||||
} else {
|
||||
var ids = $('input[name="' + options.inputhiddename + '"]').val()
|
||||
let ids = $('input[name="' + options.inputhiddename + '"]').val()
|
||||
}
|
||||
res = res.data
|
||||
if (ids != undefined) {
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
for (let i = 0; i < res.length; i++) {
|
||||
if (ids.indexOf(res[i][options.id]) > -1 && zt == "") {
|
||||
res[i]['LAY_CHECKED'] = 'true';
|
||||
var index = res[i]['LAY_TABLE_INDEX'];
|
||||
var el = $('#tbSelected');
|
||||
let index = res[i]['LAY_TABLE_INDEX'];
|
||||
let el = $('#tbSelected');
|
||||
zlPopSourceExt.checkStyle(el, index);
|
||||
}
|
||||
if (selListIds.length > 0) {
|
||||
for (var n = 0; n < selListIds.length; n++) {
|
||||
for (let n = 0; n < selListIds.length; n++) {
|
||||
if (res[i][options.id] == selListIds[n][options.id]) {
|
||||
res[i]['LAY_CHECKED'] = 'true';
|
||||
var index = res[i]['LAY_TABLE_INDEX'];
|
||||
var el = $('#tbSelected');
|
||||
let index = res[i]['LAY_TABLE_INDEX'];
|
||||
let el = $('#tbSelected');
|
||||
zlPopSourceExt.checkStyle(el, index);
|
||||
}
|
||||
}
|
||||
|
@ -766,7 +811,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
//判断全选状态
|
||||
, checkAll: function (obj) {
|
||||
var checkStatus = table.checkStatus(obj);
|
||||
let checkStatus = table.checkStatus(obj);
|
||||
if (checkStatus.isAll) {
|
||||
$('#' + obj).next('div').find(' .layui-table-header th[data-field="1"] input[type="checkbox"]').prop('checked', true);
|
||||
$('#' + obj).next('div').find('.layui-table-header th[data-field="1"] input[type="checkbox"]').next().addClass('layui-form-checked');
|
||||
|
@ -774,10 +819,10 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
}
|
||||
//设置只读的时候不可编辑
|
||||
, setReadonly: function(readonlystate){
|
||||
if(readonlystate){
|
||||
if(selectionType == "checkbox"){
|
||||
$(".layui-table-header").find("input[name = 'layTableCheckbox'][lay-filter='layTableAllChoose']").each(function () {
|
||||
, setReadonly: function (readonlystate) {
|
||||
if (readonlystate) {
|
||||
if (selectionType == "checkbox") {
|
||||
$(".layui-table-header").find("input[name = 'layTableCheckbox'][lay-filter='layTableAllChoose']").each(function () {
|
||||
$(this).attr("disabled", 'disabled');
|
||||
});
|
||||
$(".layui-table-body.layui-table-main").find("input[name='layTableCheckbox']").each(function () {
|
||||
|
@ -786,26 +831,27 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
$(".layui-table-fixed.layui-table-fixed-l").find(".layui-table-body").find("input[name='layTableCheckbox']").each(function () {
|
||||
$(this).attr("disabled", 'disabled');
|
||||
});
|
||||
}else{
|
||||
$(".layui-table-body.layui-table-main").find("input[type='radio']").each(function () {
|
||||
} else {
|
||||
$(".layui-table-body.layui-table-main").find("input[type='radio']").each(function () {
|
||||
$(this).attr("disabled", 'disabled');
|
||||
});
|
||||
$(".layui-table-fixed.layui-table-fixed-l").find(".layui-table-body").find("input[type='radio']").each(function () {
|
||||
$(this).attr("disabled", 'disabled');
|
||||
});
|
||||
}
|
||||
}
|
||||
layui.form.render();
|
||||
}
|
||||
}
|
||||
}
|
||||
//数组去重
|
||||
, diff: function (arr, options) {
|
||||
let res
|
||||
if (arr.length == 0) {
|
||||
var res = arr;
|
||||
res = arr;
|
||||
} else {
|
||||
var res = [arr[0]];
|
||||
for (var i = 1; i < arr.length; i++) {
|
||||
var repeat = false;
|
||||
for (var j = 0; j < res.length; j++) {
|
||||
res = [arr[0]];
|
||||
for (let i = 1; i < arr.length; i++) {
|
||||
let repeat = false;
|
||||
for (let j = 0; j < res.length; j++) {
|
||||
if (arr[i][options.id] == res[j][options.id]) {
|
||||
repeat = true;
|
||||
break;
|
||||
|
@ -820,13 +866,13 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
// 只弹出框选择,不赋值
|
||||
, onlyshow: function (options, requestEvent) {
|
||||
options.inputhiddenameno = 'no'+options.name;
|
||||
var html = zlPopSourceExt.concatenationStr(options),
|
||||
this.options = options;
|
||||
options.inputhiddenameno = 'no' + options.name;
|
||||
let html = zlPopSourceExt.concatenationStr(options),
|
||||
treeUrl = options.tabs[0].url,
|
||||
treeMethod = options.tabs[0].method,
|
||||
treeparams = options.tabs[0].params,
|
||||
//创建zTree\和table组件
|
||||
setting = zlPopSourceExt.initialization(options, treeUrl, treeMethod,treeparams)
|
||||
setting = zlPopSourceExt.initTree(options, treeUrl, treeMethod, treeparams)
|
||||
options = $.extend({}, setting, options);
|
||||
|
||||
layer.open({
|
||||
|
@ -839,10 +885,10 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
btn: ['确定', '取消'],
|
||||
success: function (index) {
|
||||
$("#zlpopSourceext-box").append('<input type="hidden" class="layui-input" name="' + options.inputhiddenameno + '" value="">');
|
||||
var layercontentH = index.find(".layui-layer-content").height();
|
||||
var seacherbox = $("#seacher-box").height();
|
||||
var tabtitleH = $("#tab-title").height();
|
||||
var poptreeboxH = $("#poptree-box");
|
||||
let layercontentH = index.find(".layui-layer-content").height();
|
||||
let seacherbox = $("#seacher-box").height();
|
||||
let tabtitleH = $("#tab-title").height();
|
||||
let poptreeboxH = $("#poptree-box");
|
||||
poptreeboxH.height(layercontentH - tabtitleH - seacherbox - 53);
|
||||
tbFileresH = layercontentH - 20;
|
||||
tbSelectedH = layercontentH - 69
|
||||
|
@ -869,7 +915,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
if (obj.type == 'one') {
|
||||
checkdatas.push(obj.data);
|
||||
} else {
|
||||
for (var i = 0; i < table_data.length; i++) {
|
||||
for (let i = 0; i < table_data.length; i++) {
|
||||
checkdatas.push(table_data[i]);
|
||||
}
|
||||
}
|
||||
|
@ -877,26 +923,26 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
}
|
||||
} else {
|
||||
if (obj.type == 'one') {
|
||||
for (var i = 0; i < checkdatas.length; i++) {
|
||||
for (let i = 0; i < checkdatas.length; i++) {
|
||||
if (checkdatas[i][options.id] == obj.data[options.id]) {
|
||||
checkdatas.remove(i);
|
||||
}
|
||||
}
|
||||
for (var m = 0; m < selListIds.length; m++) {
|
||||
for (let m = 0; m < selListIds.length; m++) {
|
||||
if (selListIds[m][options.id] == obj.data[options.id]) {
|
||||
// 如果选中数据为空则已选择列表中选中的数据清空
|
||||
selListIds.remove(m);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (var j = 0; j < table_data.length; j++) {
|
||||
for (var i = 0; i < checkdatas.length; i++) {
|
||||
for (let j = 0; j < table_data.length; j++) {
|
||||
for (let i = 0; i < checkdatas.length; i++) {
|
||||
if (checkdatas[i][options.id] == table_data[j][options.id]) {
|
||||
checkdatas.remove(i);
|
||||
}
|
||||
}
|
||||
// 如果选中数据为空则已选择列表中选中的数据清空
|
||||
for (var i = 0; i < selListIds.length; i++) {
|
||||
for (let i = 0; i < selListIds.length; i++) {
|
||||
if (selListIds[i][options.id] == table_data[j][options.id]) {
|
||||
selListIds.remove(i);
|
||||
}
|
||||
|
@ -925,10 +971,10 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
});
|
||||
}
|
||||
, resizing: function (index) {
|
||||
var layercontentH = index.find(".layui-layer-content").height();
|
||||
var seacherbox = $("#seacher-box").height();
|
||||
var tabtitleH = $("#tab-title").height();
|
||||
var poptreeboxH = $("#poptree-box");
|
||||
let layercontentH = index.find(".layui-layer-content").height();
|
||||
let seacherbox = $("#seacher-box").height();
|
||||
let tabtitleH = $("#tab-title").height();
|
||||
let poptreeboxH = $("#poptree-box");
|
||||
poptreeboxH.height(layercontentH - tabtitleH - seacherbox - 53);
|
||||
tbFileresH = layercontentH - 20;
|
||||
tbSelectedH = layercontentH - 69
|
||||
|
@ -941,7 +987,7 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
});
|
||||
}
|
||||
, yes: function (index) {
|
||||
var rows = layui.table.cache['tbSelected'];
|
||||
let rows = layui.table.cache['tbSelected'];
|
||||
if (rows.length == 0) {
|
||||
zlContext.errorMsg(options.errmsg == undefined ? "请选择记录" : options.errmsg);
|
||||
return;
|
||||
|
@ -950,21 +996,21 @@ layui.define(['zlContext', 'table', 'layer', 'zlConfig', 'tree'], function (expo
|
|||
layer.close(index);
|
||||
}
|
||||
, end: function (index) {
|
||||
$("#zlpopSourceext-box").find('input[name="'+options.inputhiddenameno+'"]').remove();
|
||||
$("#zlpopSourceext-box").find('input[name="' + options.inputhiddenameno + '"]').remove();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
//删除数组自定义函数
|
||||
, Array.prototype.remove = function (dx) {
|
||||
if (isNaN(dx) || dx > this.length) { return false; }
|
||||
for (var i = 0, n = 0; i < this.length; i++) {
|
||||
if (this[i] != this[dx]) {
|
||||
this[n++] = this[i]
|
||||
//删除数组自定义函数
|
||||
, Array.prototype.remove = function (dx) {
|
||||
if (isNaN(dx) || dx > this.length) { return false; }
|
||||
for (let i = 0, n = 0; i < this.length; i++) {
|
||||
if (this[i] != this[dx]) {
|
||||
this[n++] = this[i]
|
||||
}
|
||||
}
|
||||
this.length -= 1
|
||||
}
|
||||
this.length -= 1
|
||||
}
|
||||
exports('zlPopSourceExt', zlPopSourceExt);
|
||||
});
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
1
modules/kdayun-app/src/main/resources/static/libs/formdesign/libs/qrcode.min.js
vendored
Normal file
1
modules/kdayun-app/src/main/resources/static/libs/formdesign/libs/qrcode.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
modules/kdayun-app/src/main/resources/static/libs/formdesign/libs/webcam.min.js
vendored
Normal file
2
modules/kdayun-app/src/main/resources/static/libs/formdesign/libs/webcam.min.js
vendored
Normal file
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
Binary file not shown.
|
@ -2872,13 +2872,6 @@ getLngLat(): any
|
|||
*/
|
||||
getMapValue(): string
|
||||
|
||||
/**
|
||||
* 获取搜索列表
|
||||
* @returns 返回搜索列表
|
||||
|
||||
*/
|
||||
getSearchListHtml(): string
|
||||
|
||||
}
|
||||
/**
|
||||
*卡片内容的标题组件
|
||||
|
@ -10049,7 +10042,7 @@ sum(field: string,start: number,end: number): number
|
|||
* @param callback 提交完成回调
|
||||
|
||||
*/
|
||||
unionPost(dss: DataSourceBase[],callback: DataSourcePostHandle): void
|
||||
unionPost(dss: ITransaction[],callback: DataSourcePostHandle): void
|
||||
|
||||
/**
|
||||
* 把修改的数据更新到数据源,只是更新本地数据 更新完可以调用post来提交到后台
|
||||
|
@ -17310,7 +17303,7 @@ declare type MsgBoxSuccessHandel = (text: string,callBackFunc: ConfirmCallBackHa
|
|||
*错误消息回调类型
|
||||
|
||||
*/
|
||||
declare type MsgErrorHandel = (err: string) => number
|
||||
declare type MsgErrorHandel = (err: string,ishtml: boolean) => number
|
||||
/**
|
||||
*信息消息回调类型
|
||||
|
||||
|
@ -17330,7 +17323,7 @@ declare type MsgWarnHandel = (text: string) => number
|
|||
*错误通知回调类型
|
||||
|
||||
*/
|
||||
declare type NofErrorHandel = (err: string) => number
|
||||
declare type NofErrorHandel = (err: string,ishtml: boolean) => number
|
||||
/**
|
||||
*信息通知回调类型
|
||||
|
||||
|
@ -17991,6 +17984,17 @@ Form.Nt("您好!")
|
|||
*/
|
||||
static Nt(text: string): number
|
||||
|
||||
/**
|
||||
* 在id为elemId 内渲染QRcode二维码
|
||||
* @param value 需要编码的值
|
||||
* @param elemId html元素的id
|
||||
* @param width 二维码宽度 默认值:100 像素
|
||||
* @param height 二维码高度 默认值:100 像素
|
||||
* @param correctLevel 二维码容错级别 默认值:3
|
||||
|
||||
*/
|
||||
static QrCode(value: string,elemId: string,width: number,height: number,correctLevel: number): void
|
||||
|
||||
/**
|
||||
* 添加script标签并执行代码
|
||||
* @param id 唯一字符串
|
||||
|
@ -18213,17 +18217,19 @@ static error(msg: any): void
|
|||
|
||||
/**
|
||||
* 弹出错误提示信息框.
|
||||
* @param errorTxt 提示的信息* @returns 返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).
|
||||
* @param errorTxt 提示的信息
|
||||
* @param ishtml 默认值 false 是否显示html的元素.否则会被_.escape 格式化后再显示* @returns 返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).
|
||||
|
||||
*/
|
||||
static errorMsg(errorTxt: string): number
|
||||
static errorMsg(errorTxt: string,ishtml: boolean): number
|
||||
|
||||
/**
|
||||
* 弹出错误通知提示信息框.
|
||||
* @param errorTxt 提示的信息* @returns 返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).
|
||||
* @param errorTxt 提示的信息
|
||||
* @param ishtml 是否显示html源码* @returns 返回弹出层的唯一index . 关闭可使用 Common.closeForm(index).
|
||||
|
||||
*/
|
||||
static errorNt(errorTxt: string): number
|
||||
static errorNt(errorTxt: string,ishtml: boolean): number
|
||||
|
||||
/**
|
||||
* 解析typeScript/javascript脚本
|
||||
|
@ -18300,8 +18306,7 @@ static fullForm(index: number): void
|
|||
static fullScreenByElement(id: string): void
|
||||
|
||||
/**
|
||||
* 生成一个全球唯一id
|
||||
注意:这个与uuid有差别,全局全球唯一,缺点就是比较长
|
||||
* 生成一个全球唯一id 缺点就是比较长
|
||||
* @returns 全球唯一的id字符串
|
||||
|
||||
*/
|
||||
|
@ -18398,7 +18403,7 @@ static getEncryptUtils(): EncryptUtils
|
|||
|
||||
/**
|
||||
* 获取完整url的路径包含http,https
|
||||
* @param url 相对路径/绝对路径* @returns 返回处理过的路径.没有contextpath就加上,完整的路径http,https开头的原路返回
|
||||
* @param url 相对路径/绝对路径* @returns 返回处理过的路径.没有contextpath就加上,完整的路径http,https开头的原值返回
|
||||
|
||||
*/
|
||||
static getFullUrl(url: string): string
|
||||
|
@ -18449,7 +18454,7 @@ static getTxtFile(url: string,callback: any): void
|
|||
|
||||
/**
|
||||
* 获取url的路径
|
||||
* @param url 相对路径/绝对路径* @returns 返回处理过的路径.没有contextpath就加上,完整的路径http,https开头的原路返回
|
||||
* @param url 相对路径/绝对路径* @returns 返回处理过的路径.没有contextpath就加上,完整的路径http,https开头的原值返回
|
||||
|
||||
*/
|
||||
static getUrl(url: string): string
|
||||
|
@ -18667,6 +18672,16 @@ static off(cmpId: string,msgFilter: string,callback: Function): void
|
|||
*/
|
||||
static on(cmpId: string | IComponent,msgName: string,callback: Function,override: boolean,isGlobal: boolean): void
|
||||
|
||||
/**
|
||||
* 监听服务器消息
|
||||
一般用于全局监听整个平台的消息
|
||||
* @param msgId 消息唯一ID 接收sendServerMsg 发出消息唯一ID的消息
|
||||
* @param callback 回调函数
|
||||
* @param timeout 消息的存活时间后释放. 默认 300秒* @returns 返回消息服务对象实例
|
||||
|
||||
*/
|
||||
static onServerMsg(msgId: string,callback: ServerMsgCallback,timeout: number): SseMsg
|
||||
|
||||
/**
|
||||
* 展示相册
|
||||
例子:
|
||||
|
@ -18770,6 +18785,14 @@ static requires(jsUrls: string[],onFinishCallBack: Function,attrs: object,isSequ
|
|||
*/
|
||||
static send(cmpId: string | IComponent,msgName: string,params: any,doMsgCallback: MessageCallbackhandle): void
|
||||
|
||||
/**
|
||||
* 向服务器发生消息
|
||||
* @param msgId 消息唯一ID
|
||||
* @param msg 消息常量值
|
||||
|
||||
*/
|
||||
static sendServerMsg(msgId: string,msg: string): void
|
||||
|
||||
/**
|
||||
* 保存用户信息
|
||||
* @param userInfo
|
||||
|
@ -18958,6 +18981,10 @@ isIOSChrome: boolean
|
|||
*/
|
||||
isSafari: boolean
|
||||
/**
|
||||
*是否手机端
|
||||
*/
|
||||
mobile: boolean
|
||||
/**
|
||||
*操作系统
|
||||
*/
|
||||
os: string
|
||||
|
@ -19158,6 +19185,11 @@ declare type DownloadOnStartHandle = () => void
|
|||
|
||||
*/
|
||||
declare type DownloadProcessHandle = (progress: number) => void
|
||||
/**
|
||||
*服务端消息回调
|
||||
|
||||
*/
|
||||
declare type ServerMsgCallback = (data: any) => void
|
||||
/**
|
||||
*加密辅助类
|
||||
*/
|
||||
|
@ -19521,6 +19553,25 @@ static getInstance(): ScriptContext
|
|||
|
||||
}
|
||||
/**
|
||||
*sse 服务端消息管理类
|
||||
*/
|
||||
class SseMsg {
|
||||
|
||||
/**
|
||||
* 给指定的msgId 发送服务端消息
|
||||
* @param msgId 服务端消息id
|
||||
* @param message 消息内容
|
||||
|
||||
*/
|
||||
static sendTo(msgId: string,message: any): void
|
||||
|
||||
}
|
||||
/**
|
||||
*sse消息回调
|
||||
|
||||
*/
|
||||
declare type SseMsgCallback = (data: any) => void
|
||||
/**
|
||||
*共用函数
|
||||
*/
|
||||
class Utils {
|
||||
|
@ -20250,6 +20301,10 @@ class Label extends FieldDbComponentBase {
|
|||
*点击事件js脚本字符串
|
||||
*/
|
||||
onClickScript: string
|
||||
/**
|
||||
*静态文字内容
|
||||
*/
|
||||
staticText: string
|
||||
|
||||
/**
|
||||
* 点击事件
|
||||
|
@ -20715,6 +20770,10 @@ exts: string
|
|||
*/
|
||||
headers: any
|
||||
/**
|
||||
*是否加密上传的文件
|
||||
*/
|
||||
isEncrypt: boolean
|
||||
/**
|
||||
*设置文件最大可允许上传的大小,组织机构 KB
|
||||
默认值 200kb
|
||||
*/
|
||||
|
@ -20926,7 +20985,7 @@ class LayoutSider extends LayoutItemBase {
|
|||
*/
|
||||
class SqlCommand extends InvisibleBase {
|
||||
/**
|
||||
*参数对象
|
||||
*设置脚本提交的参数对象
|
||||
例如{param1:value1,param2:value2}
|
||||
*/
|
||||
param: object
|
||||
|
@ -23117,6 +23176,7 @@ class DataExport extends InvisibleBase {
|
|||
/**
|
||||
* 导出数据
|
||||
* @param params 参数数组或者参数对象
|
||||
* @param filename 导出的文件名
|
||||
``` javascript
|
||||
function Button1_onClickScript(cxt:ScriptContext,btn:Button){
|
||||
//方法1 参数对象
|
||||
|
@ -23127,13 +23187,17 @@ btn.getPage().components.DataExport1.export([{name:'param1',value:'paramValue1'}
|
|||
```
|
||||
|
||||
*/
|
||||
export(params: Object | IParam[]): void
|
||||
export(params: Object | IParam[],filename: string): void
|
||||
|
||||
}
|
||||
/**
|
||||
*数据导入组件
|
||||
*/
|
||||
class DataImport extends InvisibleBase {
|
||||
/**
|
||||
*导入的参数
|
||||
*/
|
||||
params: object
|
||||
|
||||
/**
|
||||
* 下载数据导入的模板文件
|
||||
|
@ -23144,9 +23208,10 @@ downloadTemplte(): void
|
|||
/**
|
||||
* 导入数据
|
||||
* @param finishCallback 完成回调
|
||||
* @param params 传递参数到模板内
|
||||
|
||||
*/
|
||||
importData(finishCallback: DataImportCallBack): void
|
||||
importData(finishCallback: DataImportCallBack,params: object): void
|
||||
|
||||
}
|
||||
/**
|
||||
|
@ -23293,7 +23358,7 @@ post(finishcallback: DataSourcePostHandle,beforePostCallBack: EditorPagePostHand
|
|||
* @param callback 完成提交数据到后台后的回调
|
||||
|
||||
*/
|
||||
unionPost(dss: DataSourceBase[],callback: DataSourcePostHandle): void
|
||||
unionPost(dss: ITransaction[],callback: DataSourcePostHandle): void
|
||||
|
||||
}
|
||||
/**
|
||||
|
@ -23559,7 +23624,7 @@ script: string
|
|||
/**
|
||||
*权限值
|
||||
*/
|
||||
value: boolean
|
||||
value: string | boolean
|
||||
}
|
||||
/**
|
||||
* 组件参数操作的属性编辑器
|
||||
|
@ -25258,6 +25323,140 @@ verify: string
|
|||
*/
|
||||
declare type FormVerifyCallBack = (value: any) => string
|
||||
/**
|
||||
*拍照的格式
|
||||
*/
|
||||
enum Cameraformat {
|
||||
jpg = "jpeg",png = "png"
|
||||
}
|
||||
/**
|
||||
*H5摄像头组件 手机,平板 浏览器调用摄像头
|
||||
*/
|
||||
class Camera extends ContainerBase {
|
||||
|
||||
/**
|
||||
* 注册拍照事件
|
||||
* @param handle 事件回调
|
||||
|
||||
*/
|
||||
onSnap(handle: onSnapHandle): void
|
||||
|
||||
/**
|
||||
* 设置摄像头的参数
|
||||
* @param options
|
||||
|
||||
*/
|
||||
set(options: CameraOptions): void
|
||||
|
||||
/**
|
||||
* 启动摄像头
|
||||
|
||||
*/
|
||||
setup(): void
|
||||
|
||||
/**
|
||||
* 拍照
|
||||
* @param callback onSnapCallback类型回调函数
|
||||
|
||||
*/
|
||||
snapshot(callback: onSnapCallback): void
|
||||
|
||||
/**
|
||||
* 拍照并上传
|
||||
* @param callback 回调 完成拍照并上传后的文件路径信息
|
||||
|
||||
*/
|
||||
snapshotAndUpload(callback: onUploadCallback): void
|
||||
|
||||
/**
|
||||
* 停止摄像头
|
||||
|
||||
*/
|
||||
stop(): void
|
||||
|
||||
/**
|
||||
* 切换前后镜头
|
||||
|
||||
*/
|
||||
switch(): void
|
||||
|
||||
/**
|
||||
* 上传拍照的图片
|
||||
* @param imgBase64 图片的base64字符串
|
||||
* @param callback onUploadCallback类型回调函数
|
||||
|
||||
*/
|
||||
upload(imgBase64: string,callback: onUploadCallback): void
|
||||
|
||||
}
|
||||
/**
|
||||
*摄像头的设置项
|
||||
*/
|
||||
interface CameraOptions {
|
||||
/**
|
||||
*拍照的分辨率 高度
|
||||
*/
|
||||
crop_height: number
|
||||
/**
|
||||
*拍照的分辨率 宽度
|
||||
*/
|
||||
crop_width: number
|
||||
/**
|
||||
*镜头分辨率 高度
|
||||
*/
|
||||
dest_height: number
|
||||
/**
|
||||
*镜头分辨率 宽度
|
||||
*/
|
||||
dest_width: number
|
||||
/**
|
||||
*拍照的
|
||||
*/
|
||||
flip_horiz: boolean
|
||||
/**
|
||||
*摄像的每秒帧数(默认30)
|
||||
*/
|
||||
fps: number
|
||||
/**
|
||||
** 预览的分辨率 高度
|
||||
*/
|
||||
height: number
|
||||
/**
|
||||
*拍照的图片格式
|
||||
*/
|
||||
image_format: Cameraformat
|
||||
/**
|
||||
* jepg的质量 (0~100)
|
||||
*/
|
||||
jpeg_quality: number
|
||||
/**
|
||||
*用户自定义函数
|
||||
*/
|
||||
user_callback: any
|
||||
/**
|
||||
*用户自定义画布对象
|
||||
*/
|
||||
user_canvas: any
|
||||
/**
|
||||
*预览的分辨率 宽度
|
||||
*/
|
||||
width: number
|
||||
}
|
||||
/**
|
||||
*拍照回调
|
||||
|
||||
*/
|
||||
declare type onSnapCallback = (base64: string) => void
|
||||
/**
|
||||
*拍照事件
|
||||
|
||||
*/
|
||||
declare type onSnapHandle = (cmp: Camera,base64: string) => void
|
||||
/**
|
||||
*上传回调
|
||||
|
||||
*/
|
||||
declare type onUploadCallback = (res: IUploadFile,err: string) => void
|
||||
/**
|
||||
*移动端的表单处理类
|
||||
功能: 按表单的编号打开页面,并传递参数
|
||||
*/
|
||||
|
@ -25290,6 +25489,25 @@ openPageByPageModelCode(pageModelCode: string,param: object): void
|
|||
|
||||
}
|
||||
/**
|
||||
*移动端的表单处理类
|
||||
功能: 按表单的编号打开页面,并传递参数
|
||||
*/
|
||||
class QrScaner extends InvisibleBase {
|
||||
|
||||
/**
|
||||
* 扫描二维码
|
||||
* @param callback 回调函数 函数内的函数code 返回扫描的结果
|
||||
|
||||
*/
|
||||
scan(callback: QrScanerCallbackHandle): void
|
||||
|
||||
}
|
||||
/**
|
||||
*二维码扫描的回调
|
||||
|
||||
*/
|
||||
declare type QrScanerCallbackHandle = (code: string,err: string) => void
|
||||
/**
|
||||
*移动端 头像/图片 上传选择组件
|
||||
*/
|
||||
class MAvatar extends MInputBase {
|
||||
|
|
|
@ -58,7 +58,7 @@ layui.use(['element', 'table', 'layer', 'form', 'zltreemenu', 'upload', 'zlPinYi
|
|||
});
|
||||
},
|
||||
refreshselectnode: function (treeNode) {
|
||||
treeObj.setting.async.url = layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttreelistbyparentid';
|
||||
treeObj.setting.async.url = layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttreelistbyparentid?isallorg=false';
|
||||
treeObj.reAsyncChildNodes(treeNode, "refresh"); //异步刷新,清空后加载,加载后打开
|
||||
treeNode['isloaded'] = true;
|
||||
// treeObj.selectNode(treeNode);
|
||||
|
@ -67,7 +67,7 @@ layui.use(['element', 'table', 'layer', 'form', 'zltreemenu', 'upload', 'zlPinYi
|
|||
//加载树
|
||||
// treeAction.loadTree();
|
||||
zltreemenu.render('orgTreeId', {
|
||||
dataurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttreelistbyparentid',
|
||||
dataurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttreelistbyparentid?isallorg=false',
|
||||
searchurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttree',
|
||||
searchKey: 'keyvalue', // 搜索时传给后台的 对象属性名
|
||||
inner: true, // 拖拽到目标节点时,设置是否允许成为目标节点的子节点
|
||||
|
|
|
@ -46,7 +46,7 @@ layui.config({}).use(['element', 'laydate', 'zlConfig', 'zltreemenu', 'upload',
|
|||
loadTree: function () {
|
||||
//创建zTree组件
|
||||
treeObj = zltreemenu.render('orgTreeId', {
|
||||
dataurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgtreelistbyparentid',
|
||||
dataurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgtreelistbyparentid?isallorg=false',
|
||||
autoParam: ["RWID"],
|
||||
tableId: 'tbOrg',
|
||||
dataFilter: function (treeId, parentNode, responseData) {
|
||||
|
|
|
@ -76,7 +76,7 @@ layui.config({}).use(['element', 'zlExcel', 'zlConfig', 'zlContext', 'zltreemenu
|
|||
loadTree: function () {
|
||||
//创建zTree组件
|
||||
treeObj = zltreemenu.render('orgTreeId', {
|
||||
dataurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttreelistbyparentid?keyvalue=%' + $("input[name=search]").val() + '%',
|
||||
dataurl: layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttreelistbyparentid?isallorg=false',
|
||||
// isMove: false,
|
||||
inner: true,
|
||||
autoParam: ["RWID"],
|
||||
|
|
|
@ -3,49 +3,49 @@
|
|||
* 在线用户
|
||||
* @Date: 2019-03-19 14:31:57
|
||||
*/
|
||||
layui.config({}).use(['element', 'zlConfig', 'zltreemenu', 'zlContext', 'table', 'layer','theme'], function (exports) {
|
||||
layui.config({}).use(['element', 'zlConfig', 'zltreemenu', 'zlContext', 'table', 'layer', 'theme'], function (exports) {
|
||||
var $ = layui.$,
|
||||
zlContext = layui.zlContext,
|
||||
zltreemenu = layui.zltreemenu,
|
||||
layer = layui.layer,
|
||||
table = layui.table,
|
||||
form = layui.form,
|
||||
zlConfig = layui.zlConfig,
|
||||
statusName = zlConfig.global.result.statusName,
|
||||
zlConfig = layui.zlConfig,
|
||||
statusName = zlConfig.global.result.statusName,
|
||||
msgName = zlConfig.global.result.msgName,
|
||||
dataName = zlConfig.global.result.dataName,
|
||||
OK = zlConfig.global.result.okState,
|
||||
dataName = zlConfig.global.result.dataName,
|
||||
OK = zlConfig.global.result.okState,
|
||||
fullheight = 'full-30',
|
||||
customCurr = 1;
|
||||
|
||||
var treeObj,
|
||||
isloadsearch = false,
|
||||
isShowAll = zlContext.getCurrentUser().currentRoleId=='E555C6219EAD42A69C7DD216528B3F28'?true:false,
|
||||
isloadsearch = false,
|
||||
isShowAll = zlContext.getCurrentUser().currentRoleId == 'E555C6219EAD42A69C7DD216528B3F28' ? true : false,
|
||||
treeAction = {
|
||||
loadTree: function () {
|
||||
//创建zTree组件
|
||||
treeObj = zltreemenu.render('orgTreeId', {
|
||||
dataurl: layui.cache['contentPath'] + '/manager/corefunction/queryorgddata',
|
||||
dataurl: layui.cache['contentPath'] + '/manager/corefunction/queryorgddata?isallorg=false',
|
||||
autoParam: ["RWID"],
|
||||
tableId: 'tbUser',
|
||||
type:'get',
|
||||
isMove: false,
|
||||
dataFilter: function (treeId, parentNode, responseData) {
|
||||
if (responseData[statusName] == OK) {
|
||||
if (isShowAll) {
|
||||
var TopNode = {
|
||||
OBJNAME: "所有机构",
|
||||
RWID: "",
|
||||
SYS_PARENTID: ""
|
||||
};
|
||||
responseData[dataName].unshift(TopNode);
|
||||
}
|
||||
return responseData[dataName];
|
||||
} else {
|
||||
zlContext.errorMsg(responseData[msgName]);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
tableId: 'tbUser',
|
||||
type: 'get',
|
||||
isMove: false,
|
||||
dataFilter: function (treeId, parentNode, responseData) {
|
||||
if (responseData[statusName] == OK) {
|
||||
if (isShowAll) {
|
||||
var TopNode = {
|
||||
OBJNAME: "所有机构",
|
||||
RWID: "",
|
||||
SYS_PARENTID: ""
|
||||
};
|
||||
responseData[dataName].unshift(TopNode);
|
||||
}
|
||||
return responseData[dataName];
|
||||
} else {
|
||||
zlContext.errorMsg(responseData[msgName]);
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
}, {
|
||||
onClick: function (event, treeId, treeNode) {
|
||||
customCurr = 1;
|
||||
|
@ -83,16 +83,16 @@ layui.config({}).use(['element', 'zlConfig', 'zltreemenu', 'zlContext', 'table',
|
|||
sortload: false,
|
||||
updId: "403577B51A1B4653AD43E2795CE72637",
|
||||
toolbar: '#toolbarOnlineUser',
|
||||
defaultToolbar: ['filter'],
|
||||
defaultToolbar: ['filter'],
|
||||
cols: [
|
||||
[ //表头
|
||||
{
|
||||
type: 'numbers',
|
||||
fixed: 'left',
|
||||
title: '#'
|
||||
},{
|
||||
type: 'checkbox'
|
||||
},{
|
||||
}, {
|
||||
type: 'checkbox'
|
||||
}, {
|
||||
field: 'ZUIHDLSJ',
|
||||
title: '登录时间',
|
||||
width: 200,
|
||||
|
@ -109,7 +109,7 @@ layui.config({}).use(['element', 'zlConfig', 'zltreemenu', 'zlContext', 'table',
|
|||
}, {
|
||||
field: 'ZHANGHM',
|
||||
title: '登录账号',
|
||||
width: 150,
|
||||
width: 150,
|
||||
}
|
||||
]
|
||||
]
|
||||
|
@ -118,60 +118,60 @@ layui.config({}).use(['element', 'zlConfig', 'zltreemenu', 'zlContext', 'table',
|
|||
var gridAction = {
|
||||
currentEditObj: undefined,
|
||||
search: function () {
|
||||
isloadsearch = true;
|
||||
var layero = $(".zl-container");
|
||||
var text = $("#edtSeacherValue").val();
|
||||
var trs = layero.find('div.layui-table-main').find('tr');
|
||||
var idxs = layero.find('.layui-table-fixed').find('.layui-table-body').find('tr');
|
||||
trs.hide();
|
||||
idxs.hide();
|
||||
layero.find('.noData').remove();
|
||||
layero.find('div.layui-table-page').show();
|
||||
for (var i = 0; i < trs.length; i++) {
|
||||
var tds = $(trs[i]).find('td');
|
||||
for (var k = 0; k < tds.length; k++) {
|
||||
var targetBox = $(tds[k]).children('div');
|
||||
if (targetBox.children().length == 0 && targetBox.html().includes(text)) {
|
||||
$(trs[i]).show();
|
||||
$(idxs[i]).show();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (layero.find('div.layui-table-main').find('tr:visible').length == 0) {
|
||||
layero.find('div.layui-table-main').append('<div class="layui-none noData">' +
|
||||
' <div class="empty-data" style="text-align:center;padding-top: 10%;font-size: 25px;color: #ccc;font-family: tahoma ,微软雅黑;">' +
|
||||
' <i class="layui-icon layui-icon-search" style="font-size: 100px;"></i> ' +
|
||||
' <div style="padding-top: 10px;">无数据</div>' +
|
||||
' </div>' +
|
||||
'</div>');
|
||||
layero.find('div.layui-table-page').hide();
|
||||
}
|
||||
},
|
||||
deleteRows:function(data){
|
||||
if(!data||data.length==0){
|
||||
zlContext.warnMsg('请选择需要踢出的在线用户!');
|
||||
isloadsearch = true;
|
||||
var layero = $(".zl-container");
|
||||
var text = $("#edtSeacherValue").val();
|
||||
var trs = layero.find('div.layui-table-main').find('tr');
|
||||
var idxs = layero.find('.layui-table-fixed').find('.layui-table-body').find('tr');
|
||||
trs.hide();
|
||||
idxs.hide();
|
||||
layero.find('.noData').remove();
|
||||
layero.find('div.layui-table-page').show();
|
||||
for (var i = 0; i < trs.length; i++) {
|
||||
var tds = $(trs[i]).find('td');
|
||||
for (var k = 0; k < tds.length; k++) {
|
||||
var targetBox = $(tds[k]).children('div');
|
||||
if (targetBox.children().length == 0 && targetBox.html().includes(text)) {
|
||||
$(trs[i]).show();
|
||||
$(idxs[i]).show();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (layero.find('div.layui-table-main').find('tr:visible').length == 0) {
|
||||
layero.find('div.layui-table-main').append('<div class="layui-none noData">' +
|
||||
' <div class="empty-data" style="text-align:center;padding-top: 10%;font-size: 25px;color: #ccc;font-family: tahoma ,微软雅黑;">' +
|
||||
' <i class="layui-icon layui-icon-search" style="font-size: 100px;"></i> ' +
|
||||
' <div style="padding-top: 10px;">无数据</div>' +
|
||||
' </div>' +
|
||||
'</div>');
|
||||
layero.find('div.layui-table-page').hide();
|
||||
}
|
||||
},
|
||||
deleteRows: function (data) {
|
||||
if (!data || data.length == 0) {
|
||||
zlContext.warnMsg('请选择需要踢出的在线用户!');
|
||||
return;
|
||||
}
|
||||
zlContext.confirm('询问', '是否要踢出选择的在线用户?', function (index) {
|
||||
zlContext.deletePost(layui.cache['contentPath'] + '/core/security/kill',
|
||||
}
|
||||
zlContext.confirm('询问', '是否要踢出选择的在线用户?', function (index) {
|
||||
zlContext.deletePost(layui.cache['contentPath'] + '/core/security/kill',
|
||||
data, function (result) {
|
||||
layer.close(index);
|
||||
if (result[statusName] == OK) {
|
||||
table.deleteCheckRows('tbUser');
|
||||
}else{
|
||||
zlContext.errorMsg("踢出用户出错:"+result[msgName]);
|
||||
}
|
||||
layer.close(index);
|
||||
if (result[statusName] == OK) {
|
||||
table.deleteCheckRows('tbUser');
|
||||
} else {
|
||||
zlContext.errorMsg("踢出用户出错:" + result[msgName]);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//头工具栏事件
|
||||
table.on('toolbar(tbUser)', function(obj){
|
||||
//头工具栏事件
|
||||
table.on('toolbar(tbUser)', function (obj) {
|
||||
var checkStatus = table.checkStatus(obj.config.id);
|
||||
switch(obj.event){
|
||||
switch (obj.event) {
|
||||
case 'btnSeacher':
|
||||
customCurr = 1;
|
||||
gridAction.search();
|
||||
|
@ -181,15 +181,15 @@ layui.config({}).use(['element', 'zlConfig', 'zltreemenu', 'zlContext', 'table',
|
|||
gridAction.deleteRows(rows);
|
||||
break;
|
||||
case 'refresh':
|
||||
treeAction.raiseResDataEvent();
|
||||
treeAction.raiseResDataEvent();
|
||||
break;
|
||||
};
|
||||
});
|
||||
|
||||
$('.zl-container').on('keyup','#edtSeacherValue', function (event) {
|
||||
$('.zl-container').on('keyup', '#edtSeacherValue', function (event) {
|
||||
var keyCode = event.keyCode;
|
||||
customCurr = 1;
|
||||
$('.zl-container').attr('data-search',$(this).val())
|
||||
$('.zl-container').attr('data-search', $(this).val())
|
||||
if (keyCode == 13) {
|
||||
gridAction.search();
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ layui.use(['element', 'tree', 'zltreemenu', 'zlContext', 'zlConfig', 'theme'], f
|
|||
|
||||
// 机构区域 目录树渲染
|
||||
var orgtreeObj = zltreemenu.render('orgtree', {
|
||||
dataurl: layui.cache['contentPath'] + "/manager/coreroleauth/queryOrgddata",
|
||||
dataurl: layui.cache['contentPath'] + "/admin/coreorg/queryOrgddata",
|
||||
type: "get",
|
||||
tableId: 'tbField',
|
||||
isMove: false
|
||||
|
|
|
@ -25,7 +25,7 @@ layui.use(['element', 'table', 'tree', 'zltreemenu', 'zlSelectEx', 'zlpoptree',
|
|||
|
||||
// 机构区域 目录树渲染
|
||||
var orgtreeObj = zltreemenu.render('orgtree', {
|
||||
dataurl: layui.cache['contentPath'] + "/manager/coreroleauth/queryOrgddata",
|
||||
dataurl: layui.cache['contentPath'] + "/admin/coreorg/queryOrgddata",
|
||||
type: "get",
|
||||
tableId: 'tbField',
|
||||
isMove: false
|
||||
|
@ -456,7 +456,7 @@ layui.use(['element', 'table', 'tree', 'zltreemenu', 'zlSelectEx', 'zlpoptree',
|
|||
, rows = checkStatus.data;
|
||||
if (rows.length == 0) {
|
||||
zlContext.warnMsg("请先选择记录!");
|
||||
retrun;
|
||||
return;
|
||||
}
|
||||
|
||||
layer.confirm('确定移除选择的人员角色吗?', function (index) {
|
||||
|
@ -492,9 +492,11 @@ layui.use(['element', 'table', 'tree', 'zltreemenu', 'zlSelectEx', 'zlpoptree',
|
|||
entryname: 'DEPTID', name: '部门',
|
||||
tableUrl: layui.cache['contentPath'] + '/admin/coreuser/querydeptuser', tbmethod: 'post',
|
||||
url: layui.cache['contentPath'] + '/admin/bddept/querydeptuser?ORGID=' + orgNode[0].RWID,
|
||||
method: 'post'
|
||||
method: 'post',
|
||||
ORGID: orgNode[0].RWID
|
||||
}
|
||||
],
|
||||
formtitle: '选择人员',
|
||||
id: 'RWID',
|
||||
name: 'OBJNAME',
|
||||
page: 'true',
|
||||
|
@ -506,37 +508,33 @@ layui.use(['element', 'table', 'tree', 'zltreemenu', 'zlSelectEx', 'zlpoptree',
|
|||
, { type: 'checkbox', fixed: 'left' }
|
||||
, { field: 'OBJNAME', title: '姓名', width: 100 }
|
||||
, { field: 'ZHANGHM', title: '账号', width: 100 }
|
||||
, { field: 'OBJCODE', title: '编号', width: 100 }]]
|
||||
, { field: 'OBJCODE', title: '编号', width: 100 }]],
|
||||
onSearchData: function (param) {
|
||||
return $.extend(param, { ORGID: orgNode[0].RWID });
|
||||
}
|
||||
}
|
||||
zlPopSourceExt.onlyshow(settings, function (data) {
|
||||
var newdata = {};
|
||||
newdata.ORGID = orgNode[0].RWID;
|
||||
newdata.ROLEID = roleNode[0].RWID;
|
||||
newdata.ROLENAME = roleNode[0].OBJNAME;
|
||||
var useridslist = data
|
||||
, userids = ''
|
||||
, roleids = ''
|
||||
, rolenames = ''
|
||||
, deptids = ''
|
||||
, url = layui.cache['contentPath'] + "/manager/coreroleauth/addUser";
|
||||
for (var i = 0; i < useridslist.length; i++) {
|
||||
userids = userids + ';' + useridslist[i].RWID;
|
||||
roleids = roleids + ';' + useridslist[i].ROLEIDS;
|
||||
rolenames = rolenames + ';' + useridslist[i].ROLENS;
|
||||
deptids = deptids + ';' + useridslist[i].MNGDEPIDS;
|
||||
let param = {};
|
||||
let userids = []
|
||||
, roleids = []
|
||||
, rolenames = []
|
||||
, deptids = [];
|
||||
for (let i = 0; data && i < data.length; i++) {
|
||||
userids.push(data[i].RWID);
|
||||
roleids.push(data[i].ROLEIDS);
|
||||
rolenames.push(data[i].ROLENS);
|
||||
deptids.push(data[i].MNGDEPIDS);
|
||||
}
|
||||
userids = userids.substr(1, userids.length);
|
||||
roleids = roleids.substr(1, roleids.length);
|
||||
rolenames = rolenames.substr(1, rolenames.length);
|
||||
deptids = deptids.substr(1, deptids.length);
|
||||
|
||||
newdata.USERIDS = userids;
|
||||
newdata.ROLEIDS = roleids;
|
||||
newdata.ROLENAMES = rolenames;
|
||||
newdata.DEPTIDS = deptids;
|
||||
param.ORGID = orgNode[0].RWID;
|
||||
param.ROLEID = roleNode[0].RWID;
|
||||
param.ROLENAME = roleNode[0].OBJNAME;
|
||||
param.USERIDS = userids.join(';');
|
||||
param.ROLEIDS = roleids.join(';');
|
||||
param.ROLENAMES = rolenames.join(';');
|
||||
param.DEPTIDS = deptids.join(';');
|
||||
$.post(
|
||||
url,
|
||||
newdata,
|
||||
layui.cache['contentPath'] + "/manager/coreroleauth/addUser",
|
||||
param,
|
||||
function (data) {
|
||||
data = JSON.parse(data);
|
||||
if (data.state == 'OK') {
|
||||
|
|
|
@ -21,13 +21,13 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
},
|
||||
async: {
|
||||
enable: true,
|
||||
url: layui.cache['contentPath'] + "/manager/corefunction/queryOrgddata",
|
||||
url: layui.cache['contentPath'] + "/admin/coreorg/queryOrgddata",
|
||||
type: "get",
|
||||
dataFilter: function ajaxDataFilter(treeId, parentNode, responseData) {
|
||||
if (responseData[statusName] == OK) {
|
||||
var data = responseData[dataName];
|
||||
for (var i = 0 ;i < data.length;i++){
|
||||
data[i].icon = layui.cache['contentPath']+ "/static/image/org.png";
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
data[i].icon = layui.cache['contentPath'] + "/static/image/org.png";
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
$('input[name="ORGIDTEMP"]').val(treeNode.RWID);
|
||||
treeGrid.reload('treeTable', {
|
||||
url: layui.cache['contentPath'] + '/manager/coremenu/query?orgid=' + $('input[name="ORGIDTEMP"]').val()
|
||||
, height : fullheight
|
||||
, height: fullheight
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
$.fn.zTree.init($("#orgtree"), setting, null);
|
||||
|
||||
$(window).on('resize', function () {
|
||||
zlContext.setMaxHeihgt(0);
|
||||
zlContext.setMaxHeihgt(0);
|
||||
}).resize();
|
||||
});
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
},
|
||||
async: {
|
||||
enable: true,
|
||||
url: layui.cache['contentPath'] + "/manager/corefunction/queryOrgddata",
|
||||
url: layui.cache['contentPath'] + "/admin/coreorg/queryOrgddata",
|
||||
type: "get",
|
||||
dataFilter: function ajaxDataFilter(treeId, parentNode, responseData) {
|
||||
if (responseData[statusName] == OK) {
|
||||
|
@ -261,14 +261,14 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
this.$elem = $([
|
||||
'<fieldset class="layui-elem-field" style="margin-top: 30px;">'
|
||||
, ' <legend><input type="checkbox" name="' + this.name + '" lay-skin="primary" checked="">' + this.name + '</legend>'
|
||||
, ' <div class="child_'+this.id+'">'
|
||||
, ' <div class="child_' + this.id + '">'
|
||||
, ' </div>'
|
||||
, '</fieldset>'
|
||||
].join(''))
|
||||
return this;
|
||||
},
|
||||
addchild: function (cmp) {
|
||||
this.$elem.find(".child_"+this.id).append(cmp.$elem);
|
||||
this.$elem.find(".child_" + this.id).append(cmp.$elem);
|
||||
}
|
||||
});
|
||||
var fromPanel = containerBase.extend({
|
||||
|
@ -349,7 +349,7 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
var itemJson = parentJson[skey];
|
||||
if (itemJson && typeof (itemJson) == "object" && itemJson.xtype) {
|
||||
var xtypeObj = undefined;
|
||||
var xtypeclass = JSON.parse( itemJson.xtype );
|
||||
var xtypeclass = JSON.parse(itemJson.xtype);
|
||||
var xtypeObj = new xtypeclass(itemJson);
|
||||
xtypeObj.render();
|
||||
if (parentCmpObj && parentCmpObj.addchild) {
|
||||
|
@ -362,7 +362,7 @@ layui.use(['element', 'table', 'tree', 'zlpoptree', 'zlContext', 'zlConfig', 'tr
|
|||
}
|
||||
}
|
||||
|
||||
var rootclass = JSON.parse( json.xtype );
|
||||
var rootclass = JSON.parse(json.xtype);
|
||||
var rootobj = new rootclass(json);
|
||||
rootobj.render();
|
||||
$elem.append(rootobj.$elem);
|
||||
|
|
|
@ -101,7 +101,7 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
title: '当前的流程节点',
|
||||
width: 160,
|
||||
sort: true
|
||||
}, {
|
||||
}, {
|
||||
field: 'ASSIGNEENAME',
|
||||
title: '待处理人',
|
||||
width: 160,
|
||||
|
@ -254,7 +254,6 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
success: function (layero, index) {
|
||||
table.render({
|
||||
elem: '#tbFindWorkflow',
|
||||
height: 'full-65',
|
||||
page: false,
|
||||
sortload: false,
|
||||
cols: [
|
||||
|
@ -263,9 +262,19 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
type: 'numbers',
|
||||
fixed: 'left',
|
||||
title: '#'
|
||||
}, {
|
||||
field: 'AUDITPATH',
|
||||
title: '流程节点',
|
||||
width: 300,
|
||||
sort: true
|
||||
}, {
|
||||
field: 'AUDITRLT',
|
||||
title: '审批结果',
|
||||
width: 300,
|
||||
sort: true
|
||||
}, {
|
||||
field: 'AUDITUSER',
|
||||
title: '审核人',
|
||||
title: '审核用户',
|
||||
width: 300,
|
||||
sort: true
|
||||
}, {
|
||||
|
@ -273,11 +282,6 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
title: '审核时间',
|
||||
width: 300,
|
||||
sort: true
|
||||
}, {
|
||||
field: 'AUDITRLT',
|
||||
title: '操作',
|
||||
width: 300,
|
||||
sort: true
|
||||
}, {
|
||||
field: 'AUDITMEMO',
|
||||
title: '审核意见',
|
||||
|
@ -302,8 +306,8 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
name: '机构部门',
|
||||
tableUrl: layui.cache['contentPath'] + '/admin/coreuser/queryusersbydeptrole',
|
||||
tbmethod: 'post',
|
||||
url: layui.cache['contentPath'] + '/manager/coreroleauth/queryOrgddata',
|
||||
method: 'get'
|
||||
url: layui.cache['contentPath'] + '/admin/coreorg/queryorgdepttree?isallorg=false',
|
||||
method: 'post',
|
||||
}],
|
||||
id: 'RWID',
|
||||
name: 'OBJNAME',
|
||||
|
@ -329,7 +333,7 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
}, {
|
||||
field: 'OBJNAME',
|
||||
title: '姓名',
|
||||
width: 100
|
||||
width: 80
|
||||
}, {
|
||||
field: 'DEPTNAME',
|
||||
title: '部门',
|
||||
|
@ -338,10 +342,6 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
field: 'ROLENAME',
|
||||
title: '角色',
|
||||
width: 100
|
||||
}, {
|
||||
field: 'ORGNAME',
|
||||
title: '机构',
|
||||
width: 100
|
||||
}]
|
||||
],
|
||||
chosencoltitle: [
|
||||
|
@ -355,7 +355,7 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
}, {
|
||||
field: 'OBJNAME',
|
||||
title: '姓名',
|
||||
width: 100
|
||||
width: 80
|
||||
}, {
|
||||
field: 'DEPTNAME',
|
||||
title: '部门',
|
||||
|
@ -363,13 +363,16 @@ layui.config({}).use(['element', 'zlConfig', 'zlContext', 'zltreemenu', 'zlSelec
|
|||
}, {
|
||||
field: 'ROLENAME',
|
||||
title: '角色',
|
||||
width: 100
|
||||
}, {
|
||||
field: 'ORGNAME',
|
||||
title: '机构',
|
||||
width: 100
|
||||
width: 90
|
||||
}]
|
||||
]
|
||||
],
|
||||
onSearchData: function (param, node) {
|
||||
if (node && node.ORGID) {
|
||||
return $.extend(param, { ORGID: node.ORGID });
|
||||
} else {
|
||||
return param;
|
||||
}
|
||||
}
|
||||
}
|
||||
zlPopSourceExt.onlyshow(settings, function (data) {
|
||||
if (data.length == 0) {
|
||||
|
|
|
@ -5471,6 +5471,17 @@ if (!ORYX) { var ORYX = {}; }
|
|||
if (!ORYX.Core) { ORYX.Core = {}; }
|
||||
if (!ORYX.Core.Math) { ORYX.Core.Math = {}; }
|
||||
|
||||
/**
|
||||
* 生成唯一id
|
||||
* @returns
|
||||
*/
|
||||
let generalGUID = function () {
|
||||
return 'zxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
||||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
||||
return v.toString(16);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the middle point between two given points
|
||||
* @param {x:double, y:double} point1
|
||||
|
@ -23622,8 +23633,8 @@ Ext.form.StrategysEditor = Ext.extend(Ext.form.ComboBox, {
|
|||
*/
|
||||
Ext.StrategysEditorPanelBase = Ext.extend(Ext.Panel, {
|
||||
anchor: '100%,100%'
|
||||
, initWidth: 1024 //初始化的窗口宽度
|
||||
, initHeight: 768 //初始化的窗口高度
|
||||
, initWidth: 1024
|
||||
, initHeight: 500
|
||||
, constructor: function (config, grid) {
|
||||
this.grid = grid;
|
||||
Ext.StrategysEditorPanelBase.superclass.constructor.call(this, config);
|
||||
|
@ -23652,8 +23663,8 @@ Ext.StrategysEditorPanelBase = Ext.extend(Ext.Panel, {
|
|||
});
|
||||
//选择人员策略
|
||||
Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
||||
initWidth: 1224
|
||||
, initHeight: 768
|
||||
initWidth: 1024
|
||||
, initHeight: 500
|
||||
, pageSize: 100
|
||||
, constructor: function (config, grid, datatype, propertywindow) {
|
||||
this.propertywindow = propertywindow;
|
||||
|
@ -23695,13 +23706,13 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
, items: [this.centerGrid]
|
||||
}, {
|
||||
region: 'west'
|
||||
, width: 300
|
||||
, width: 260
|
||||
, items: [this.westTab]
|
||||
}, {
|
||||
title: '已选择'
|
||||
, region: 'east'
|
||||
, layout: 'fit'
|
||||
, width: 400
|
||||
, width: 360
|
||||
, collapsible: false
|
||||
, items: [this.eastGrid]
|
||||
}]
|
||||
|
@ -23712,25 +23723,25 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
let that = this;
|
||||
let buildTreeData = function (data) {
|
||||
data.each(function (item) {
|
||||
item.id = item['RWID'];
|
||||
item.text = item['OBJNAME'];
|
||||
item.pid = item['SYS_PARENTID'] || '';
|
||||
item.id = item.RWID;
|
||||
item.text = item.OBJNAME;
|
||||
item.pid = item.SYS_PARENTID || '';
|
||||
Object.extend(item, item);
|
||||
}.bind(this))
|
||||
return toTreeData(data)
|
||||
}.bind(this);
|
||||
let buildTreeNodes = function (data) {
|
||||
data.each(function (item) {
|
||||
item.id = item['RWID'];
|
||||
item.text = item['OBJNAME'];
|
||||
item.pid = item['SYS_PARENTID'] || '';
|
||||
item.id = item.RWID;
|
||||
item.text = item.OBJNAME;
|
||||
item.pid = item.SYS_PARENTID || '';
|
||||
Object.extend(item, item);
|
||||
}.bind(this))
|
||||
return toTreeNodes(data)
|
||||
}.bind(this);
|
||||
if (!this.roleData) {
|
||||
Ext.Ajax.request({
|
||||
url: getContextPath() + "/manager/coreroleauth/queryRole?ORGID=" + getCurrentOrgId()
|
||||
url: getContextPath() + "/manager/coreroleauth/queryorgRole?isallorg=false&ORGID=" + getCurrentOrgId()
|
||||
, async: false
|
||||
, method: 'GET'
|
||||
, success: function (response) {
|
||||
|
@ -23746,7 +23757,7 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
}
|
||||
if (!this.deptData) {
|
||||
Ext.Ajax.request({
|
||||
url: getContextPath() + "/admin/coreorg/queryorgdepttreelistbyparentid?ORGID=" + getCurrentOrgId()
|
||||
url: getContextPath() + "/admin/coreorg/queryorgdepttree?isallorg=false&ORGID=" + getCurrentOrgId()
|
||||
, async: false
|
||||
, method: 'POST'
|
||||
, success: function (response) {
|
||||
|
@ -23762,7 +23773,7 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
}
|
||||
|
||||
let roleRoot = new Ext.tree.AsyncTreeNode({
|
||||
text: '所有角色'
|
||||
text: '所有机构角色'
|
||||
, id: 'roleroot'
|
||||
, expanded: true
|
||||
, children: this.roletreeData
|
||||
|
@ -23770,7 +23781,7 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
addDept = function (orgNode) {
|
||||
if (!orgNode.hasChildNodes()) {
|
||||
Ext.Ajax.request({
|
||||
url: getContextPath() + '/admin/coreorg/queryorgdepttreelistbyparentid?RWID=' + orgNode.id
|
||||
url: getContextPath() + '/admin/coreorg/queryorgdepttreelistbyparentid?RWID=' + orgNode.attributes.data.RWID
|
||||
, async: false
|
||||
, method: 'POST'
|
||||
, success: function (response) {
|
||||
|
@ -23799,16 +23810,23 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
if (!node) {
|
||||
return false;
|
||||
}
|
||||
let actTabId = tabs.getActiveTab().getId();
|
||||
let actTabId = tabs.getActiveTab().getId(),
|
||||
attr = node.attributes.data,
|
||||
pAttr = node.parentNode && node.parentNode.attributes.data;
|
||||
if (actTabId == 'tabRole') {
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, ORGID: getCurrentOrgId(), ROLEID: node.id } })
|
||||
let parentId = pAttr && pAttr.RWID
|
||||
if (attr && attr.TYPE == 'ROLE') {
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, ORGID: parentId, ROLEID: attr.ROLEID } })
|
||||
} else if (attr && attr.TYPE == 'ORG') {
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, ORGID: attr.RWID } })
|
||||
}
|
||||
} else if (actTabId == 'tabDept') {
|
||||
if (node.attributes.data && node.attributes.data.EXPANDPROPERTY && node.attributes.data.EXPANDPROPERTY == 'org') {
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, ORGID: node.id } })
|
||||
addDept(node);
|
||||
if (attr.data && attr.EXPANDPROPERTY && attr.EXPANDPROPERTY == 'org') {
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, ORGID: attr.RWID } })
|
||||
// addDept(node);
|
||||
} else {
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, DEPTID: node.id } })
|
||||
addDept(node);
|
||||
this.dsUser.load({ params: { start: 0, limit: this.pageSize, DEPTID: attr.RWID } })
|
||||
// addDept(node);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -23825,7 +23843,7 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
});
|
||||
|
||||
let deptRoot = new Ext.tree.AsyncTreeNode({
|
||||
text: '所有部门'
|
||||
text: '所有机构部门'
|
||||
, id: 'deptroot'
|
||||
, expanded: true
|
||||
, children: this.depttreeData
|
||||
|
@ -23851,7 +23869,7 @@ Ext.SelectPersonStrategysEditor = Ext.extend(Ext.StrategysEditorPanelBase, {
|
|||
|
||||
|
||||
deptTreeLoader.on('beforeload', function (loader, node) {
|
||||
this.baseParams.id = node.id; //通过这个传递参数,这样就可以点一个节点出来它的子节点来实现异步加载
|
||||
this.baseParams.id = node.attributes.data.RWID; //通过这个传递参数,这样就可以点一个节点出来它的子节点来实现异步加载
|
||||
}, deptTreeLoader);
|
||||
|
||||
let tabs = new Ext.TabPanel({
|
||||
|
@ -24726,12 +24744,6 @@ Ext.UserTaskCommonEditor = Ext.extend(Ext.AbstractCommonEditorPanel, {
|
|||
});
|
||||
Ext.UserTaskCommonEditor.superclass.constructor.call(this, initconfig, this.propertywindow);
|
||||
},
|
||||
generalGUID: function () {
|
||||
return 'zxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
||||
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
|
||||
return v.toString(16);
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 得到formData对象
|
||||
*/
|
||||
|
@ -25231,7 +25243,7 @@ Ext.UserTaskCommonEditor = Ext.extend(Ext.AbstractCommonEditorPanel, {
|
|||
var grid = Ext.getCmp('aduRightGrid');
|
||||
var rectype = grid.store.recordType;
|
||||
var r = {
|
||||
formproperty_id: this.generalGUID(),
|
||||
formproperty_id: generalGUID(),
|
||||
formproperty_name: '审核操作',
|
||||
formproperty_value: 99,
|
||||
formproperty_visiable: true,
|
||||
|
|
10
pom.xml
10
pom.xml
|
@ -23,7 +23,7 @@
|
|||
<!-- jdk版本 -->
|
||||
<jdk.version>1.8</jdk.version>
|
||||
<!-- 平台版本 -->
|
||||
<base.version>5.0.228</base.version>
|
||||
<base.version>5.0.230</base.version>
|
||||
<!-- Spring 版本号 -->
|
||||
<spring.version>5.1.2.RELEASE</spring.version>
|
||||
|
||||
|
@ -81,11 +81,11 @@
|
|||
<!-- POI 版本号 -->
|
||||
<poi.version>3.15</poi.version>
|
||||
|
||||
<!-- kdayun-jxls 版本号(已进行改造,现可以被 JDK 1.6 支持) -->
|
||||
<kdayun-jxls.version>2.3.3</kdayun-jxls.version>
|
||||
<!-- kdayun-jxls 版本号(已进行改造) -->
|
||||
<kdayun-jxls.version>2.3.4</kdayun-jxls.version>
|
||||
|
||||
<!-- kdayun-jxls-poi 版本号(已进行改造,现可以被 JDK 1.6 支持) -->
|
||||
<kdayun-jxls-poi.version>1.1.1</kdayun-jxls-poi.version>
|
||||
<!-- kdayun-jxls-poi 版本号(已进行改造) -->
|
||||
<kdayun-jxls-poi.version>1.1.2</kdayun-jxls-poi.version>
|
||||
<!-- kdayun-jsql版本号 -->
|
||||
<kdayun-jsql.version>1.0</kdayun-jsql.version>
|
||||
<kdayun.pdf.version>1.0.0</kdayun.pdf.version>
|
||||
|
|
Loading…
Reference in New Issue