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

feat: 菜单权限点重构

上级 af0b0277
var rowId = "";
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -46,7 +44,7 @@ layui.config({
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 320, toolbar: '#tableBar'}
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
......@@ -134,9 +132,8 @@ layui.config({
// 权限点
function authpoint(data) {
menuId = data.id;
_openNewWindows({
url: "../../tpl/appWorkPageAuthPoint/appWorkPageAuthPointList.html",
url: '../../tpl/authPoint/authPointList.html?objectId=' + data.id + '&objectKey=' + data.serviceClassName,
title: "权限点",
pageId: "appWorkPageAuthPointList",
area: ['90vw', '90vh'],
......
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
// 所属父级节点类型
var parentType = parent.parentType;
// 所属父级节点id
var parentId = parent.parentId;
// 所属菜单id
var menuId = parent.menuId;
if (isNull(parentType)) {
// 如果为空,则需要添加权限点
$("#showForm").html($("#authPointTemplate").html());
} else if (parentType == 1) {
// 如果为1,则需要添加数据权限分组
$("#showForm").html($("#groupTemplate").html());
} else if (parentType == 2) {
// 如果为2,写需要添加数据权限
$("#showForm").html($("#dataAuthPointTemplate").html());
}
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
title: $("#authMenuName").val(),
authMenu: $("#authMenu").val(),
menuId: menuId,
parentId: parentId
};
if (isNull(parentType)) {
// 如果为空,则需要添加权限点
params.type = 1;
} else if (parentType == 1) {
// 如果为1,则需要添加数据权限分组
params.type = 2;
} else if (parentType == 2) {
// 如果为2,写需要添加数据权限
params.type = 3;
}
AjaxPostUtil.request({url: reqBasePath + "writeAppWorkPageAuthPointMation", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
// 取消
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
AjaxPostUtil.request({url: reqBasePath + "appworkpageauthpoint003", params: {rowId: parent.rowId}, type: 'json', method: "GET", callback: function (json) {
var type = json.bean.type;
if (type == 1) {
// 如果为1,则需要编辑权限点
$("#showForm").html($("#authPointTemplate").html());
} else if (type == 2) {
// 如果为2,则需要编辑数据权限分组
$("#showForm").html($("#groupTemplate").html());
} else if (type == 3) {
// 如果为3,写需要编辑数据权限
$("#showForm").html($("#dataAuthPointTemplate").html());
}
$("#authMenuName").val(json.bean.authMenuName);
$("#authMenu").val(json.bean.authMenu);
matchingLanguage();
form.render();
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
title: $("#authMenuName").val(),
authMenu: $("#authMenu").val(),
menuId: parent.menuId,
parentId: json.bean.parentId,
type: type,
id: parent.rowId
};
AjaxPostUtil.request({url: reqBasePath + "writeAppWorkPageAuthPointMation", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
}});
// 取消
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
var menuId = '';
var rowId = "";
var parentId = "";
var parentType = "";
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'tableTreeDj', 'jquery', 'winui', 'form'], function (exports) {
winui.renderColor();
var $ = layui.$,
form = layui.form,
tableTree = layui.tableTreeDj;
authBtn('1563605451628');
menuId = parent.menuId;
tableTree.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'appworkpageauthpoint001',
where: getTableParams(),
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'authMenuName', title: '权限点名称', width: 120 },
{ field: 'authMenu', title: '接口url', width: 200 },
{ field: 'menuNum', title: '权限点编号', align: 'center', width: 120 },
{ field: 'useNum', title: '使用数量', align: 'center', width: 80 },
{ field: 'typeName', title: '类型', align: 'center', width: 80 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
{ field: 'lastUpdateName', title: systemLanguage["com.skyeye.lastUpdateName"][languageType], align: 'left', width: 120 },
{ field: 'lastUpdateTime', title: systemLanguage["com.skyeye.lastUpdateTime"][languageType], align: 'center', width: 150 },
{ title: systemLanguage["com.skyeye.operation"][languageType], fixed: 'right', align: 'center', width: 200, toolbar: '#tableBar'}
]],
done: function(json) {
matchingLanguage();
}
}, {
keyId: 'id',
keyPid: 'parentId',
title: 'authMenuName',
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
var data = obj.data;
var layEvent = obj.event;
if (layEvent === 'del') { //删除
del(data, obj);
} else if (layEvent === 'edit') { //编辑
edit(data);
} else if (layEvent === 'addChild') { // 新增分组/新增数据权限
addPage(data);
}
});
// 删除
function del(data, obj) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "appworkpageauthpoint005", params: {rowId: data.id}, type: 'json', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
});
}
// 编辑权限点
function edit(data) {
rowId = data.id;
var title = '';
if (data.type == 1) {
title = '编辑权限点';
} else if (data.type == 2) {
title = '编辑分组';
} else if (data.type == 3) {
title = '编辑数据权限';
}
_openNewWindows({
url: "../../tpl/appWorkPageAuthPoint/appWorkPageAuthPointEdit.html",
title: title,
pageId: "appWorkPageAuthPointEdit",
area: ['500px', '300px'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
loadTable();
}});
}
// 新增权限点
$("body").on("click", "#addBean", function() {
addPage(null);
});
function addPage(data) {
var title = '新增权限点';
parentId = "0";
parentType = "";
if (!isNull(data)) {
parentId = data.id;
parentType = data.type;
if (parentType == 1) {
// 如果是权限点,则新增分组
title = '新增分组';
} else if (parentType == 2) {
// 如果是分组,则新增数据权限
title = '新增数据权限';
}
}
_openNewWindows({
url: "../../tpl/appWorkPageAuthPoint/appWorkPageAuthPointAdd.html",
title: title,
pageId: "appWorkPageAuthPointAdd",
area: ['500px', '300px'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
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() {
tableTree.reload("messageTable", {where: getTableParams()});
}
function getTableParams() {
return {
authMenuName: $("#authMenuName").val(),
authMenu: $("#authMenu").val(),
menuNum: $("#menuNum").val(),
menuId: menuId
};
}
exports('appWorkPageAuthPointList', {});
});
var menuId = '';
var objectKey = "";
var objectId = "";
var rowId = "";
......@@ -16,20 +17,24 @@ layui.config({
var $ = layui.$,
form = layui.form,
tableTree = layui.tableTreeDj;
authBtn('1552958039634');
menuId = parent.menuId;
objectKey = GetUrlParam("objectKey");
objectId = GetUrlParam("objectId");
if (isNull(objectKey) || isNull(objectId)) {
winui.window.msg("请传入适用对象信息", {icon: 2, time: 2000});
return false;
}
tableTree.render({
id: 'messageTable',
elem: '#messageTable',
method: 'post',
url: reqBasePath + 'sysevemenuauthpoint001',
url: reqBasePath + 'queryAuthPointList',
where: getTableParams(),
limit: 10000,
cols: [[
{ title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' },
{ field: 'name', title: '权限点名称', width: 150 },
{ field: 'name', title: '权限点名称', width: 250 },
{ field: 'authMenu', title: '接口url', width: 300 },
{ field: 'orderBy', title: '排序', align: 'center', width: 80 },
{ field: 'menuNum', title: '权限点编号', align: 'center', width: 120 },
......@@ -52,6 +57,7 @@ layui.config({
keyId: 'id',
keyPid: 'parentId',
title: 'name',
defaultShow: true
});
tableTree.getTable().on('tool(messageTable)', function (obj) {
......@@ -70,7 +76,7 @@ layui.config({
function del(data, obj) {
layer.confirm(systemLanguage["com.skyeye.deleteOperationMsg"][languageType], {icon: 3, title: systemLanguage["com.skyeye.deleteOperation"][languageType]}, function (index) {
layer.close(index);
AjaxPostUtil.request({url: reqBasePath + "sysevemenuauthpoint005", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) {
AjaxPostUtil.request({url: reqBasePath + "deleteAuthPointById", params: {id: data.id}, type: 'json', method: 'DELETE', callback: function (json) {
winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000});
loadTable();
}});
......@@ -79,19 +85,14 @@ layui.config({
// 编辑权限点
function edit(data) {
rowId = data.id;
var title = '';
if (data.type == 1) {
title = '编辑权限点';
} else if (data.type == 2) {
title = '编辑分组';
} else if (data.type == 3) {
title = '编辑数据权限';
var url = '../../tpl/authPoint/authPointWrite.html?objectId=' + objectId + '&objectKey=' + objectKey;
if (!isNull(data)) {
url += '&parentType=' + data.type + '&id=' + data.id
}
_openNewWindows({
url: "../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointEdit.html",
title: title,
pageId: "sysEveMenuAuthPointEdit",
url: url,
title: systemLanguage["com.skyeye.editPageTitle"][languageType],
pageId: "authPointEdit",
area: ['500px', '300px'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -105,24 +106,14 @@ layui.config({
});
function addPage(data) {
var title = '新增权限点';
parentId = "0";
parentType = "";
var url = '../../tpl/authPoint/authPointWrite.html?objectId=' + objectId + '&objectKey=' + objectKey;
if (!isNull(data)) {
parentId = data.id;
parentType = data.type;
if (parentType == 1) {
// 如果是权限点,则新增分组
title = '新增分组';
} else if (parentType == 2) {
// 如果是分组,则新增数据权限
title = '新增数据权限';
}
url += '&parentType=' + data.type + '&parentId=' + data.id
}
_openNewWindows({
url: "../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.html",
title: title,
pageId: "sysEveMenuAuthPointAdd",
url: url,
title: systemLanguage["com.skyeye.addPageTitle"][languageType],
pageId: "authPointAdd",
area: ['500px', '300px'],
callBack: function (refreshCode) {
winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000});
......@@ -140,8 +131,8 @@ layui.config({
}
function getTableParams() {
return $.extend(true, {objectId: menuId}, initTableSearchUtil.getSearchValue("messageTable"));
return $.extend(true, {objectKey: objectKey, objectId: objectId}, initTableSearchUtil.getSearchValue("messageTable"));
}
exports('sysEveMenuAuthPointList', {});
exports('authPointList', {});
});
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
var objectKey = GetUrlParam("objectKey");
var objectId = GetUrlParam("objectId");
var parentId = GetUrlParam("parentId");
var parentType = GetUrlParam("parentType");
var id = GetUrlParam("id");
var type = null;
if (!isNull(id)) {
AjaxPostUtil.request({url: reqBasePath + "queryAuthPointById", params: {id: id}, type: 'json', method: 'GET', callback: function (json) {
type = json.bean.type;
parentId = json.bean.parentId;
if (type == 1) {
// 如果为1,则需要编辑权限点
$("#showForm").html($("#authPointTemplate").html());
} else if (type == 2) {
// 如果为2,则需要编辑数据权限分组
$("#showForm").html($("#groupTemplate").html());
} else if (type == 3) {
// 如果为3,写需要编辑数据权限
$("#showForm").html($("#dataAuthPointTemplate").html());
$("#orderBy").val(json.bean.orderBy);
}
$("#name").val(json.bean.name);
$("#authMenu").val(json.bean.authMenu);
matchingLanguage();
form.render();
}});
} else {
if (isNull(parentType)) {
// 如果为空,则需要添加权限点
parentId = "0";
type = 1;
$("#showForm").html($("#authPointTemplate").html());
} else if (parentType == 1) {
// 如果为1,则需要添加数据权限分组
type = 2;
$("#showForm").html($("#groupTemplate").html());
} else if (parentType == 2) {
// 如果为2,写需要添加数据权限
type = 3;
$("#showForm").html($("#dataAuthPointTemplate").html());
}
matchingLanguage();
form.render();
}
form.on('submit(formWriteBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
authMenu: $("#authMenu").val(),
parentId: parentId,
objectId: objectId,
objectKey: objectKey,
orderBy: null,
type: type,
id: isNull(id) ? '' : id
};
if (params.type == 3) {
params.orderBy = $("#orderBy").val()
}
AjaxPostUtil.request({url: reqBasePath + "writeAuthPoint", params: params, type: 'json', method: 'POST', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
// 取消
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
var rowId = "";
var menuId = '';
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -176,9 +174,8 @@ layui.config({
// 权限点
function authpoint(data) {
menuId = data.id;
_openNewWindows({
url: "../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointList.html",
url: '../../tpl/authPoint/authPointList.html?objectId=' + data.id + '&objectKey=' + data.serviceClassName,
title: systemLanguage["com.skyeye.authorityPointPage"][languageType],
pageId: "sysEveMenuAuthPointList",
area: ['90vw', '90vh'],
......
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
// 所属父级节点类型
var parentType = parent.parentType;
// 所属父级节点id
var parentId = parent.parentId;
// 所属菜单id
var menuId = parent.menuId;
if (isNull(parentType)) {
// 如果为空,则需要添加权限点
$("#showForm").html($("#authPointTemplate").html());
} else if (parentType == 1) {
// 如果为1,则需要添加数据权限分组
$("#showForm").html($("#groupTemplate").html());
} else if (parentType == 2) {
// 如果为2,写需要添加数据权限
$("#showForm").html($("#dataAuthPointTemplate").html());
}
matchingLanguage();
form.render();
form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
authMenu: $("#authMenu").val(),
objectId: menuId,
parentId: parentId
};
if (isNull(parentType)) {
// 如果为空,则需要添加权限点
params.type = 1;
} else if (parentType == 1) {
// 如果为1,则需要添加数据权限分组
params.type = 2;
} else if (parentType == 2) {
// 如果为2,写需要添加数据权限
params.type = 3;
}
params["orderBy"] = params.type == 3 ? $("#orderBy").val() : null;
AjaxPostUtil.request({url: reqBasePath + "writeSysEveMenuAuthPointMation", params: params, type: 'json', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
// 取消
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
layui.config({
base: basePath,
version: skyeyeVersion
}).extend({
window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
form = layui.form;
AjaxPostUtil.request({url: reqBasePath + "sysevemenuauthpoint003", params: {id: parent.rowId}, type: 'json', method: 'GET', callback: function (json) {
var type = json.bean.type;
if (type == 1) {
// 如果为1,则需要编辑权限点
$("#showForm").html($("#authPointTemplate").html());
} else if (type == 2) {
// 如果为2,则需要编辑数据权限分组
$("#showForm").html($("#groupTemplate").html());
} else if (type == 3) {
// 如果为3,写需要编辑数据权限
$("#showForm").html($("#dataAuthPointTemplate").html());
$("#orderBy").val(json.bean.orderBy);
}
$("#name").val(json.bean.name);
$("#authMenu").val(json.bean.authMenu);
matchingLanguage();
form.render();
form.on('submit(formEditBean)', function (data) {
if (winui.verifyForm(data.elem)) {
var params = {
name: $("#name").val(),
authMenu: $("#authMenu").val(),
objectId: parent.menuId,
parentId: json.bean.parentId,
orderBy: type == 3 ? $("#orderBy").val() : null,
type: type,
id: parent.rowId
};
AjaxPostUtil.request({url: reqBasePath + "writeSysEveMenuAuthPointMation", params: params, type: 'json', method: 'POST', callback: function (json) {
parent.layer.close(index);
parent.refreshCode = '0';
}});
}
return false;
});
}});
// 取消
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
});
});
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto; padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<!-- 新增权限点 -->
<script type="text/x-handlebars-template" id="authPointTemplate">
<div class="layui-form-item">
<label class="layui-form-label">权限点名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenuName" name="authMenuName" win-verify="required" placeholder="请输入权限点名称" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">接口url<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入接口url" class="layui-input" maxlength="100"/>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<!-- 新增分组 -->
<script type="text/x-handlebars-template" id="groupTemplate">
<div class="layui-form-item">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenuName" name="authMenuName" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">分组名称例如类型</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标识<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入标识" class="layui-input" maxlength="100"/>
<div class="layui-form-mid layui-word-aux">分组标识切记不可重复重复则按同一组计算例如state</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<!-- 新增数据权限 -->
<script type="text/x-handlebars-template" id="dataAuthPointTemplate">
<div class="layui-form-item">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenuName" name="authMenuName" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">数据权限名称例如我创建的</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">表达式<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入表达式" class="layui-input" maxlength="100"/>
<div class="layui-form-mid layui-word-aux">数据权限表达式例如type == myCreate</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/appWorkPageAuthPoint/'}).use('appWorkPageAuthPointAdd');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto; padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<!-- 新增权限点 -->
<script type="text/x-handlebars-template" id="authPointTemplate">
<div class="layui-form-item">
<label class="layui-form-label">权限点名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenuName" name="authMenuName" win-verify="required" placeholder="请输入权限点名称" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">接口url<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入接口url" class="layui-input" maxlength="100"/>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<!-- 新增分组 -->
<script type="text/x-handlebars-template" id="groupTemplate">
<div class="layui-form-item">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenuName" name="authMenuName" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">分组名称例如类型</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标识<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入标识" class="layui-input" maxlength="100"/>
<div class="layui-form-mid layui-word-aux">分组标识切记不可重复重复则按同一组计算例如state</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<!-- 新增数据权限 -->
<script type="text/x-handlebars-template" id="dataAuthPointTemplate">
<div class="layui-form-item">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenuName" name="authMenuName" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">数据权限名称例如我创建的</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">表达式<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入表达式" class="layui-input" maxlength="100"/>
<div class="layui-form-mid layui-word-aux">数据权限表达式例如type == myCreate</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/appWorkPageAuthPoint/'}).use('appWorkPageAuthPointEdit');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding:10px;">
<form class="layui-form layui-form-pane" action="" autocomplete="off">
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">权限点名称</label>
<div class="layui-input-inline">
<input type="text" id="authMenuName" name="authMenuName" placeholder="请输入权限点名称" class="layui-input" />
</div>
<label class="layui-form-label">接口url</label>
<div class="layui-input-inline">
<input type="text" id="authMenu" name="authMenu" placeholder="请输入接口url" class="layui-input" />
</div>
<label class="layui-form-label">权限点编号</label>
<div class="layui-input-inline">
<input type="text" id="menuNum" name="menuNum" placeholder="请输入权限点编号" class="layui-input" />
</div>
<button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
</div>
</div>
</form>
</div>
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn" auth="1563605451628"><i class="fa fa-plus" aria-hidden="true"></i>新增权限点</button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1552958039634')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1552958039634') && d.type == 1){ }}
<a class="layui-btn layui-btn-xs" lay-event="addChild">新增分组</a>
{{# } }}
{{# if(auth('1552958039634') && d.type == 2){ }}
<a class="layui-btn layui-btn-xs" lay-event="addChild">新增数据权限</a>
{{# } }}
{{# if(d.useNum == 0 && auth('1563605489864') && d.childNum == 0){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/appWorkPageAuthPoint/'}).use('appWorkPageAuthPointList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -10,22 +10,20 @@
<div class="winui-toolbar">
<div class="winui-tool">
<button id="reloadTable" class="winui-toolbtn search-table-btn-right"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1552958039634"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
<button id="addBean" class="winui-toolbtn search-table-btn-right" auth="1552958039634"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language>权限点</button>
</div>
</div>
<div style="margin:auto 10px;">
<table id="messageTable" lay-filter="messageTable"></table>
<script type="text/html" id="tableBar">
{{# if(auth('1552958039634')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1552958039634') && d.type == 1){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# if(d.type == 1) { }}
<a class="layui-btn layui-btn-xs" lay-event="addChild">新增分组</a>
{{# } }}
{{# if(auth('1552958039634') && d.type == 2){ }}
{{# if(d.type == 2) { }}
<a class="layui-btn layui-btn-xs" lay-event="addChild">新增数据权限</a>
{{# } }}
{{# if(d.useNum == 0 && auth('1552958005402') && d.childNum == 0){ }}
{{# if(d.useNum == 0 && d.childNum == 0){ }}
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
......@@ -33,7 +31,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysEveMenuAuthPoint/'}).use('sysEveMenuAuthPointList');
layui.config({base: '../../js/authPoint/'}).use('authPointList');
</script>
</body>
</html>
\ No newline at end of file
......@@ -30,7 +30,7 @@
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
<button class="winui-btn" lay-submit lay-filter="formWriteBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
......@@ -54,7 +54,7 @@
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
<button class="winui-btn" lay-submit lay-filter="formWriteBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
......@@ -85,7 +85,7 @@
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
<button class="winui-btn" lay-submit lay-filter="formWriteBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
......@@ -93,7 +93,7 @@
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysEveMenuAuthPoint/'}).use('sysEveMenuAuthPointEdit');
layui.config({base: '../../js/authPoint/'}).use('authPointWrite');
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="margin:0 auto; padding:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
</form>
</div>
<!-- 新增权限点 -->
<script type="text/x-handlebars-template" id="authPointTemplate">
<div class="layui-form-item">
<label class="layui-form-label">权限点名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="name" name="name" win-verify="required" placeholder="请输入权限点名称" class="layui-input" maxlength="50"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">接口url<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入接口url" class="layui-input" maxlength="100"/>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<!-- 新增分组 -->
<script type="text/x-handlebars-template" id="groupTemplate">
<div class="layui-form-item">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="name" name="name" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">分组名称例如类型</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">标识<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入标识" class="layui-input" maxlength="100"/>
<div class="layui-form-mid layui-word-aux">分组标识切记不可重复重复则按同一组计算例如state</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<!-- 新增数据权限 -->
<script type="text/x-handlebars-template" id="dataAuthPointTemplate">
<div class="layui-form-item">
<label class="layui-form-label">名称<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="name" name="name" win-verify="required" placeholder="请输入名称" class="layui-input" maxlength="50"/>
<div class="layui-form-mid layui-word-aux">数据权限名称例如我创建的</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">表达式<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="authMenu" name="authMenu" win-verify="required" placeholder="请输入表达式" class="layui-input" maxlength="100"/>
<div class="layui-form-mid layui-word-aux">数据权限表达式例如type == myCreate</div>
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
<button class="winui-btn" lay-submit lay-filter="formAddBean"><language showName="com.skyeye.save"></language></button>
</div>
</div>
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/sysEveMenuAuthPoint/'}).use('sysEveMenuAuthPointAdd');
</script>
</body>
</html>
\ No newline at end of file
......@@ -16,8 +16,8 @@
"registrationType": {"name": "户口类型", "className": "skyeye-pro#com.skyeye.common.enumeration.RegistrationType"},
"applicableObjectsType": {"name": "适用对象类型", "className": "skyeye-pro#com.skyeye.common.enumeration.ApplicableObjectsType"},
"menuType": {"name": "APP菜单类型", "className": "skyeye-pro#com.skyeye.menuapp.classenum.MenuType"},
"urlType": {"name": "APP菜单URL类型", "className": "skyeye-pro#com.skyeye.menuapp.classenum.UrlType"},
"menuType": {"name": "APP菜单类型", "className": "skyeye-pro#com.skyeye.menu.classenum.MenuType"},
"urlType": {"name": "APP菜单URL类型", "className": "skyeye-pro#com.skyeye.menu.classenum.UrlType"},
"bossInterviewArrangementState": {"name": "面试安排状态", "className": "skyeye-boss#com.skyeye.arrangement.classenum.ArrangementState"},
"bossInterviewArrangementState1": {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册