diff --git a/css/sub.css b/css/sub.css index 3441aee..d5465b1 100644 --- a/css/sub.css +++ b/css/sub.css @@ -1,55 +1,20 @@ -@import "./common.css"; @import "../lib/layui/css/layui.css"; - -.ok-body { - padding: 10px +.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 .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} +@media screen and (max-width:768px){.ok-search .layui-input{width:100%;margin-left:0;margin-top:10px} + .ok-search .layui-btn{margin-left:0;margin-top:10px} } +.ok-form{margin-top:10px} +::-webkit-scrollbar{width: 8px; height: 8px;} +::-webkit-scrollbar-button:vertical{display: none;} +::-webkit-scrollbar-track, ::-webkit-scrollbar-corner{background-color: #e2e2e2;} +::-webkit-scrollbar-thumb{border-radius: 0; background-color: rgba(0,0,0,.3);} +::-webkit-scrollbar-thumb:vertical:hover{background-color: rgba(0,0,0,.35);} +::-webkit-scrollbar-thumb:vertical:active{background-color: rgba(0,0,0,.38);} -.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 .layui-input { - width: 190px; - padding-left: 10px; - margin-left: 10px; - float: left; -} - -.ok-search .layui-input:first-child { - margin-left: 0px; -} - -.ok-search .layui-btn { - margin-left: 10px; -} - -@media screen and (max-width: 768px) { - .ok-search .layui-input { - width: 100%; - margin-left: 0px; - margin-top: 10px; - } - - .ok-search .layui-btn { - margin-left: 0px; - margin-top: 10px; - } -} diff --git a/lib/layui/lay/okmodules/okMock.js b/lib/layui/lay/okmodules/okMock.js index 1a36dc9..57daba7 100644 --- a/lib/layui/lay/okmodules/okMock.js +++ b/lib/layui/lay/okmodules/okMock.js @@ -7,7 +7,7 @@ layui.define([], function(exprots) { list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/menu/list" }, user: { - list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/user/list", + list: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/user/list", list2: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/user/list2", batchNormal: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/user/batchNormal", batchStop: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/user/batchStop", diff --git a/pages/member/role.html b/pages/member/role.html index 3d57c6e..eb694e0 100644 --- a/pages/member/role.html +++ b/pages/member/role.html @@ -60,7 +60,8 @@ {field: "name", title: "角色名", width: 100}, {field: "remarks", title: "备注", width: 100}, {field: "createUser", title: "创建者", width: 85}, - {field: "createTime", title: "创建时间", width: 200}, + {field: "status", title: "状态", width: 85, templet: "#statusTpl"}, + {field: "createTime", title: "创建时间", width: 150}, {title: "操作", width: 200, align: "center", templet: "#operationTpl"} ]], done: function (res, curr, count) { @@ -146,6 +147,14 @@ + +