优化列表显示

This commit is contained in:
yubao
2018-03-31 14:45:39 +08:00
parent d6a018a8b7
commit 4bfdfba503
14 changed files with 157 additions and 106 deletions

View File

@@ -6,24 +6,31 @@
@Html.Action("MenuHeader", "Home")
</blockquote>
<div style="display: flex;">
<ul id="tree" class="ztree" style="display: inline-block; width: 180px; padding: 10px; border: 1px solid #ddd; overflow: auto;"></ul>
<table class="layui-table"
lay-data="{height: 'full-80', page:true, id:'mainList'}"
lay-filter="list" lay-size="sm">
<thead>
<tr>
<th lay-data="{checkbox:true, fixed: true}"></th>
<th lay-data="{field:'Account', width:150, sort: true, fixed: true}">账号</th>
<th lay-data="{field:'Name', width:150}">用户名</th>
<th lay-data="{field:'Organizations', width:135}">所属部门</th>
<th lay-data="{field:'CreateTime', width:180}">创建时间</th>
<th lay-data="{field:'Id', width:180}">ID</th>
<th lay-data="{fixed: 'right', width:160, align:'center', toolbar: '#barList'}"></th>
</tr>
</thead>
</table>
</div>
<div class="layui-row">
<div class="layui-col-xs3">
<ul id="tree" class="ztree"
style="padding: 2px; border: 1px solid #ddd; overflow: auto;">
</ul>
</div>
<div class="layui-col-xs9">
<table class="layui-table"
lay-data="{height: 'full-80', page:true, id:'mainList'}"
lay-filter="list" lay-size="sm">
<thead>
<tr>
<th lay-data="{checkbox:true, fixed: true}"></th>
<th lay-data="{field:'Account', width:150, sort: true, fixed: true}">账号</th>
<th lay-data="{field:'Name', width:150}">用户名</th>
<th lay-data="{field:'Organizations', width:135}">所属部门</th>
<th lay-data="{field:'CreateTime', width:180}">创建时间</th>
<th lay-data="{field:'Id', width:180}">ID</th>
<th lay-data="{fixed: 'right', width:160, align:'center', toolbar: '#barList'}"></th>
</tr>
</thead>
</table>
</div>
</div>
<script type="text/html" id="barList">
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
</script>