优化操作流程界面,修改任务列表搜索和排序等

This commit is contained in:
george
2018-11-21 11:10:22 +08:00
parent 26637736ee
commit 1257371fe3
60 changed files with 378 additions and 264 deletions

View File

@@ -1,7 +1,7 @@
<div class="layui-layout layui-layout-admin" style="padding-left: 20px;">
<div class="layui-row" style="margin-top: 20px;">
<div class="layui-col-xs6">
<a class="layui-btn" data-type="tabAdd" href="/role/add">新增</a>
<button class="layui-btn" data-type="tabAdd" id="add">新增</button>
</div>
<div class="layui-col-xs6 search_text">
<form class="layui-form" action="" onsubmit="javascript:return false;">
@@ -65,9 +65,14 @@
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';
});
$("#add").on("click",function() {
window.parent.openTab("/role/add",'新增角色',"admin_role_add-0",'fa-plus');
})
//监听工具条
table.on('tool(table_filter)', function(obj){
var data = obj.data;
var role_name = data.role_name;
if(obj.event === 'detail'){
//layer.msg('ID'+ data.id + ' 的查看操作');
} else if(obj.event === 'del'){
@@ -87,7 +92,7 @@
layer.close(index);
});
} else if(obj.event === 'edit'){
window.location.href="/role/edit?id="+data.id
window.parent.openTab("/role/edit?id="+data.id,role_name+' 角色编辑',"admin_role-"+data.id,'fa-edit');
}
});
});