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

【权限】权限点功能整改,树形表格整改

上级 515a1c8a
...@@ -6,25 +6,20 @@ layui.config({ ...@@ -6,25 +6,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1553740371701'); authBtn('1553740371701');
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'sysdevelopdoc001', url: reqBasePath + 'sysdevelopdoc001',
cellMinWidth: 100,
where: {typeName: $("#typeName").val()}, where: {typeName: $("#typeName").val()},
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'title',//以树形式显示的字段
cols: [[ cols: [[
{field:'title', width:200, title: '目录'}, {field:'title', width:200, title: '目录'},
{field:'contentNum', width:80, title: '文档数'}, {field:'contentNum', width:80, title: '文档数'},
...@@ -35,10 +30,13 @@ layui.config({ ...@@ -35,10 +30,13 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
}, },
isPage:false }, {
}); keyId: 'id',
keyPid: 'pId',
treeGrid.on('tool(messageTable)', function (obj) { title: 'title',
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -164,7 +162,7 @@ layui.config({ ...@@ -164,7 +162,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where:{typeName: $("#typeName").val()}}); tableTree.reload("messageTable", {where:{typeName: $("#typeName").val()}});
} }
exports('sysdevelopdoclist', {}); exports('sysdevelopdoclist', {});
......
...@@ -6,24 +6,20 @@ layui.config({ ...@@ -6,24 +6,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1637420150374'); authBtn('1637420150374');
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'sysevemodeltype001', url: reqBasePath + 'sysevemodeltype001',
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'parentId',//树形父id字段名称
treeShowName: 'typeName',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'typeName', title: '名称', width: 360 }, { field: 'typeName', title: '名称', width: 360 },
...@@ -33,13 +29,16 @@ layui.config({ ...@@ -33,13 +29,16 @@ layui.config({
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150}, { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 130, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 130, toolbar: '#tableBar'}
]], ]],
isPage: false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'parentId',
title: 'typeName',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if(layEvent === 'delet'){ // 删除 if(layEvent === 'delet'){ // 删除
...@@ -101,7 +100,7 @@ layui.config({ ...@@ -101,7 +100,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
......
...@@ -6,24 +6,20 @@ layui.config({ ...@@ -6,24 +6,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1636280749353'); authBtn('1636280749353');
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: flowableBasePath + 'dsformpagetype001', url: flowableBasePath + 'dsformpagetype001',
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'parentId',//树形父id字段名称
treeShowName: 'typeName',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'typeName', title: '中文名称', width: 180 }, { field: 'typeName', title: '中文名称', width: 180 },
...@@ -35,13 +31,16 @@ layui.config({ ...@@ -35,13 +31,16 @@ layui.config({
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150}, { field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 130, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 130, toolbar: '#tableBar'}
]], ]],
isPage: false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'parentId',
title: 'typeName',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if(layEvent === 'delet'){ // 删除 if(layEvent === 'delet'){ // 删除
...@@ -103,7 +102,7 @@ layui.config({ ...@@ -103,7 +102,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
......
...@@ -6,24 +6,19 @@ layui.config({ ...@@ -6,24 +6,19 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1568558491168'); authBtn('1568558491168');
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: flowableBasePath + 'materialcategory001', url: flowableBasePath + 'materialcategory001',
cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'name', title: '名称', align: 'left', width: 360 }, { field: 'name', title: '名称', align: 'left', width: 360 },
...@@ -31,13 +26,16 @@ layui.config({ ...@@ -31,13 +26,16 @@ layui.config({
{ field: 'remark', title: '备注', align: 'left', width: 200 }, { field: 'remark', title: '备注', align: 'left', width: 200 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 250, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 250, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'name',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'edit') { //编辑 if (layEvent === 'edit') { //编辑
...@@ -109,7 +107,7 @@ layui.config({ ...@@ -109,7 +107,7 @@ layui.config({
form.render(); form.render();
form.on('submit(formSearch)', function (data) { form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
refreshloadTable(); loadTable();
} }
return false; return false;
}); });
...@@ -120,13 +118,9 @@ layui.config({ ...@@ -120,13 +118,9 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function refreshloadTable(){
treeGrid.query("messageTable", {page: {curr: 1}, where: getTableParams()});
}
function getTableParams(){ function getTableParams(){
return { return {
name: $("#name").val() name: $("#name").val()
......
...@@ -5,24 +5,20 @@ layui.config({ ...@@ -5,24 +5,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1568476869775'); authBtn('1568476869775');
treeGrid.render({
tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'knowledgetype001', url: reqBasePath + 'knowledgetype001',
cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'name', title: '名称', width: 360 }, { field: 'name', title: '名称', width: 360 },
...@@ -45,9 +41,13 @@ layui.config({ ...@@ -45,9 +41,13 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'name',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'edit') { //编辑 if (layEvent === 'edit') { //编辑
...@@ -138,12 +138,12 @@ layui.config({ ...@@ -138,12 +138,12 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
return { return {
name:$("#name").val() name: $("#name").val()
}; };
} }
......
...@@ -5,25 +5,20 @@ layui.config({ ...@@ -5,25 +5,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1561106812907'); authBtn('1561106812907');
// 公告类型列表 // 公告类型列表
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'noticetype001', url: reqBasePath + 'noticetype001',
cellMinWidth: 100,
where: {name:$("#name").val(),parentId:$("#firstType").val()}, where: {name:$("#name").val(),parentId:$("#firstType").val()},
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'name', title: '类型名称', align: 'center', width: 120 }, { field: 'name', title: '类型名称', align: 'center', width: 120 },
...@@ -49,16 +44,19 @@ layui.config({ ...@@ -49,16 +44,19 @@ layui.config({
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 180 }, { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 180 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 257, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
if(!loadFirstType){ if(!loadFirstType){
initFirstType(); initFirstType();
} }
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'name',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'edit') { //编辑 if (layEvent === 'edit') { //编辑
...@@ -98,8 +96,7 @@ layui.config({ ...@@ -98,8 +96,7 @@ layui.config({
}); });
form.render(); form.render();
$("body").on("click", "#formSearch", function() { $("body").on("click", "#formSearch", function() {
loadTable(); loadTable();
}); });
...@@ -190,7 +187,7 @@ layui.config({ ...@@ -190,7 +187,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where:{name:$("#name").val(),parentId:$("#firstType").val()}}); tableTree.reload("messageTable", {where:{name:$("#name").val(),parentId:$("#firstType").val()}});
} }
exports('sysnoticetypelist', {}); exports('sysnoticetypelist', {});
......
...@@ -6,11 +6,11 @@ layui.config({ ...@@ -6,11 +6,11 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
var selTemplate = getFileContent('tpl/template/select-option.tpl') var selTemplate = getFileContent('tpl/template/select-option.tpl')
authBtn('1552962689111'); authBtn('1552962689111');
...@@ -47,16 +47,12 @@ layui.config({ ...@@ -47,16 +47,12 @@ layui.config({
} }
function initLoadTable(){ function initLoadTable(){
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'companyjob001', url: reqBasePath + 'companyjob001',
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'jobName',//以树形式显示的字段
cols: [[ cols: [[
{ field: 'jobName', title: '职位名称', width: 180 }, { field: 'jobName', title: '职位名称', width: 180 },
{ field: 'id', title: '职位简介', width: 80, align: 'center', templet: function (d) { { field: 'id', title: '职位简介', width: 80, align: 'center', templet: function (d) {
...@@ -68,14 +64,17 @@ layui.config({ ...@@ -68,14 +64,17 @@ layui.config({
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], width: 150 }, { field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'jobName',
}); });
} }
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -99,7 +98,7 @@ layui.config({ ...@@ -99,7 +98,7 @@ layui.config({
form.render(); form.render();
form.on('submit(formSearch)', function (data) { form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
refreshTable(); loadTable();
} }
return false; return false;
}); });
...@@ -160,13 +159,9 @@ layui.config({ ...@@ -160,13 +159,9 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function refreshTable(){
treeGrid.query("messageTable", {page: {curr: 1}, where: getTableParams()});
}
function getTableParams(){ function getTableParams(){
return { return {
companyId: $("#companyId").val(), companyId: $("#companyId").val(),
......
...@@ -6,25 +6,20 @@ layui.config({ ...@@ -6,25 +6,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1552959308337'); authBtn('1552959308337');
// 公司列表 // 公司列表
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'companymation001', url: reqBasePath + 'companymation001',
cellMinWidth: 100,
where:{companyName: $("#companyName").val()}, where:{companyName: $("#companyName").val()},
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'companyName',//以树形式显示的字段
cols: [[ cols: [[
{ field: 'companyName', width: 300, title: '公司名称'}, { field: 'companyName', width: 300, title: '公司名称'},
{ field: 'companyDesc', width: 80, title: '公司简介', align: 'center', templet: function (d) { { field: 'companyDesc', width: 80, title: '公司简介', align: 'center', templet: function (d) {
...@@ -55,9 +50,13 @@ layui.config({ ...@@ -55,9 +50,13 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}); }, {
keyId: 'id',
treeGrid.on('tool(messageTable)', function (obj) { keyPid: 'pId',
title: 'companyName',
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -128,7 +127,7 @@ layui.config({ ...@@ -128,7 +127,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where:{companyName: $("#companyName").val()}}); tableTree.reload("messageTable", {where:{companyName: $("#companyName").val()}});
} }
exports('companymationlist', {}); exports('companymationlist', {});
......
...@@ -9,32 +9,24 @@ layui.config({ ...@@ -9,32 +9,24 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form', 'laydate', 'treeGrid'], function (exports) { }).define(['window', 'jquery', 'winui', 'form', 'laydate', 'tableTreeDj'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
laydate = layui.laydate, laydate = layui.laydate,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1574644930825'); authBtn('1574644930825');
//任务开始时间 // 任务开始时间
laydate.render({ laydate.render({elem: '#startTime', range: '~'});
elem: '#startTime', //指定元素
range: '~'
});
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: flowableBasePath + 'protask011', url: flowableBasePath + 'protask011',
cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'taskName',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers', rowspan: 2}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers', rowspan: 2},
{ field: 'taskName', title: '名称', rowspan: 2, width: 200, templet: function (d) { { field: 'taskName', title: '名称', rowspan: 2, width: 200, templet: function (d) {
...@@ -80,9 +72,13 @@ layui.config({ ...@@ -80,9 +72,13 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'taskName',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'details'){ //详情 if (layEvent === 'details'){ //详情
...@@ -263,7 +259,7 @@ layui.config({ ...@@ -263,7 +259,7 @@ layui.config({
form.render(); form.render();
form.on('submit(formSearch)', function (data) { form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
treeGrid.query("messageTable", {page: {curr: 1}, where: getTableParams()}); loadTable();
} }
return false; return false;
}); });
...@@ -274,12 +270,12 @@ layui.config({ ...@@ -274,12 +270,12 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
var theStartTime = "", theEndTime = ""; var theStartTime = "", theEndTime = "";
if(!isNull($("#startTime").val())){ if (!isNull($("#startTime").val())) {
theStartTime = $("#startTime").val().split('~')[0].trim() + ' 00:00:00'; theStartTime = $("#startTime").val().split('~')[0].trim() + ' 00:00:00';
theEndTime = $("#startTime").val().split('~')[1].trim() + ' 23:59:59'; theEndTime = $("#startTime").val().split('~')[1].trim() + ' 23:59:59';
} }
......
...@@ -6,30 +6,22 @@ layui.config({ ...@@ -6,30 +6,22 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form', 'laydate', 'treeGrid'], function (exports) { }).define(['window', 'jquery', 'winui', 'form', 'laydate', 'tableTreeDj'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
laydate = layui.laydate, laydate = layui.laydate,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
//任务开始时间 // 任务开始时间
laydate.render({ laydate.render({elem: '#startTime', range: '~'});
elem: '#startTime', //指定元素
range: '~'
});
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: flowableBasePath + 'protask001', url: flowableBasePath + 'protask001',
cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'taskName',//以树形式显示的字段
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers', rowspan: 2}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers', rowspan: 2},
{ field: 'taskName', title: '名称', rowspan: 2, width: 200, templet: function (d) { { field: 'taskName', title: '名称', rowspan: 2, width: 200, templet: function (d) {
...@@ -75,9 +67,13 @@ layui.config({ ...@@ -75,9 +67,13 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'taskName',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'details'){ //详情 if (layEvent === 'details'){ //详情
...@@ -104,7 +100,7 @@ layui.config({ ...@@ -104,7 +100,7 @@ layui.config({
form.render(); form.render();
form.on('submit(formSearch)', function (data) { form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
treeGrid.query("messageTable", {page: {curr: 1}, where: getTableParams()}); loadTable();
} }
return false; return false;
}); });
...@@ -115,12 +111,12 @@ layui.config({ ...@@ -115,12 +111,12 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
var theStartTime = "", theEndTime = ""; var theStartTime = "", theEndTime = "";
if(!isNull($("#startTime").val())){ if (!isNull($("#startTime").val())) {
theStartTime = $("#startTime").val().split('~')[0].trim() + ' 00:00:00'; theStartTime = $("#startTime").val().split('~')[0].trim() + ' 00:00:00';
theEndTime = $("#startTime").val().split('~')[1].trim() + ' 23:59:59'; theEndTime = $("#startTime").val().split('~')[1].trim() + ' 23:59:59';
} }
......
...@@ -6,25 +6,20 @@ layui.config({ ...@@ -6,25 +6,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window', window: 'js/winui.window',
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1635086167509'); authBtn('1635086167509');
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reportBasePath + 'reportmodeltype001', url: reportBasePath + 'reportmodeltype001',
cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'parentId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ cols: [[
{ field: 'name', width: 300, title: '名称'}, { field: 'name', width: 300, title: '名称'},
{ field: 'createName', title: '创建人', align: 'left', width: 100 }, { field: 'createName', title: '创建人', align: 'left', width: 100 },
...@@ -35,11 +30,14 @@ layui.config({ ...@@ -35,11 +30,14 @@ layui.config({
]], ]],
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
}, }
isPage:false }, {
keyId: 'id',
keyPid: 'parentId',
title: 'name',
}); });
treeGrid.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -101,7 +99,7 @@ layui.config({ ...@@ -101,7 +99,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
......
...@@ -6,11 +6,11 @@ layui.config({ ...@@ -6,11 +6,11 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1586314893391'); authBtn('1586314893391');
...@@ -22,17 +22,12 @@ layui.config({ ...@@ -22,17 +22,12 @@ layui.config({
}); });
function initTable(){ function initTable(){
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: schoolBasePath + 'grademation001', url: schoolBasePath + 'grademation001',
cellMinWidth: 100,
where: getTableParams(), where: getTableParams(),
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'gradeName',//以树形式显示的字段
cols: [[ cols: [[
{ field: 'gradeName', width: 150, title: '年级名称'}, { field: 'gradeName', width: 150, title: '年级名称'},
{ field: 'schoolName', width: 200, title: '所属学校'}, { field: 'schoolName', width: 200, title: '所属学校'},
...@@ -40,13 +35,16 @@ layui.config({ ...@@ -40,13 +35,16 @@ layui.config({
{ field:'typeName', width: 120, title: '年级状态'}, { field:'typeName', width: 120, title: '年级状态'},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}); }, {
keyId: 'id',
treeGrid.on('tool(messageTable)', function (obj) { keyPid: 'pId',
title: 'gradeName',
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -130,7 +128,7 @@ layui.config({ ...@@ -130,7 +128,7 @@ layui.config({
} }
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
} }
function getTableParams() { function getTableParams() {
......
...@@ -6,27 +6,20 @@ layui.config({ ...@@ -6,27 +6,20 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1585824465120'); authBtn('1585824465120');
tableTree.render({
treeGrid.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: schoolBasePath + 'schoolmation001', url: schoolBasePath + 'schoolmation001',
cellMinWidth: 100, where: {schoolName: $("#schoolName").val()},
where:{schoolName: $("#schoolName").val()},
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'schoolName',//以树形式显示的字段
cols: [[ cols: [[
{ field: 'schoolName', width: 300, title: '学校名称'}, { field: 'schoolName', width: 300, title: '学校名称'},
{ field: 'schoolDesc', width: 80, title: '学校简介', align: 'center', templet: function (d) { { field: 'schoolDesc', width: 80, title: '学校简介', align: 'center', templet: function (d) {
...@@ -37,13 +30,16 @@ layui.config({ ...@@ -37,13 +30,16 @@ layui.config({
{ field:'powerName', width: 120, align: 'center', title: '数据权限'}, { field:'powerName', width: 120, align: 'center', title: '数据权限'},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}); }, {
keyId: 'id',
treeGrid.on('tool(messageTable)', function (obj) { keyPid: 'pId',
title: 'schoolName',
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -64,7 +60,6 @@ layui.config({ ...@@ -64,7 +60,6 @@ layui.config({
form.render(); form.render();
form.on('submit(formSearch)', function (data) { form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
loadTable(); loadTable();
} }
...@@ -115,7 +110,7 @@ layui.config({ ...@@ -115,7 +110,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where:{schoolName: $("#schoolName").val()}}); tableTree.reload("messageTable", {where:{schoolName: $("#schoolName").val()}});
} }
exports('schoolmationlist', {}); exports('schoolmationlist', {});
......
...@@ -19,7 +19,7 @@ layui.config({ ...@@ -19,7 +19,7 @@ layui.config({
authMenu: $("#authMenu").val(), authMenu: $("#authMenu").val(),
menuId: parent.menuId menuId: parent.menuId
}; };
AjaxPostUtil.request({url: reqBasePath + "sysevemenuauthpoint002", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "writeSysEveMenuAuthPointMation", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
......
...@@ -20,10 +20,12 @@ layui.config({ ...@@ -20,10 +20,12 @@ layui.config({
var params = { var params = {
authMenuName: $("#authMenuName").val(), authMenuName: $("#authMenuName").val(),
authMenu: $("#authMenu").val(), authMenu: $("#authMenu").val(),
rowId: parent.rowId, menuId: parent.menuId,
menuId: parent.menuId parentId: json.bean.parentId,
type: json.bean.type,
id: parent.rowId
}; };
AjaxPostUtil.request({url: reqBasePath + "sysevemenuauthpoint004", params: params, type: 'json', callback: function (json) { AjaxPostUtil.request({url: reqBasePath + "writeSysEveMenuAuthPointMation", params: params, type: 'json', callback: function (json) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}}); }});
...@@ -32,11 +34,9 @@ layui.config({ ...@@ -32,11 +34,9 @@ layui.config({
}); });
}}); }});
// 取消
//取消
$("body").on("click", "#cancle", function() { $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
}); });
\ No newline at end of file
...@@ -7,27 +7,22 @@ layui.config({ ...@@ -7,27 +7,22 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
table = layui.table; tableTree = layui.tableTreeDj;
authBtn('1552958039634'); authBtn('1552958039634');
menuId = parent.menuId; menuId = parent.menuId;
table.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: reqBasePath + 'sysevemenuauthpoint001', url: reqBasePath + 'sysevemenuauthpoint001',
where: getTableParams(), where: getTableParams(),
even: true,
page: true,
limits: getLimits(),
limit: getLimit(),
cols: [[ cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'}, { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers'},
{ field: 'authMenuName', title: '权限点名称', width: 120 }, { field: 'authMenuName', title: '权限点名称', width: 120 },
...@@ -39,9 +34,13 @@ layui.config({ ...@@ -39,9 +34,13 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'parentId',
title: 'authMenuName',
}); });
table.on('tool(messageTable)', function (obj) { tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'del') { //删除 if (layEvent === 'del') { //删除
...@@ -51,15 +50,7 @@ layui.config({ ...@@ -51,15 +50,7 @@ layui.config({
} }
}); });
form.render(); // 删除
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
refreshTable();
}
return false;
});
//删除
function del(data, obj){ function del(data, obj){
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){ layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function(index){
layer.close(index); layer.close(index);
...@@ -70,13 +61,13 @@ layui.config({ ...@@ -70,13 +61,13 @@ layui.config({
}); });
} }
//编辑权限点 // 编辑权限点
function edit(data){ function edit(data){
rowId = data.id; rowId = data.id;
_openNewWindows({ _openNewWindows({
url: "../../tpl/sysevemenuauthpoint/sysevemenuauthpointedit.html", url: "../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointEdit.html",
title: "编辑权限点", title: "编辑权限点",
pageId: "sysevemenuauthpointedit", pageId: "sysEveMenuAuthPointEdit",
area: ['500px', '300px'], area: ['500px', '300px'],
callBack: function(refreshCode){ callBack: function(refreshCode){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
...@@ -84,32 +75,36 @@ layui.config({ ...@@ -84,32 +75,36 @@ layui.config({
}}); }});
} }
//刷新数据 // 新增权限点
$("body").on("click", "#reloadTable", function() {
loadTable();
});
//新增权限点
$("body").on("click", "#addBean", function() { $("body").on("click", "#addBean", function() {
_openNewWindows({ _openNewWindows({
url: "../../tpl/sysevemenuauthpoint/sysevemenuauthpointadd.html", url: "../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.html",
title: "新增权限点", title: "新增权限点",
pageId: "sysevemenuauthpointadd", pageId: "sysEveMenuAuthPointAdd",
area: ['500px', '300px'], area: ['500px', '300px'],
callBack: function(refreshCode){ callBack: function(refreshCode){
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable(); loadTable();
}}); }});
}); });
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
loadTable();
}
return false;
});
// 刷新数据
$("body").on("click", "#reloadTable", function() {
loadTable();
});
function loadTable(){ function loadTable(){
table.reload("messageTable", {where: getTableParams()}); tableTree.reload("messageTable", {where: getTableParams()});
}
function refreshTable(){
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
return { return {
authMenuName: $("#authMenuName").val(), authMenuName: $("#authMenuName").val(),
...@@ -119,5 +114,5 @@ layui.config({ ...@@ -119,5 +114,5 @@ layui.config({
}; };
} }
exports('sysevemenuauthpointlist', {}); exports('sysEveMenuAuthPointList', {});
}); });
...@@ -127,17 +127,8 @@ layui.config({ ...@@ -127,17 +127,8 @@ layui.config({
details(data); details(data);
} }
}); });
} }
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
});
/********* tree 处理 start *************/ /********* tree 处理 start *************/
var trees = {}; var trees = {};
var treeDoms = $("ul.fsTree"); var treeDoms = $("ul.fsTree");
...@@ -264,29 +255,37 @@ layui.config({ ...@@ -264,29 +255,37 @@ layui.config({
function authpoint(data){ function authpoint(data){
menuId = data.id; menuId = data.id;
_openNewWindows({ _openNewWindows({
url: "../../tpl/sysevemenuauthpoint/sysevemenuauthpointlist.html", url: "../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointList.html",
title: systemLanguage["com.skyeye.authorityPointPage"][languageType], title: systemLanguage["com.skyeye.authorityPointPage"][languageType],
pageId: "sysevemenuauthpoint", pageId: "sysEveMenuAuthPointList",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function(refreshCode){ callBack: function(refreshCode){
loadTable(); loadTable();
}}); }});
} }
form.render();
form.on('submit(formSearch)', function (data) {
if (winui.verifyForm(data.elem)) {
table.reload("messageTable", {page: {curr: 1}, where: getTableParams()});
}
return false;
});
function loadTable(){ function loadTable(){
table.reload("messageTable", {where: getTableParams()}); table.reload("messageTable", {where: getTableParams()});
} }
function getTableParams(){ function getTableParams(){
return { return {
menuName:$("#menuName").val(), menuName: $("#menuName").val(),
menuUrl:$("#menuUrl").val(), menuUrl: $("#menuUrl").val(),
parentId:parentId, parentId: parentId,
menuLevel:$("#menuLevel").val(), menuLevel: $("#menuLevel").val(),
desktopId:$("#desktop").val(), desktopId: $("#desktop").val(),
isShare:$("#isShare").val(), isShare: $("#isShare").val(),
parentMenuName:$("#parentMenuName").val() parentMenuName: $("#parentMenuName").val()
}; };
} }
exports('sysevemenulist', {}); exports('sysevemenulist', {});
......
...@@ -6,11 +6,11 @@ layui.config({ ...@@ -6,11 +6,11 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
authBtn('1552962225700'); authBtn('1552962225700');
...@@ -21,18 +21,13 @@ layui.config({ ...@@ -21,18 +21,13 @@ layui.config({
} }
return false; return false;
}); });
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'sysevewintype001', url: reqBasePath + 'sysevewintype001',
cellMinWidth: 100,
where: {typeName: $("#typeName").val(), state: $("#state").val()}, where: {typeName: $("#typeName").val(), state: $("#state").val()},
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ cols: [[
{ field:'name', width:300, title: '分类名称'}, { field:'name', width:300, title: '分类名称'},
{ field:'stateName', width:100, title: '状态'}, { field:'stateName', width:100, title: '状态'},
...@@ -40,13 +35,16 @@ layui.config({ ...@@ -40,13 +35,16 @@ layui.config({
{ field:'orderBy', width:100, title: '排序'}, { field:'orderBy', width:100, title: '排序'},
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'} { title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 240, toolbar: '#tableBar'}
]], ]],
isPage:false,
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}); }, {
keyId: 'id',
treeGrid.on('tool(messageTable)', function (obj) { keyPid: 'pId',
title: 'name',
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data; var data = obj.data;
var layEvent = obj.event; var layEvent = obj.event;
if (layEvent === 'edit') { //编辑 if (layEvent === 'edit') { //编辑
...@@ -148,7 +146,7 @@ layui.config({ ...@@ -148,7 +146,7 @@ layui.config({
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where:{typeName: $("#typeName").val(), state: $("#state").val()}}); tableTree.reload("messageTable", {where:{typeName: $("#typeName").val(), state: $("#state").val()}});
} }
exports('syswintypelist', {}); exports('syswintypelist', {});
......
...@@ -4,12 +4,11 @@ layui.config({ ...@@ -4,12 +4,11 @@ layui.config({
version: skyeyeVersion version: skyeyeVersion
}).extend({ }).extend({
window: 'js/winui.window' window: 'js/winui.window'
}).define(['window', 'treeGrid', 'jquery', 'winui', 'form'], function (exports) { }).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor(); winui.renderColor();
var $ = layui.$, var $ = layui.$,
form = layui.form, form = layui.form,
treeGrid = layui.treeGrid; tableTree = layui.tableTreeDj;
form.render(); form.render();
form.on('submit(formSearch)', function (data) { form.on('submit(formSearch)', function (data) {
...@@ -18,18 +17,13 @@ layui.config({ ...@@ -18,18 +17,13 @@ layui.config({
} }
return false; return false;
}); });
treeGrid.render({ tableTree.render({
id: 'messageTable', id: 'messageTable',
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
idField: 'id',
url: reqBasePath + 'systarea001', url: reqBasePath + 'systarea001',
cellMinWidth: 100,
where: {addressName: $("#addressName").val()}, where: {addressName: $("#addressName").val()},
treeId: 'id',//树形id字段名称
treeUpId: 'pId',//树形父id字段名称
treeShowName: 'name',//以树形式显示的字段
cols: [[ cols: [[
{field:'name', width:300, title: '区域名称'}, {field:'name', width:300, title: '区域名称'},
{field:'id', width:100, title: 'id'}, {field:'id', width:100, title: 'id'},
...@@ -39,15 +33,19 @@ layui.config({ ...@@ -39,15 +33,19 @@ layui.config({
done: function(){ done: function(){
matchingLanguage(); matchingLanguage();
} }
}, {
keyId: 'id',
keyPid: 'pId',
title: 'name',
}); });
//刷新数据 // 刷新数据
$("body").on("click", "#reloadTable", function() { $("body").on("click", "#reloadTable", function() {
loadTable(); loadTable();
}); });
function loadTable(){ function loadTable(){
treeGrid.query("messageTable", {where:{addressName: $("#addressName").val()}}); tableTree.reload("messageTable", {where:{addressName: $("#addressName").val()}});
} }
exports('tarea', {}); exports('tarea', {});
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<script src="../../assets/lib/layui/layui.js"></script> <script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script> <script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript"> <script type="text/javascript">
layui.config({base: '../../js/sysevemenuauthpoint/'}).use('sysevemenuauthpointadd'); layui.config({base: '../../js/sysEveMenuAuthPoint/'}).use('sysEveMenuAuthPointAdd');
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<script src="../../assets/lib/layui/layui.js"></script> <script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script> <script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript"> <script type="text/javascript">
layui.config({base: '../../js/sysevemenuauthpoint/'}).use('sysevemenuauthpointedit'); layui.config({base: '../../js/sysEveMenuAuthPoint/'}).use('sysEveMenuAuthPointEdit');
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div style="margin:auto 10px;"> <div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table> <table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar"> <script type="text/html" id="tableBar">
{{# if(auth('1552957965516')){ }} {{# if(auth('1552958039634')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a> <a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }} {{# } }}
{{# if(d.useNum == 0 && auth('1552958005402')){ }} {{# if(d.useNum == 0 && auth('1552958005402')){ }}
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<script src="../../assets/lib/layui/layui.js"></script> <script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script> <script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript"> <script type="text/javascript">
layui.config({base: '../../js/sysevemenuauthpoint/'}).use('sysevemenuauthpointlist'); layui.config({base: '../../js/sysEveMenuAuthPoint/'}).use('sysEveMenuAuthPointList');
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -273,7 +273,7 @@ function isNull(str){ ...@@ -273,7 +273,7 @@ function isNull(str){
zclip: 'jquery.zclip',//复制插件 zclip: 'jquery.zclip',//复制插件
swiper: 'swiper/swiper.min',//滚动插件 swiper: 'swiper/swiper.min',//滚动插件
tableSelect: 'tableSelect',//tableSelect 下拉表格选择器 tableSelect: 'tableSelect',//tableSelect 下拉表格选择器
treeGrid: 'treetable/treeGrid',//树表格 tableTreeDj: 'treetable/tableTreeDj',//树表格
g6: 'flowchart/g6.min',//流程图 g6: 'flowchart/g6.min',//流程图
g6Plugins: 'flowchart/g6-plugins.min',//流程图 g6Plugins: 'flowchart/g6-plugins.min',//流程图
dtree: 'dtree/dtree',// dtree: 'dtree/dtree',//
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册