Commit 8d6dd5fb by cwq0219

merge

2 parents c4684a27 88c1a3e1

11.5 KB | W: | H:

13.1 KB | W: | H:

css/img/zTreeStandard.png
css/img/zTreeStandard.png
css/img/zTreeStandard.png
css/img/zTreeStandard.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -14,8 +14,9 @@ ...@@ -14,8 +14,9 @@
margin-right: 5px; margin-right: 5px;
} }
.layui-btn { .layui-laypage-btn,.layui-btn {
background-color: #1989FA !important; background-color: #1989FA !important;
color: #ffffff;
} }
...@@ -94,3 +95,22 @@ ...@@ -94,3 +95,22 @@
.xm-option-icon, .xm-iconfont, .xm-icon-duox{ .xm-option-icon, .xm-iconfont, .xm-icon-duox{
border-color:#1989FA!important; border-color:#1989FA!important;
} }
/* 分页器的修改 */
.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
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
<li class="layui-nav-item"> <li class="layui-nav-item">
<a href=""> <a href="">
<img src="//t.cn/RCzsdCq" class="layui-nav-img" /> <img src="//t.cn/RCzsdCq" class="layui-nav-img" />
<span>XXXX有限公司</span> <span id="curMerchantName"></span>
</a> </a>
<dl class="layui-nav-child"> <dl class="layui-nav-child">
<dd><a href="javascript:;">修改信息</a></dd> <!-- <dd><a href="javascript:;">修改信息</a></dd> -->
<dd><a href="javascript:;" id="logout">退了</a></dd> <dd><a href="javascript:;" id="logout">退出</a></dd>
</dl> </dl>
</li> </li>
</ul> </ul>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="bread-crumb"></div> <div class="bread-crumb"></div>
</div> </div>
<script> <script>
layui.use(['element', 'request', 'helper'], function () { layui.use(['element', 'request','helper'], function () {
var element = layui.element var element = layui.element
element.init() element.init()
highlight() highlight()
......
...@@ -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,20 +86,21 @@ ...@@ -86,20 +86,21 @@
//创建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 }, { field: 'staffName', title: '员工姓名', width: 120, align: 'center' },
{ field: 'staffCode', title: '员工号' }, { field: 'staffCode', title: '员工号', align: 'center' },
{ field: 'roleName', title: '角色' }, { field: 'roleName', title: '角色', align: 'center' },
{ field: 'staffPhone', title: '登录手机号', width: 125 }, { field: 'staffPhone', title: '登录手机号', align: 'center', width: 125 },
{ field: 'password', title: '登录密码' }, { field: 'password', title: '登录密码', align: 'center' },
{ field: 'statusName', title: '状态' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdAccount', title: '创建者' }, { field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', width: 160 }, { field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'createdTime', title: '更新时间', 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">
<div>
<a class="layui-btn-xs" lay-event="detail">查看</a> <a class="layui-btn-xs" lay-event="detail">查看</a>
<a class="layui-btn-xs" lay-event="edit">修改</a> <a class="layui-btn-xs" lay-event="edit">修改</a>
<a class="layui-btn-xs" lay-event="del">删除</a> <a class="layui-btn-xs" lay-event="del">删除</a>
</div>
<div>
<a class="layui-btn-xs" lay-event="updateTime">修改账户有效期</a> <a class="layui-btn-xs" lay-event="updateTime">修改账户有效期</a>
</div>
</script> </script>
</body> </body>
</html> </html>
...@@ -15,6 +15,57 @@ ...@@ -15,6 +15,57 @@
.pull-right { .pull-right {
float: right; float: right;
} }
.merchant-headerMsg{
display: flex;
}
.merchant-content #secondmerchantName {
margin-left: 15px;
height: 24px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 24px;
}
.merchant-content >div:not(:first-child) {
margin-left: 15px;
height: 20px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #999999;
line-height: 20px;
}
.layui-form {
margin-top: 20px;
}
.merchant-right > div:first-child {
position: relative;
height: 40px;
line-height: 40px;
}
.merchant-right .companyName{
height: 36px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 36px;
}
.merchant-right .layui-btn{
position: absolute;
right: 0;
}
.merchant-right .layui-input-inline{
position: absolute;
right: 80px;
}
</style> </style>
</head> </head>
...@@ -114,9 +165,16 @@ ...@@ -114,9 +165,16 @@
<div class="layui-tab-item"> <div class="layui-tab-item">
<div class="wrapper-merchant"> <div class="wrapper-merchant">
<div class="merchant-left"> <div class="merchant-left">
<div class="merchant-headerMsg">
<div class="merchantImg"><img src="../../css/img/merchantImg.png" alt=""></div>
<div class="merchant-content">
<div id="secondmerchantName"></div> <div id="secondmerchantName"></div>
<div>商户号:<span id="secondmerchantId"></span></div> <div>商户号:<span id="secondmerchantId"></span></div>
<div>您共有<span id="numberOfSubMerchants"></span>个子商户,共有<span id="numberOfStores"></span>家门店</div> <div>您共有<span id="numberOfSubMerchants"></span>个子商户,共有<span id="numberOfStores"></span>家门店</div>
</div>
</div>
<form class="layui-form" action=""> <form class="layui-form" action="">
<div class="layui-inline"> <div class="layui-inline">
<div class="layui-input-inline"> <div class="layui-input-inline">
...@@ -129,7 +187,7 @@ ...@@ -129,7 +187,7 @@
</div> </div>
<div class="merchant-right"> <div class="merchant-right">
<div> <div>
<span id="merchantNameTable"></span>员工列表 <span class="companyName"> <span id="merchantNameTable"></span>员工列表</span>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input class="layui-input" placeholder="请输入员工姓名/手机号" id="tableSearchForm" /> <input class="layui-input" placeholder="请输入员工姓名/手机号" id="tableSearchForm" />
</div> </div>
...@@ -197,7 +255,8 @@ ...@@ -197,7 +255,8 @@
</div> </div>
</div> </div>
<div class="footer-close"> <div class="footer-close">
<button class="layui-btn" id="closeEl">关闭</button></div> <button class="layui-btn" id="closeEl">关闭</button>
</div>
</div> </div>
</main> </main>
</div> </div>
...@@ -410,7 +469,7 @@ ...@@ -410,7 +469,7 @@
}) })
}) })
$('#closeEl').on('click', function() { $('#closeEl').on('click', function () {
go('merchant', 'index') go('merchant', 'index')
}) })
......
...@@ -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: 'createdTime', field: 'createdTime',
title: '更新时间', title: '更新时间',
......
...@@ -59,15 +59,16 @@ ...@@ -59,15 +59,16 @@
//创建table实例 //创建table实例
var roleTable = table.render({ var roleTable = table.render({
elem: '#roleTable', elem: '#roleTable',
skin:'line',
cols: [ cols: [
[ [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80 }, { field: '', title: '序号', type: 'numbers', width: 80 },
{ field: 'roleName', title: '角色名称' }, { field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'id', title: '角色号' }, { field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'merchantName', title: '所属商户名' }, { field: 'merchantName', title: '所属商户名', align: 'center' },
{ field: 'statusName', title: '状态' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdTime', title: '更新时间' }, { field: 'createdTime', title: '更新时间', align: 'center' },
{ fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' } { fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' }
] ]
] ]
......
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head>
<head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta content="IE=edge" /> <meta content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
...@@ -9,8 +10,9 @@ ...@@ -9,8 +10,9 @@
<meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" /> <meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" />
<link rel="stylesheet" type="text/css" href="/css/login.css" /> <link rel="stylesheet" type="text/css" href="/css/login.css" />
<title>登录</title> <title>登录</title>
</head> </head>
<body>
<body>
<div id="app"> <div id="app">
<main> <main>
<div class="bgwrap"> <div class="bgwrap">
...@@ -25,15 +27,17 @@ ...@@ -25,15 +27,17 @@
<div class="title">登 录</div> <div class="title">登 录</div>
<div class="items"> <div class="items">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label accountName" >帐户名:</label> <label class="layui-form-label accountName">帐户名:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="text" name="userName" required lay-verify="required" placeholder="请输入帐户名" autocomplete="off" class="layui-input" /> <input type="text" name="userName" required lay-verify="required" placeholder="请输入帐户名"
autocomplete="off" class="layui-input" />
</div> </div>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label pwd">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label> <label class="layui-form-label pwd">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" /> <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
autocomplete="off" class="layui-input" />
</div> </div>
</div> </div>
<!-- <div class="layui-form-item"> <!-- <div class="layui-form-item">
...@@ -68,11 +72,21 @@ ...@@ -68,11 +72,21 @@
helper.store.set('token', sessionId) helper.store.set('token', sessionId)
helper.store.set('user', result.data) helper.store.set('user', result.data)
go('merchant', 'index') go('merchant', 'index')
// function() {
console.log(isAppend())
if (isAppend()) {
console.log('_------')
var user = helper.store.get('user')
console.log(user)
document.getElementById('curMerchantName').innerHTML = user.merchantName || "";
}
// }
} }
}) })
return false return false
}) })
}) })
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!