diff --git a/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleAdd.js b/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleAdd.js deleted file mode 100644 index 3ae2044850fd4b5f43b2a6d634893ef4f267263a..0000000000000000000000000000000000000000 --- a/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleAdd.js +++ /dev/null @@ -1,38 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'textool', 'form'], function (exports) { - winui.renderColor(); - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - form = layui.form, - textool = layui.textool; - - textool.init({eleId: 'roleDesc', maxlength: 250}); - - matchingLanguage(); - form.render(); - form.on('submit(formAddBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - name: $("#name").val(), - remark: $("#remark").val() - }; - - AjaxPostUtil.request({url: reqBasePath + "writeSysRole", 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 diff --git a/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleEdit.js b/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleEdit.js deleted file mode 100644 index 641e6c43d583b527688ec1e97728394c965c4684..0000000000000000000000000000000000000000 --- a/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleEdit.js +++ /dev/null @@ -1,43 +0,0 @@ - -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'textool', 'form'], function (exports) { - winui.renderColor(); - var index = parent.layer.getFrameIndex(window.name); - var $ = layui.$, - form = layui.form, - textool = layui.textool; - - AjaxPostUtil.request({url: reqBasePath + "querySysRoleById", params: {id: parent.rowId}, type: 'json', method: "GET", callback: function (json) { - $("#name").val(json.bean.name); - $("#remark").val(json.bean.remark); - textool.init({eleId: 'roleDesc', maxlength: 250}); - }}); - - matchingLanguage(); - form.render(); - form.on('submit(formEditBean)', function (data) { - if (winui.verifyForm(data.elem)) { - var params = { - name: $("#name").val(), - remark: $("#remark").val(), - id: parent.rowId - }; - - AjaxPostUtil.request({url: reqBasePath + "writeSysRole", 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 diff --git a/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleList.js b/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleList.js deleted file mode 100644 index e253e73091ba00590201f1b8414443f2cb200e4b..0000000000000000000000000000000000000000 --- a/userauth/src/main/resources/template/js/sysEveRole/sysEveRoleList.js +++ /dev/null @@ -1,136 +0,0 @@ - -var rowId = ""; -layui.config({ - base: basePath, - version: skyeyeVersion -}).extend({ - window: 'js/winui.window' -}).define(['window', 'table', 'jquery', 'winui', 'form'], function (exports) { - winui.renderColor(); - var $ = layui.$, - form = layui.form, - table = layui.table; - - authBtn('1552954959607'); - - table.render({ - id: 'messageTable', - elem: '#messageTable', - method: 'post', - url: reqBasePath + 'sys013', - where: getTableParams(), - even: true, - page: true, - limits: getLimits(), - limit: getLimit(), - cols: [[ - { title: systemLanguage["com.skyeye.serialNumber"][languageType], type: 'numbers' }, - { field: 'name', title: '角色名称', width: 120 }, - { field: 'remark', title: '角色描述', width: 520 }, - { 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: 300, toolbar: '#tableBar' } - ]], - done: function(json) { - matchingLanguage(); - initTableSearchUtil.initAdvancedSearch(this, json.searchFilter, form, "请输入角色名称", function () { - table.reloadData("messageTable", {page: {curr: 1}, where: getTableParams()}); - }); - } - }); - - table.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 === 'appmenu') { // 手机端菜单授权 - appmenu(data); - } else if (layEvent === 'pcMenu') { // PC端菜单授权 - pcMenu(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 + "deleteRoleById", params: {id: data.id}, type: 'json', method: "DELETE", callback: function (json) { - winui.window.msg(systemLanguage["com.skyeye.deleteOperationSuccessMsg"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - }); - } - - // 编辑 - function edit(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/sysEveRole/sysEveRoleEdit.html", - title: "编辑角色", - pageId: "sysEveRoleEdit", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - } - - // 手机端菜单授权 - function appmenu(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/sysEveRole/sysEveRoleAppMenu.html", - title: "手机端菜单授权", - pageId: "sysEveRoleAppMenu", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - }}); - } - - // PC端菜单授权 - function pcMenu(data) { - rowId = data.id; - _openNewWindows({ - url: "../../tpl/sysEveRole/sysEveRolePCMenu.html", - title: "PC端菜单授权", - pageId: "sysEveRolePCMenu", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - }}); - } - - // 新增角色 - $("body").on("click", "#addBean", function() { - _openNewWindows({ - url: "../../tpl/sysEveRole/sysEveRoleAdd.html", - title: "新增角色", - pageId: "sysEveRoleAdd", - area: ['90vw', '90vh'], - callBack: function (refreshCode) { - winui.window.msg(systemLanguage["com.skyeye.successfulOperation"][languageType], {icon: 1, time: 2000}); - loadTable(); - }}); - }); - - form.render(); - $("body").on("click", "#reloadTable", function() { - loadTable(); - }); - - function loadTable() { - table.reloadData("messageTable", {where: getTableParams()}); - } - - function getTableParams() { - return $.extend(true, {}, initTableSearchUtil.getSearchValue("messageTable")); - } - - exports('sysEveRoleList', {}); -}); diff --git a/userauth/src/main/resources/template/tpl/sysEveRole/sysEveRoleAdd.html b/userauth/src/main/resources/template/tpl/sysEveRole/sysEveRoleAdd.html deleted file mode 100644 index eb70f23c4966a7cc7bc6fbd50176561022bbecfa..0000000000000000000000000000000000000000 --- a/userauth/src/main/resources/template/tpl/sysEveRole/sysEveRoleAdd.html +++ /dev/null @@ -1,38 +0,0 @@ - - -
- -