Commit 88c1a3e1 by 李长胜

样式调整部分内容

1 parent bdd5a82c
...@@ -94,4 +94,23 @@ ...@@ -94,4 +94,23 @@
} }
.xm-option-icon, .xm-iconfont, .xm-icon-duox{ .xm-option-icon, .xm-iconfont, .xm-icon-duox{
border-color:#1989FA!important; border-color:#1989FA!important;
}
\ No newline at end of file \ No newline at end of file
}
/* 分页器的修改 */
.layui-laypage .layui-laypage-skip input:focus{
border-color: #1989FA!important;
}
/* 表格行内容高度自适应 */
.layui-table-cell{
height: auto;
overflow: visible;
text-overflow: inherit;
white-space: normal;
}
.layui-table-cell li{
list-style: disc;
list-style-position: inside;
}
.layui-table-cell li::marker{
color:#1989FA ;
}
\ No newline at end of file \ No newline at end of file
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<button type="button" class="layui-btn layui-btn-normal" id="employeeExport">导出</button> <button type="button" class="layui-btn layui-btn-normal" id="employeeExport">导出</button>
</div> </div>
</form> </form>
<table id="employeeTable" lay-filter="employeeTool"></table> <table id="employeeTable" lay-filter="employeeTool" ></table>
<div id="employeePage" class="align-center"></div> <div id="employeePage" class="align-center"></div>
</div> </div>
</main> </main>
...@@ -86,10 +86,11 @@ ...@@ -86,10 +86,11 @@
//创建table实例 //创建table实例
var employeeTable = table.render({ var employeeTable = table.render({
elem: '#employeeTable', elem: '#employeeTable',
skin:'line',
cols: [ cols: [
[ [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80, fixed: 'left' }, { field: '', title: '序号', type: 'numbers', width: 80 },
{ field: 'staffName', title: '员工姓名', width: 120, align: 'center' }, { field: 'staffName', title: '员工姓名', width: 120, align: 'center' },
{ field: 'staffCode', title: '员工号', align: 'center' }, { field: 'staffCode', title: '员工号', align: 'center' },
{ field: 'roleName', title: '角色', align: 'center' }, { field: 'roleName', title: '角色', align: 'center' },
...@@ -99,7 +100,7 @@ ...@@ -99,7 +100,7 @@
{ field: 'createdAccount', title: '创建者', align: 'center' }, { field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 }, { field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'createdTime', title: '更新时间', align: 'center', width: 160 }, { field: 'createdTime', title: '更新时间', align: 'center', width: 160 },
{ fixed: 'right', title: '操作', width: 276, align: 'center', toolbar: '#employeeBar' } { fixed: 'right', title: '操作', width: 276, align: 'left', toolbar: '#employeeBar' }
] ]
] ]
}) })
...@@ -281,10 +282,14 @@ ...@@ -281,10 +282,14 @@
}) })
</script> </script>
<script type="text/html" id="employeeBar"> <script type="text/html" id="employeeBar">
<a class="layui-btn-xs" lay-event="detail">查看</a> <div>
<a class="layui-btn-xs" lay-event="edit">修改</a> <a class="layui-btn-xs" lay-event="detail">查看</a>
<a class="layui-btn-xs" lay-event="del">删除</a> <a class="layui-btn-xs" lay-event="edit">修改</a>
<a class="layui-btn-xs" lay-event="updateTime">修改账户有效期</a> <a class="layui-btn-xs" lay-event="del">删除</a>
</div>
<div>
<a class="layui-btn-xs" lay-event="updateTime">修改账户有效期</a>
</div>
</script> </script>
</body> </body>
</html> </html>
...@@ -19,16 +19,17 @@ ...@@ -19,16 +19,17 @@
margin: 10px 20px; margin: 10px 20px;
} }
.merchant .layui-table-cell { /* .merchant .layui-table-cell {
height: auto; height: auto;
overflow: visible; overflow: visible;
text-overflow: inherit; text-overflow: inherit;
white-space: normal; white-space: normal;
/* height: auto;
height: auto;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; */ white-space: nowrap;
} } */
.merchant #searchForm .layui-inline { .merchant #searchForm .layui-inline {
margin-bottom: 5px; margin-bottom: 5px;
...@@ -113,6 +114,22 @@ ...@@ -113,6 +114,22 @@
<script src="https://www.layuicdn.com/layui/layui.js"></script> <script src="https://www.layuicdn.com/layui/layui.js"></script>
<script src="/js/load.js"></script> <script src="/js/load.js"></script>
<script type="text/html" id="accountTypeTpl">
<ul>
{{# var accountTypes=d.accountTypeNames.split(",")}}
{{# }}
{{# if((d.accountTypeNames)){ }}
{{# layui.each(accountTypes,function(index,item){ }}
<li><span>{{item}}</span></li>
<!-- <a class="layui-text" >{{d.accountTypeNames}}</a> -->
{{# }); }else{ }}
<a class="layui-text" >-</a>
{{# } }}
</ul>
</script>
<script type="text/html" id="merchantBtns"> <script type="text/html" id="merchantBtns">
<div> <div>
<a class="layui-btn-xs" lay-event="handleDetail">查看</a> <a class="layui-btn-xs" lay-event="handleDetail">查看</a>
...@@ -182,6 +199,7 @@ ...@@ -182,6 +199,7 @@
var merchantTable = table.render({ var merchantTable = table.render({
elem: '#merchantTable', elem: '#merchantTable',
page: false, page: false,
skin:'line',
// done: function (res, curr, count) { // done: function (res, curr, count) {
// console.log(res) // console.log(res)
// }, // },
...@@ -202,7 +220,8 @@ ...@@ -202,7 +220,8 @@
}, { }, {
field: 'accountTypeNames', field: 'accountTypeNames',
title: '账户类型', title: '账户类型',
align: 'center' align: 'left',
templet: '#accountTypeTpl'
}, { }, {
field: 'merchantLoginAccount', field: 'merchantLoginAccount',
title: '登录账户', title: '登录账户',
...@@ -230,7 +249,8 @@ ...@@ -230,7 +249,8 @@
}, { }, {
field: 'merchantAddress', field: 'merchantAddress',
title: '商户地址', title: '商户地址',
align: 'center' align: 'center',
width: 140
}, { }, {
field: 'expireDate', field: 'expireDate',
title: '更新时间', title: '更新时间',
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
//创建table实例 //创建table实例
var roleTable = table.render({ var roleTable = table.render({
elem: '#roleTable', elem: '#roleTable',
skin:'line',
cols: [ cols: [
[ [
//表头 //表头
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!