Commit 22e35f09 authored by xiandafu's avatar xiandafu
Browse files

Merge branch 'master' of https://gitee.com/xingyue400/springboot-plus into xy

parents 61761ba6 74a8c45a
...@@ -22,6 +22,6 @@ queryByCondtion ...@@ -22,6 +22,6 @@ queryByCondtion
and f.parent_id = #parentFunctionId# and f.parent_id = #parentFunctionId#
@} @}
@pageIgnoreTag(){ @pageIgnoreTag(){
order by id desc order by id
@} @}
...@@ -27,7 +27,7 @@ queryByCondtion ...@@ -27,7 +27,7 @@ queryByCondtion
@} @}
@pageIgnoreTag(){ @pageIgnoreTag(){
order by m.seq asc , m.id desc order by m.id
@} @}
......
...@@ -23,6 +23,10 @@ queryByCondtion ...@@ -23,6 +23,10 @@ queryByCondtion
@if(!isEmpty(parentOrgId)){ @if(!isEmpty(parentOrgId)){
and o.parent_org_id = #parentOrgId# and o.parent_org_id = #parentOrgId#
@} @}
@pageIgnoreTag(){
order by o.id
@}
......
layui.define(['table', 'functionApi'], function(exports) { layui.define(['table', 'functionApi','treeGrid'], function(exports) {
var functionApi = layui.functionApi; var functionApi = layui.functionApi;
var table=layui.table; var table=layui.table;
var treeGrid = layui.treeGrid;
var view = { var view = {
init:function(){ init:function(){
}, },
delBatch:function(){ delBatch:function(){
var data = Common.getMoreDataFromTable(table,"functionTable"); var data = Common.getMoreDataFromTable(treeGrid,"functionTable");
if(data==null){ if(data==null){
return ; return ;
} }
......
layui.define([ 'form', 'laydate', 'table' ], function(exports) { layui.define(['form', 'laydate', 'table', 'treeGrid'], function (exports) {
var form = layui.form; var form = layui.form;
var laydate = layui.laydate; var laydate = layui.laydate;
var table = layui.table; var table = layui.table;
var functionTable = null; var treeGrid = layui.treeGrid;
var view ={ var functionTable = null;
var view = {
init:function(){
this.initTable();
this.initSearchForm();
this.initToolBar();
window.dataReload = function(){
Lib.doSearchForm($("#functionSearchForm"),functionTable)
}
},
initTable:function(){
functionTable = table.render({
elem : '#functionTable',
height : 'full-280',
method : 'post',
url : Common.ctxPath + '/admin/function/list.json' //数据接口
,page : {"layout":['count','prev', 'page', 'next']} //开启分页
,limit : 10,
cols : [ [ //表头
{
type : 'checkbox',
fixed:'left',
},
{
field : 'id',
title : 'id',
width : 80,
fixed:'left',
sort : true
}, {
field : 'code',
title : '功能代码',
width : 150
}, {
field : 'name',
title : '功能名称',
width : 150,
sort : true
}, {
field : 'accessUrl',
title : '访问地址',
width : 300,
sort : true
}, {
field : 'parentFunctionText',
title : '上一级功能',
width : 120,
sort : true
},{
field : 'typeText',
title : '功能类型',
width : 120,
sort : true
},
{
field : 'createTime',
title : '创建时间',
width : 120,
templet:function(d){
return Common.getDate(d.createTime);
},
sort : true
}
] ] init: function () {
this.initTable();
this.initSearchForm();
this.initToolBar();
window.dataReload = function () {
Lib.doSearchForm($("#functionSearchForm"), functionTable)
}
});
},
initSearchForm:function(){
Lib.initSearchForm( $("#functionSearchForm"),functionTable,form);
},
initToolBar:function(){
toolbar = {
add : function() { //获取选中数据
var url = "/admin/function/add.do";
Common.openDlg(url,"功能点管理>新增");
},
edit : function() { //获取选中数目
var data = Common.getOneFromTable(table,"functionTable");
if(data==null){
return ;
}
var url = "/admin/function/edit.do?id="+data.id;
Common.openDlg(url,"功能点管理>编辑");
},
del : function() {
layui.use(['del'], function(){
var delView = layui.del
delView.delBatch();
});
}
};
$('.ext-toolbar').on('click', function() {
var type = $(this).data('type');
toolbar[type] ? toolbar[type].call(this) : '';
});
}
}
exports('index',view); },
initTable: function () {
functionTable = treeGrid.render({
elem: '#functionTable',
height : Lib.getTableHeight(4),
url: Common.ctxPath + '/admin/function/list.json',
method: 'post',
treeId: 'id',//树形id字段名称
treeUpId: 'parentId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ //表头
{type: 'numbers', title: '序号'},
{
type: 'checkbox',
// fixed: 'left'
},
{
field: 'name',
title: '功能名称',
width: 150
},
{
field: 'typeText',
title: '功能类型',
width: 120,
align:'center'
},
{
field: 'createTime',
title: '创建时间',
width: 120,
align:'center',
templet: function (d) {
return Common.getDate(d.createTime);
}
},
{
field: 'id',
title: 'id',
align:'center',
width: 80
}
]],
done: function (res, curr, count) {
$("[data-field='id']").css('display', 'none');
},
page: false
});
// functionTable = table.render({
// elem : '#functionTable',
// height : 'full-280',
// method : 'post',
// url : Common.ctxPath + '/admin/function/list.json' //数据接口
// ,page : {"layout":['count','prev', 'page', 'next']} //开启分页
// ,limit : 10,
// cols : [ [ //表头
// {
// type : 'checkbox',
// fixed:'left',
// },
// {
// field : 'id',
// title : 'id',
// width : 80,
// fixed:'left',
// sort : true
// }, {
// field : 'code',
// title : '功能代码',
// width : 150
// }, {
// field : 'name',
// title : '功能名称',
// width : 150,
// sort : true
// }, {
// field : 'accessUrl',
// title : '访问地址',
// width : 300,
// sort : true
// }, {
// field : 'parentFunctionText',
// title : '上一级功能',
// width : 120,
// sort : true
// },{
// field : 'typeText',
// title : '功能类型',
// width : 120,
// sort : true
// },
// {
// field : 'createTime',
// title : '创建时间',
// width : 120,
// templet:function(d){
// return Common.getDate(d.createTime);
// },
// sort : true
// }
//
// ] ]
//
// });
},
initSearchForm: function () {
Lib.initSearchForm($("#functionSearchForm"), functionTable, form);
},
initToolBar: function () {
toolbar = {
add: function () { //获取选中数据
var url = "/admin/function/add.do";
Common.openDlg(url, "功能点管理>新增");
},
edit: function () { //获取选中数目
var data = Common.getOneFromTable(treeGrid, "functionTable");
if (data == null) {
return;
}
var url = "/admin/function/edit.do?id=" + data.id;
Common.openDlg(url, "功能点管理>编辑");
},
del: function () {
layui.use(['del'], function () {
var delView = layui.del;
delView.delBatch();
});
}
};
$('.ext-toolbar').on('click', function () {
var type = $(this).data('type');
toolbar[type] ? toolbar[type].call(this) : '';
});
}
};
exports('index', view);
}); });
\ No newline at end of file
layui.define(['table', 'menuApi'], function(exports) { layui.define(['table', 'menuApi','treeGrid'], function(exports) {
var menuApi = layui.menuApi; var menuApi = layui.menuApi;
var table=layui.table; var table=layui.table;
var treeGrid = layui.treeGrid;
var view = { var view = {
init:function(){ init:function(){
}, },
delBatch:function(){ delBatch:function(){
var data = Common.getMoreDataFromTable(table,"menuTable"); var data = Common.getMoreDataFromTable(treeGrid,"menuTable");
if(data==null){ if(data==null){
return ; return ;
} }
......
layui.define([ 'form', 'laydate', 'table' ], function(exports) { layui.define(['form', 'laydate', 'treeGrid'], function (exports) {
var form = layui.form; var form = layui.form;
var laydate = layui.laydate; var laydate = layui.laydate;
var table = layui.table; // var table = layui.table;
var menuTable = null; var treeGrid = layui.treeGrid;
var view ={ var menuTable = null;
var view = {
init:function(){
this.initTable();
this.initSearchForm();
this.initToolBar();
window.dataReload = function(){
Lib.doSearchForm($("#menuSearchForm"),menuTable)
}
},
initTable:function(){
menuTable = table.render({
elem : '#menuTable',
height : 'full-280',
method : 'post',
url : Common.ctxPath + '/admin/menu/list.json' //数据接口
,page : {"layout":['count','prev', 'page', 'next']} //开启分页
,limit : 10,
cols : [ [ //表头
{
type : 'checkbox',
fixed:'left',
},
{
field : 'id',
title : 'id',
width : 80,
fixed:'left',
sort : true
}, {
field : 'code',
title : '菜单代码',
width : 120
}, {
field : 'name',
title : '菜单名称',
width : 120,
sort : true
}, {
field : 'accessUrl',
title : '菜单入口地址',
width : 250,
sort : true
} , {
field : 'icon',
title : '图标',
width : 80
},{
field : 'seq',
title : '排序',
width : 80,
sort : true
},{
field : 'parentMenuName',
title : '上一级菜单',
width : 120,
sort : true
},{
field : 'typeText',
title : '菜单类型',
width : 100,
sort : true
},
{
field : 'createTime',
title : '创建时间',
width : 120,
templet:function(d){
return Common.getDate(d.createTime);
},
sort : true
}
] ] init: function () {
this.initTable();
this.initSearchForm();
this.initToolBar();
window.dataReload = function () {
Lib.doSearchForm($("#menuSearchForm"), menuTable)
}
});
},
initSearchForm:function(){
Lib.initSearchForm( $("#menuSearchForm"),menuTable,form);
},
initToolBar:function(){
toolbar = {
add : function() { //获取选中数据
var url = "/admin/menu/add.do";
Common.openDlg(url,"菜单管理>新增");
},
edit : function() { //获取选中数目
var data = Common.getOneFromTable(table,"menuTable");
if(data==null){
return ;
}
var url = "/admin/menu/edit.do?id="+data.id;
Common.openDlg(url,"菜单管理>编辑");
},
del : function() {
layui.use(['del'], function(){
var delView = layui.del
delView.delBatch();
});
}
};
$('.ext-toolbar').on('click', function() {
var type = $(this).data('type');
toolbar[type] ? toolbar[type].call(this) : '';
});
}
}
exports('index',view); },
initTable: function () {
menuTable = treeGrid.render({
elem: '#menuTable',
height : Lib.getTableHeight(4),
url: Common.ctxPath + '/admin/menu/list.json',
method: 'post',
cellMinWidth: 100,
treeId: 'id',//树形id字段名称
treeUpId: 'parentMenuId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ //表头
// {type: 'numbers', title: '序号', fixed: 'left'},
{type: 'numbers', title: '序号'},
{
type: 'checkbox',
// fixed: 'left'
}, {
field: 'name',
title: '菜单名称',
width: 200
}, {
field: 'typeText',
title: '菜单类型',
width: 100,
align:'center'
},
{
field: 'createTime',
title: '创建时间',
width: 120,
align:'center',
templet: function (d) {
return Common.getDate(d.createTime);
}
},
{
field: 'id',
title: 'id',
width: 80,
align:'center'
}
]],
done: function (res, curr, count) {
$("[data-field='id']").css('display', 'none');
},
page: false
});
// menuTable = table.render({
// elem : '#menuTable',
// height : 'full-280',
// method : 'post',
// url : Common.ctxPath + '/admin/menu/list.json' //数据接口
// ,page : {"layout":['count','prev', 'page', 'next']} //开启分页
// ,limit : 10,
// cols : [ [ //表头
// {
// type : 'checkbox',
// fixed:'left',
// },
// {
// field : 'id',
// title : 'id',
// width : 80,
// fixed:'left',
// sort : true
// }, {
// field : 'code',
// title : '菜单代码',
// width : 120
// }, {
// field : 'name',
// title : '菜单名称',
// width : 120,
// sort : true
// }, {
// field : 'accessUrl',
// title : '菜单入口地址',
// width : 250,
// sort : true
// } , {
// field : 'icon',
// title : '图标',
// width : 80
// },{
// field : 'seq',
// title : '排序',
// width : 80,
// sort : true
// },{
// field : 'parentMenuName',
// title : '上一级菜单',
// width : 120,
// sort : true
// },{
// field : 'typeText',
// title : '菜单类型',
// width : 100,
// sort : true
// },
// {
// field : 'createTime',
// title : '创建时间',
// width : 120,
// templet:function(d){
// return Common.getDate(d.createTime);
// },
// sort : true
// }
//
// ] ]
//
// });
},
initSearchForm: function () {
Lib.initSearchForm($("#menuSearchForm"), menuTable, form);
},
initToolBar: function () {
toolbar = {
add: function () { //获取选中数据
var url = "/admin/menu/add.do";
Common.openDlg(url, "菜单管理>新增");
},
edit: function () { //获取选中数目
var data = Common.getOneFromTable(treeGrid, "menuTable");
if (data == null) {
return;
}
var url = "/admin/menu/edit.do?id=" + data.id;
Common.openDlg(url, "菜单管理>编辑");
},
del: function () {
layui.use(['del'], function () {
var delView = layui.del;
delView.delBatch();
});
}
};
$('.ext-toolbar').on('click', function () {
var type = $(this).data('type');
toolbar[type] ? toolbar[type].call(this) : '';
});
}
};
exports('index', view);
}); });
\ No newline at end of file
layui.define(['table', 'orgApi'], function(exports) { layui.define(['table', 'orgApi','treeGrid'], function(exports) {
var orgApi = layui.orgApi; var orgApi = layui.orgApi;
var table=layui.table; var table=layui.table;
var treeGrid = layui.treeGrid;
var view = { var view = {
init:function(){ init:function(){
}, },
delBatch:function(){ delBatch:function(){
var data = Common.getMoreDataFromTable(table,"orgTable"); var data = Common.getMoreDataFromTable(treeGrid,"orgTable");
if(data==null){ if(data==null){
return ; return ;
} }
......
layui.define([ 'form', 'laydate', 'table' ], function(exports) { layui.define(['form', 'laydate', 'table', 'treeGrid'], function (exports) {
var form = layui.form; var form = layui.form;
var laydate = layui.laydate; var laydate = layui.laydate;
var table = layui.table; // var table = layui.table;
var userTable = null; var treeGrid = layui.treeGrid;
var view ={ var userTable = null;
init:function(){ var view = {
this.initTable();
this.initSearchForm(); init: function () {
this.initToolBar(); this.initTable();
window.dataReload = function(){ this.initSearchForm();
Lib.doSearchForm($("#orgSearchForm"),userTable) this.initToolBar();
} window.dataReload = function () {
Lib.doSearchForm($("#orgSearchForm"), userTable)
}
},
initTable:function(){
userTable = table.render({ },
elem : '#orgTable', initTable: function () {
height : Lib.getTableHeight(2), userTable = treeGrid.render({
method : 'post', elem: '#orgTable',
url : Common.ctxPath + '/admin/org/list.json' //数据接口 height : Lib.getTableHeight(4),
,page : {"layout":['count','prev', 'page', 'next']} //开启分页 url: Common.ctxPath + '/admin/org/list.json',
,limit : 10, method: 'post',
cols : [ [ //表头 cellMinWidth: 100,
{ treeId: 'id',//树形id字段名称
type : 'checkbox', treeUpId: 'parentOrgId',//树形父id字段名称
fixed:'left', treeShowName: 'name',//以树形式显示的字段
}, { cols: [[ //表头
field : 'id', // {type: 'numbers', title: '序号', fixed: 'left'},
title : 'id', {type: 'numbers', title: '序号'},
width : 80,
fixed:'left', {
sort : true type: 'checkbox',
}, { // fixed: 'left'
field : 'code', // fixed: 'left'
title : '机构代码', },
width : 150 {
}, { field: 'name',
field : 'name', title: '机构名称',
title : '机构名称', width: 500
width : 120, },
sort : true {
}, { field: 'typeText',
field : 'parentOrgText', title: '机构类型',
title : '上一级机构', width: 120,
width : 150, align: 'center'
sort : true },
}, {
{ field: 'createTime',
field : 'typeText', title: '创建时间',
title : '机构类型', width: 120,
width : 120, align: 'center',
sort : true templet: function (d) {
}, return Common.getDate(d.createTime);
{ }
field : 'createTime', }, {
title : '创建时间', field: 'id',
width : 120, title: 'id',
templet:function(d){ width: 50,
return Common.getDate(d.createTime); align: 'center'
}, }
sort : true
} ]],
done: function (res, curr, count) {
] ] $("[data-field='id']").css('display', 'none');
},
}); page: false
}, });
initSearchForm:function(){
Lib.initSearchForm( $("#orgSearchForm"),userTable,form);
},
initToolBar:function(){
toolbar = { },
add : function() { //获取选中数据
var url = "/admin/org/add.do"; initSearchForm: function () {
Common.openDlg(url,"用户管理>新增"); Lib.initSearchForm($("#orgSearchForm"), userTable, form);
}, },
edit : function() { //获取选中数目 initToolBar: function () {
var data = Common.getOneFromTable(table,"orgTable"); toolbar = {
if(data==null){ add: function () { //获取选中数据
return ; var url = "/admin/org/add.do";
} Common.openDlg(url, "用户管理>新增");
var url = "/admin/org/edit.do?id="+data.id; },
Common.openDlg(url,"用户管理>编辑"); edit: function () { //获取选中数目
}, var data = Common.getOneFromTable(treeGrid, "orgTable");
del : function() { if (data == null) {
layui.use(['del'], function(){ return;
var delView = layui.del }
delView.delBatch(); var url = "/admin/org/edit.do?id=" + data.id;
}); Common.openDlg(url, "用户管理>编辑");
},
orgUser : function() { },
var data = Common.getOneFromTable(table,"orgTable"); del: function () {
if(data==null){ layui.use(['del'], function () {
return ; var delView = layui.del;
} delView.delBatch();
var url = "/admin/org/user/list.do?orgId="+data.id; });
Common.openDlg(url,"组织管理>用户列表"); },
orgUser: function () {
} var data = Common.getOneFromTable(treeGrid, "orgTable");
if (data == null) {
}; return;
$('.ext-toolbar').on('click', function() { }
var type = $(this).data('type'); var url = "/admin/org/user/list.do?orgId=" + data.id;
toolbar[type] ? toolbar[type].call(this) : ''; Common.openDlg(url, "组织管理>用户列表");
});
} }
}
};
exports('index',view); $('.ext-toolbar').on('click', function () {
var type = $(this).data('type');
toolbar[type] ? toolbar[type].call(this) : '';
});
}
};
exports('index', view);
}); });
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/** layui-v2.2.5 MIT License By https://www.layui.com */ /** layui-v2.2.5 MIT License By https://www.layui.com */
;!function(e){"use strict";var t=document,n={modules:{},status:{},timeout:10,event:{}},o=function(){this.v="2.2.5"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,n=t.scripts,o=n.length-1,r=o;r>0;r--)if("interactive"===n[r].readyState){e=n[r].src;break}return e||n[o].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};o.prototype.cache=n,o.prototype.define=function(e,t){var o=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(o,r){e(o,r),n.callback[o]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?a.call(o):(o.use(e,a),o)},o.prototype.use=function(e,o,l){function s(e,t){var o="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||o.test((e.currentTarget||e.srcElement).readyState))&&(n.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void(n.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),o,l):"function"==typeof o&&o.apply(layui,l)}var y=this,p=n.dir=n.dir?n.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],n.host=n.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(n.modules[f])!function g(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void("string"==typeof n.modules[f]&&n.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":n.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=n.version===!0?n.v||(new Date).getTime():n.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||i?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),n.modules[f]=h}return y},o.prototype.getStyle=function(t,n){var o=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return o[o.getPropertyValue?"getPropertyValue":"getAttribute"](n)},o.prototype.link=function(e,o,r){var i=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof o&&(r=o);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof o?i:(function p(){return++y>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(c),"width"))?function(){o()}():setTimeout(p,100))}(),i)},n.callback={},o.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},o.prototype.addcss=function(e,t,o){return layui.link(n.dir+"css/"+e,t,o)},o.prototype.img=function(e,t,n){var o=new Image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},o.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},o.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),o.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},o.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(n.href=e=e.replace(/^#\//,""),e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},o.prototype.data=function(t,n,o){if(t=t||"layui",o=o||localStorage,e.JSON&&e.JSON.parse){if(null===n)return delete o[t];n="object"==typeof n?n:{key:n};try{var r=JSON.parse(o[t])}catch(a){var r={}}return"value"in n&&(r[n.key]=n.value),n.remove&&delete r[n.key],o[t]=JSON.stringify(r),n.key?r[n.key]:r}},o.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},o.prototype.device=function(t){var n=navigator.userAgent.toLowerCase(),o=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:o("micromessenger")};return t&&!r[t]&&(r[t]=o(t)),r.android=/android/.test(n),r.ios="ios"===r.os,r},o.prototype.hint=function(){return{error:a}},o.prototype.each=function(e,t){var n,o=this;if("function"!=typeof t)return o;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;n<e.length&&!t.call(e[n],n,e[n]);n++);return o},o.prototype.sort=function(e,t,n){var o=JSON.parse(JSON.stringify(e||[]));return t?(o.sort(function(e,n){var o=/^-?\d+$/,r=e[t],a=n[t];return o.test(r)&&(r=parseFloat(r)),o.test(a)&&(a=parseFloat(a)),r&&!a?1:!r&&a?-1:r>a?1:r<a?-1:0}),n&&o.reverse(),o):o},o.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(n){t.cancelBubble=!0}},o.prototype.onevent=function(e,t,n){return"string"!=typeof e||"function"!=typeof n?this:o.event(e,t,null,n)},o.prototype.event=o.event=function(e,t,o,r){var a=this,i=null,u=t.match(/\((.*)\)$/)||[],l=(e+"."+t).replace(u[0],""),s=u[1]||"",c=function(e,t){var n=t&&t.call(a,o);n===!1&&null===i&&(i=!1)};return r?(n.event[l]=n.event[l]||{},n.event[l][s]=[r],this):(layui.each(n.event[l],function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(e===s&&layui.each(t,c)))}),i)},e.layui=new o}(window); ;!function(e){"use strict";var t=document,n={modules:{},status:{},timeout:10,event:{}},o=function(){this.v="2.2.5"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,n=t.scripts,o=n.length-1,r=o;r>0;r--)if("interactive"===n[r].readyState){e=n[r].src;break}return e||n[o].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),a=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},i="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={treeGrid:"modules/treeGrid",layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};o.prototype.cache=n,o.prototype.define=function(e,t){var o=this,r="function"==typeof e,a=function(){var e=function(e,t){layui[e]=t,n.status[e]=!0};return"function"==typeof t&&t(function(o,r){e(o,r),n.callback[o]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?a.call(o):(o.use(e,a),o)},o.prototype.use=function(e,o,l){function s(e,t){var o="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||o.test((e.currentTarget||e.srcElement).readyState))&&(n.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void(n.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),o,l):"function"==typeof o&&o.apply(layui,l)}var y=this,p=n.dir=n.dir?n.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],n.host=n.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(n.modules[f])!function g(){return++m>1e3*n.timeout/4?a(f+" is not a valid module"):void("string"==typeof n.modules[f]&&n.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":n.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=n.version===!0?n.v||(new Date).getTime():n.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||i?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),n.modules[f]=h}return y},o.prototype.getStyle=function(t,n){var o=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return o[o.getPropertyValue?"getPropertyValue":"getAttribute"](n)},o.prototype.link=function(e,o,r){var i=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof o&&(r=o);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(n.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof o?i:(function p(){return++y>1e3*n.timeout/100?a(e+" timeout"):void(1989===parseInt(i.getStyle(t.getElementById(c),"width"))?function(){o()}():setTimeout(p,100))}(),i)},n.callback={},o.prototype.factory=function(e){if(layui[e])return"function"==typeof n.callback[e]?n.callback[e]:null},o.prototype.addcss=function(e,t,o){return layui.link(n.dir+"css/"+e,t,o)},o.prototype.img=function(e,t,n){var o=new Image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},o.prototype.config=function(e){e=e||{};for(var t in e)n[t]=e[t];return this},o.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),o.prototype.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?a("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},o.prototype.router=function(e){var t=this,e=e||location.hash,n={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(n.href=e=e.replace(/^#\//,""),e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),n.search[t[0]]=t[1]}():n.path.push(t)}),n):n},o.prototype.data=function(t,n,o){if(t=t||"layui",o=o||localStorage,e.JSON&&e.JSON.parse){if(null===n)return delete o[t];n="object"==typeof n?n:{key:n};try{var r=JSON.parse(o[t])}catch(a){var r={}}return"value"in n&&(r[n.key]=n.value),n.remove&&delete r[n.key],o[t]=JSON.stringify(r),n.key?r[n.key]:r}},o.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},o.prototype.device=function(t){var n=navigator.userAgent.toLowerCase(),o=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(n.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((n.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:o("micromessenger")};return t&&!r[t]&&(r[t]=o(t)),r.android=/android/.test(n),r.ios="ios"===r.os,r},o.prototype.hint=function(){return{error:a}},o.prototype.each=function(e,t){var n,o=this;if("function"!=typeof t)return o;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;n<e.length&&!t.call(e[n],n,e[n]);n++);return o},o.prototype.sort=function(e,t,n){var o=JSON.parse(JSON.stringify(e||[]));return t?(o.sort(function(e,n){var o=/^-?\d+$/,r=e[t],a=n[t];return o.test(r)&&(r=parseFloat(r)),o.test(a)&&(a=parseFloat(a)),r&&!a?1:!r&&a?-1:r>a?1:r<a?-1:0}),n&&o.reverse(),o):o},o.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(n){t.cancelBubble=!0}},o.prototype.onevent=function(e,t,n){return"string"!=typeof e||"function"!=typeof n?this:o.event(e,t,null,n)},o.prototype.event=o.event=function(e,t,o,r){var a=this,i=null,u=t.match(/\((.*)\)$/)||[],l=(e+"."+t).replace(u[0],""),s=u[1]||"",c=function(e,t){var n=t&&t.call(a,o);n===!1&&null===i&&(i=!1)};return r?(n.event[l]=n.event[l]||{},n.event[l][s]=[r],this):(layui.each(n.event[l],function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(e===s&&layui.each(t,c)))}),i)},e.layui=new o}(window);
\ No newline at end of file \ No newline at end of file
/*-------------------------------------
zTree Style
version: 3.4
author: Hunter.z
email: hunter.z@263.net
website: http://code.google.com/p/jquerytree/
-------------------------------------*/
.ztree * {padding:0; margin:0; font-size:15px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
.ztree {margin:0; padding:5px; color:#333}
.ztree li{padding:0; margin:0; list-style:none; line-height:17px; text-align:left; white-space:nowrap; outline:0}
.ztree li ul{ margin:0; padding:0 0 0 18px}
.ztree li ul.line{ background:url(./img/line_conn.png) 0 0 repeat-y;}
.ztree li a {padding-right:3px; margin:0; cursor:pointer; height:21px; color:#333; background-color: transparent; text-decoration:none; vertical-align:top; display: inline-block}
.ztree li a:hover {text-decoration:underline}
.ztree li a.curSelectedNode {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; opacity:0.8;}
.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#e5e5e5; color:black; height:21px; border:1px #666 solid; opacity:0.8;}
.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#aaa; color:white; height:21px; border:1px #666 solid;
opacity:0.8; filter:alpha(opacity=80)}
.ztree li a.tmpTargetNode_prev {}
.ztree li a.tmpTargetNode_next {}
.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
font-size:12px; border:1px #585956 solid; *border:0px}
.ztree li span {line-height:21px; margin-right:2px}
.ztree li span.button {line-height:0; margin:0; padding: 0; width:21px; height:21px; display: inline-block; vertical-align:middle;
border:0 none; cursor: pointer;outline:none;
background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")}
.ztree li span.button.chk {width:13px; height:13px; margin:0 2px; cursor: auto}
.ztree li span.button.chk.checkbox_false_full {background-position: -5px -5px;}
.ztree li span.button.chk.checkbox_false_full_focus {background-position: -5px -26px;}
.ztree li span.button.chk.checkbox_false_part {background-position: -5px -48px;}
.ztree li span.button.chk.checkbox_false_part_focus {background-position: -5px -68px;}
.ztree li span.button.chk.checkbox_false_disable {background-position: -5px -89px;}
.ztree li span.button.chk.checkbox_true_full {background-position: -26px -5px;}
.ztree li span.button.chk.checkbox_true_full_focus {background-position: -26px -26px;}
.ztree li span.button.chk.checkbox_true_part {background-position: -26px -48px;}
.ztree li span.button.chk.checkbox_true_part_focus {background-position: -26px -68px;}
.ztree li span.button.chk.checkbox_true_disable {background-position: -26px -89px;}
.ztree li span.button.chk.radio_false_full {background-position: -47px -5px;}
.ztree li span.button.chk.radio_false_full_focus {background-position: -47px -26px;}
.ztree li span.button.chk.radio_false_part {background-position: -47px -47px;}
.ztree li span.button.chk.radio_false_part_focus {background-position: -47px -68px;}
.ztree li span.button.chk.radio_false_disable {background-position: -47px -89px;}
.ztree li span.button.chk.radio_true_full {background-position: -68px -5px;}
.ztree li span.button.chk.radio_true_full_focus {background-position: -68px -26px;}
.ztree li span.button.chk.radio_true_part {background-position: -68px -47px;}
.ztree li span.button.chk.radio_true_part_focus {background-position: -68px -68px;}
.ztree li span.button.chk.radio_true_disable {background-position: -68px -89px;}
.ztree li span.button.switch {width:21px; height:21px}
.ztree li span.button.root_open{background-position:-105px -63px}
.ztree li span.button.root_close{background-position:-126px -63px}
.ztree li span.button.roots_open{background-position: -105px 0;}
.ztree li span.button.roots_close{background-position: -126px 0;}
.ztree li span.button.center_open{background-position: -105px -21px;}
.ztree li span.button.center_close{background-position: -126px -21px;}
.ztree li span.button.bottom_open{background-position: -105px -42px;}
.ztree li span.button.bottom_close{background-position: -126px -42px;}
.ztree li span.button.noline_open{background-position: -105px -84px;}
.ztree li span.button.noline_close{background-position: -126px -84px;}
.ztree li span.button.root_docu{ background:none;}
.ztree li span.button.roots_docu{background-position: -84px 0;}
.ztree li span.button.center_docu{background-position: -84px -21px;}
.ztree li span.button.bottom_docu{background-position: -84px -42px;}
.ztree li span.button.noline_docu{ background:none;}
.ztree li span.button.ico_open{margin-right:2px; background-position: -147px -21px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_close{margin-right:2px; margin-right:2px; background-position: -147px 0; vertical-align:top; *vertical-align:middle}
.ztree li span.button.ico_docu{margin-right:2px; background-position: -147px -42px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.edit {margin-left:2px; margin-right: -1px; background-position: -189px -21px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.edit:hover {
background-position: -168px -21px;
}
.ztree li span.button.remove {margin-left:2px; margin-right: -1px; background-position: -189px -42px; vertical-align:top; *vertical-align:middle}
.ztree li span.button.remove:hover {
background-position: -168px -42px;
}
.ztree li span.button.add {margin-left:2px; margin-right: -1px; background-position: -189px 0; vertical-align:top; *vertical-align:middle}
.ztree li span.button.add:hover {
background-position: -168px 0;
}
.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
span.tmpzTreeMove_arrow {width:16px; height:21px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
background-position:-168px -84px; background-image:url("./img/metro.png"); *background-image:url("./img/metro.gif")}
ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
.ztreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_520106_q8xykrwf86ywrk9.css?v=${jsVer}" media="all"/> <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_520106_q8xykrwf86ywrk9.css?v=${jsVer}" media="all"/>
<script type="text/javascript" src="${ctxPath}/plugins/layui/layui.js?v=${jsVer}"></script> <script type="text/javascript" src="${ctxPath}/plugins/layui/layui.js?v=${jsVer}"></script>
<script type="text/javascript" src="${ctxPath}/plugins/jquery/jquery.min.js?v=${jsVer}"></script> <script type="text/javascript" src="${ctxPath}/plugins/jquery/jquery.min.js?v=${jsVer}"></script>
<link rel="stylesheet" href="${ctxPath}/plugins/ztree/css/zTreeStyle.css?v=${jsVer}" type="text/css"> <!--<link rel="stylesheet" href="${ctxPath}/plugins/ztree/css/zTreeStyle.css?v=${jsVer}" type="text/css">-->
<link rel="stylesheet" href="${ctxPath}/plugins/ztree/css/metroStyle.css?v=${jsVer}" type="text/css">
<script type="text/javascript" src="${ctxPath}/plugins/ztree/js/jquery.ztree.all.min.js?v=${jsVer}"></script> <script type="text/javascript" src="${ctxPath}/plugins/ztree/js/jquery.ztree.all.min.js?v=${jsVer}"></script>
<!-- 业务公用库 --> <!-- 业务公用库 -->
<script type="text/javascript" src="${ctxPath}/js/common.js?v=${jsVer}"></script> <script type="text/javascript" src="${ctxPath}/js/common.js?v=${jsVer}"></script>
......
<!--#layout("/common/container.html"){ --> <!--#layout("/common/container.html"){-->
<h2>ErrorCode:${status}</h2> <script>
<h5>Message:${errorMessage}</h5> layui.use('layer', function () {
<h5>RequestPath:${requestPath}</h5> parent.layer.open({
content: '${errorMessage}'
,btn: '确定'
});
})
<i>此错误信息来自 error.html文件,通过CustomErrorController.java统一处理</i> </script>
<!--#} --> <!--#} -->
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment