规范 role.html

master
就眠仪式 2021-07-05 16:49:07 +08:00
parent 65fedf040c
commit 9650eb29b0
2 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,6 @@
background-color: white;
border: 1px solid #dcdfe6;
border-radius: 2px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
}
.pear-btn i {
@ -34,6 +33,8 @@
.pear-btn-warming,
.pear-btn-success,
.pear-btn-primary {
height: 37px;
line-height: 37px;
color: #fff !important
}
/** Button 主题 */

View File

@ -29,7 +29,7 @@
</div>
</div>
<div class="layui-form-item layui-inline">
<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="user-query">
<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="role-query">
<i class="layui-icon layui-icon-search"></i>
查询
</button>
@ -66,7 +66,7 @@
</script>
<script type="text/html" id="role-enable">
<input type="checkbox" name="enable" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="user-enable" checked = "{{ d.id == 10003 ? 'true' : 'false' }}">
<input type="checkbox" name="enable" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" lay-filter="role-enable" checked = "{{ d.id == 10003 ? 'true' : 'false' }}">
</script>
<script src="../../component/layui/layui.js"></script>
@ -193,7 +193,7 @@
}
let ids = "";
for(let i = 0;i<data.length;i++){
ids += data[i].userId+",";
ids += data[i].roleId+",";
}
ids = ids.substr(0,ids.length-1);
layer.confirm('确定要删除这些用户', {icon: 3, title:'提示'}, function(index){
@ -207,7 +207,7 @@
layer.close(loading);
if(result.success){
layer.msg(result.msg,{icon:1,time:1000},function(){
table.reload('user-table');
table.reload('role-table');
});
}else{
layer.msg(result.msg,{icon:2,time:1000});