Commit ea1f90c6 by 胡悦

合并

2 parents d3662623 a131c2a4

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
......@@ -10,11 +10,11 @@
<li class="layui-nav-item">
<a href="">
<img src="//t.cn/RCzsdCq" class="layui-nav-img" />
<span>XXXX有限公司</span>
<span id="curMerchantName"></span>
</a>
<dl class="layui-nav-child">
<dd><a href="javascript:;">修改信息</a></dd>
<dd><a href="javascript:;" id="logout">退了</a></dd>
<!-- <dd><a href="javascript:;">修改信息</a></dd> -->
<dd><a href="javascript:;" id="logout">退出</a></dd>
</dl>
</li>
</ul>
......@@ -23,12 +23,16 @@
<div class="bread-crumb"></div>
</div>
<script>
layui.use(['element', 'request', 'helper'], function () {
layui.use(['element', 'request','helper'], function () {
var element = layui.element
var user = helper.store.get('user')
element.init()
highlight()
bindEvents()
// var $ = layui.$
var helper = layui.helper
var user = helper.store.get('user')
console.log(user,"999")
document.getElementById('curMerchantName').innerHTML=user.merchantName || "";
})
function highlight() {
var $ = layui.$
......
......@@ -90,15 +90,15 @@
[
//表头
{ field: '', title: '序号', type: 'numbers', width: 80, fixed: 'left' },
{ field: 'staffName', title: '员工姓名', width: 120 },
{ field: 'staffCode', title: '员工号' },
{ field: 'roleName', title: '角色' },
{ field: 'staffPhone', title: '登录手机号', width: 125 },
{ field: 'password', title: '登录密码' },
{ field: 'statusName', title: '状态' },
{ field: 'createdAccount', title: '创建者' },
{ field: 'merchantName', title: '商户名(商户号)', width: 160 },
{ field: 'createdTime', title: '更新时间', width: 160 },
{ field: 'staffName', title: '员工姓名', width: 120, align: 'center' },
{ field: 'staffCode', title: '员工号', align: 'center' },
{ field: 'roleName', title: '角色', align: 'center' },
{ field: 'staffPhone', title: '登录手机号', align: 'center', width: 125 },
{ field: 'password', title: '登录密码', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'createdTime', title: '更新时间', align: 'center', width: 160 },
{ fixed: 'right', title: '操作', width: 276, align: 'center', toolbar: '#employeeBar' }
]
]
......
......@@ -15,6 +15,55 @@
.pull-right {
float: right;
}
.merchant-left #secondmerchantName {
margin-left: 80px;
height: 24px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 24px;
}
.merchant-left>div:not(:first-child) {
margin-left: 80px;
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>
</head>
......@@ -129,7 +178,7 @@
</div>
<div class="merchant-right">
<div>
<span id="merchantNameTable"></span>员工列表
<span class="companyName"> <span id="merchantNameTable"></span>员工列表</span>
<div class="layui-input-inline">
<input class="layui-input" placeholder="请输入员工姓名/手机号" id="tableSearchForm" />
</div>
......@@ -197,7 +246,8 @@
</div>
</div>
<div class="footer-close">
<button class="layui-btn" id="closeEl">关闭</button></div>
<button class="layui-btn" id="closeEl">关闭</button>
</div>
</div>
</main>
</div>
......@@ -362,41 +412,41 @@
page: true,
cols: [
[{
field: '',
title: '序号',
type: 'numbers',
width: 80
},
{
field: 'staffName',
title: '员工姓名',
width: 120
},
{
field: 'roleName',
title: '角色',
width: 120
},
{
field: 'merchantName',
title: '登录账户',
width: 120
},
{
field: 'statusName',
title: '登录密码',
width: 120
},
{
field: 'createdAccount ',
title: '创建者',
width: 100
},
{
field: 'createdTime',
title: '创建时间',
width: 150
}
field: '',
title: '序号',
type: 'numbers',
width: 80
},
{
field: 'staffName',
title: '员工姓名',
width: 120
},
{
field: 'roleName',
title: '角色',
width: 120
},
{
field: 'merchantName',
title: '登录账户',
width: 120
},
{
field: 'statusName',
title: '登录密码',
width: 120
},
{
field: 'createdAccount ',
title: '创建者',
width: 100
},
{
field: 'createdTime',
title: '创建时间',
width: 150
}
]
]
})
......@@ -410,7 +460,7 @@
})
})
$('#closeEl').on('click', function() {
$('#closeEl').on('click', function () {
go('merchant', 'index')
})
......
......@@ -116,7 +116,7 @@
<script type="text/html" id="merchantBtns">
<div>
<a class="layui-btn-xs" lay-event="handleDetail">查看</a>
{{# if((d.btn.edit)){ }}
{{# if((d.btn.edit)){ }} |
<a class="layui-btn-xs" lay-event="handleEdit">修改基本信息</a>
{{# } }}
</div>
......@@ -124,7 +124,7 @@
{{# if((d.btn.edit)){ }}
<a class="layui-btn-xs" lay-event="handleAuthority">修改权限</a>
{{# } }}
{{# if((d.btn.editPeriod)){ }}
{{# if((d.btn.editPeriod)){ }} |
<a class="layui-btn-xs" lay-event="handleVaildPeriod">修改账户有效期</a>
{{# } }}
</div>
......@@ -132,7 +132,7 @@
{{# if((d.btn.createStaff)){ }}
<a class="layui-btn-xs" lay-event="handleAddStaff">创建员工</a>
{{# } }}
{{# if((d.btn.createSubMerchant)){ }}
{{# if((d.btn.createSubMerchant)){ }} |
<a class="layui-btn-xs" lay-event="handleAddMerchant">创建子商户/门店</a>
{{# } }}
</div>
......
......@@ -63,11 +63,11 @@
[
//表头
{ field: '', title: '序号', type: 'numbers', width: 80 },
{ field: 'roleName', title: '角色名称' },
{ field: 'roleCode', title: '角色号' },
{ field: 'merchantName', title: '所属商户名' },
{ field: 'statusName', title: '状态' },
{ field: 'createdTime', title: '更新时间' },
{ field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'roleCode', title: '角色号', align: 'center' },
{ field: 'merchantName', title: '所属商户名', align: 'center' },
{ field: 'statusName', title: '状态', align: 'center' },
{ field: 'createdTime', title: '更新时间', align: 'center' },
{ fixed: 'right', title: '操作', width: 160, align: 'center', toolbar: '#roleBar' }
]
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!