diff --git a/css/common.css b/css/common.css index f452500..a3205a3 100644 --- a/css/common.css +++ b/css/common.css @@ -3,13 +3,8 @@ [v-cloak]{display:none!important} .ok-body{padding:10px} -/*面包屑导航*/ -.ok-body-breadcrumb{position:relative;line-height:39px;height:32px;border-bottom:1px solid #e5e5e5} -.ok-body-breadcrumb .layui-btn{line-height:2.4em;margin-top:3px;float:right} -.ok-body-breadcrumb .layui-btn .layui-icon{line-height:32px} - /*多条件搜索框*/ -.ok-search{margin-top:15px} +/*.ok-search{margin-top:15px}*/ .ok-search .layui-input{width:190px;padding-left:10px;margin-left:10px;float:left} .ok-search .layui-input:first-child{margin-left:0} .ok-search .layui-btn{margin-left:10px} diff --git a/lib/layui/lay/okmodules/okLayer.js b/lib/layui/lay/okmodules/okLayer.js index 68f4f8e..a439d03 100644 --- a/lib/layui/lay/okmodules/okLayer.js +++ b/lib/layui/lay/okmodules/okLayer.js @@ -37,44 +37,42 @@ layui.define(["layer"], function (exports) { /** * msg()函数二次封装 */ - msg: { - // msg弹窗默认消失时间 - time: 1000, - // 绿色勾 - greenTick: function (content, callbackFunction) { - let options = {icon: 1, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - }, - // 红色叉 - redCross: function (content, callbackFunction) { - let options = {icon: 2, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - }, - // 黄色问号 - yellowQuestion: function (content, callbackFunction) { - let options = {icon: 3, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - }, - // 灰色锁 - grayLock: function (content, callbackFunction) { - let options = {icon: 4, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - }, - // 红色哭脸 - redCry: function (content, callbackFunction) { - let options = {icon: 5, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - }, - // 绿色笑脸 - greenLaugh: function (content, callbackFunction) { - let options = {icon: 6, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - }, - // 黄色感叹号 - yellowSigh: function (content, callbackFunction) { - let options = {icon: 7, time: okLayer.msg.time, anim: okLayer.animChoose()}; - layer.msg(content, options, callbackFunction); - } + // msg弹窗默认消失时间 + time: 1000, + // 绿色勾 + greenTickMsg: function (content, callbackFunction) { + let options = {icon: 1, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); + }, + // 红色叉 + redCrossMsg: function (content, callbackFunction) { + let options = {icon: 2, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); + }, + // 黄色问号 + yellowQuestionMsg: function (content, callbackFunction) { + let options = {icon: 3, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); + }, + // 灰色锁 + grayLockMsg: function (content, callbackFunction) { + let options = {icon: 4, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); + }, + // 红色哭脸 + redCryMsg: function (content, callbackFunction) { + let options = {icon: 5, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); + }, + // 绿色笑脸 + greenLaughMsg: function (content, callbackFunction) { + let options = {icon: 6, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); + }, + // 黄色感叹号 + yellowSighMsg: function (content, callbackFunction) { + let options = {icon: 7, time: okLayer.time, anim: okLayer.animChoose()}; + layer.msg(content, options, callbackFunction); }, /** * 皮肤选择 diff --git a/lib/layui/lay/okmodules/okMock.js b/lib/layui/lay/okmodules/okMock.js index cc34af7..c647428 100644 --- a/lib/layui/lay/okmodules/okMock.js +++ b/lib/layui/lay/okmodules/okMock.js @@ -5,6 +5,10 @@ layui.define([], function (exprots) { login: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/login", bsgrid: "http://rap2api.taobao.org/app/mock/233041/bsgrid", datatables: "http://rap2api.taobao.org/app/mock/233041/datatables", + listUser: "http://rap2api.taobao.org/app/mock/233041/user/listUser", + listRole: "http://rap2api.taobao.org/app/mock/233041/role/listRole", + + menu: { list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/menu/list" }, diff --git a/lib/layui/lay/okmodules/okUtils.js b/lib/layui/lay/okmodules/okUtils.js index 7ba54ce..1eb46fe 100644 --- a/lib/layui/lay/okmodules/okUtils.js +++ b/lib/layui/lay/okmodules/okUtils.js @@ -74,36 +74,34 @@ layui.define(["layer"], function (exprots) { }); return deferred.promise(); }, - table: { - /** - * 主要用于针对表格批量操作操作之前的检查 - * @param table - * @returns {string} - */ - batchCheck: function (table) { - var checkStatus = table.checkStatus("tableId"); - var rows = checkStatus.data.length; - if (rows > 0) { - var idsStr = ""; - for (var i = 0; i < checkStatus.data.length; i++) { - idsStr += checkStatus.data[i].id + ","; - } - return idsStr; - } else { - layer.msg("未选择有效数据", {offset: "t", anim: 6}); + /** + * 主要用于针对表格批量操作操作之前的检查 + * @param table + * @returns {string} + */ + tableBatchCheck: function (table) { + var checkStatus = table.checkStatus("tableId"); + var rows = checkStatus.data.length; + if (rows > 0) { + var idsStr = ""; + for (var i = 0; i < checkStatus.data.length; i++) { + idsStr += checkStatus.data[i].id + ","; } - }, - /** - * 在表格页面操作成功后弹窗提示 - * @param content - */ - successMsg: function (content) { - layer.msg(content, {icon: 1, time: 1000}, function () { - // 刷新当前页table数据 - $(".layui-laypage-btn")[0].click(); - }); + return idsStr; + } else { + layer.msg("未选择有效数据", {offset: "t", anim: 6}); } }, + /** + * 在表格页面操作成功后弹窗提示 + * @param content + */ + tableSuccessMsg: function (content) { + layer.msg(content, {icon: 1, time: 1000}, function () { + // 刷新当前页table数据 + $(".layui-laypage-btn")[0].click(); + }); + }, /** * 获取父窗体的okTab * @returns {string} diff --git a/pages/member/permission.html b/pages/member/permission.html index f197133..ce10205 100644 --- a/pages/member/permission.html +++ b/pages/member/permission.html @@ -7,112 +7,112 @@
-