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 @@ ...@@ -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,12 +23,16 @@ ...@@ -23,12 +23,16 @@
<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
var user = helper.store.get('user')
element.init() element.init()
highlight() highlight()
bindEvents() 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() { function highlight() {
var $ = layui.$ var $ = layui.$
......
...@@ -90,15 +90,15 @@ ...@@ -90,15 +90,15 @@
[ [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80, fixed: 'left' }, { field: '', title: '序号', type: 'numbers', width: 80, fixed: 'left' },
{ 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: 'center', toolbar: '#employeeBar' }
] ]
] ]
......
...@@ -15,6 +15,55 @@ ...@@ -15,6 +15,55 @@
.pull-right { .pull-right {
float: 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> </style>
</head> </head>
...@@ -129,7 +178,7 @@ ...@@ -129,7 +178,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 +246,8 @@ ...@@ -197,7 +246,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 +460,7 @@ ...@@ -410,7 +460,7 @@
}) })
}) })
$('#closeEl').on('click', function() { $('#closeEl').on('click', function () {
go('merchant', 'index') go('merchant', 'index')
}) })
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<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>
{{# if((d.btn.edit)){ }} {{# if((d.btn.edit)){ }} |
<a class="layui-btn-xs" lay-event="handleEdit">修改基本信息</a> <a class="layui-btn-xs" lay-event="handleEdit">修改基本信息</a>
{{# } }} {{# } }}
</div> </div>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
{{# if((d.btn.edit)){ }} {{# if((d.btn.edit)){ }}
<a class="layui-btn-xs" lay-event="handleAuthority">修改权限</a> <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> <a class="layui-btn-xs" lay-event="handleVaildPeriod">修改账户有效期</a>
{{# } }} {{# } }}
</div> </div>
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
{{# if((d.btn.createStaff)){ }} {{# if((d.btn.createStaff)){ }}
<a class="layui-btn-xs" lay-event="handleAddStaff">创建员工</a> <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> <a class="layui-btn-xs" lay-event="handleAddMerchant">创建子商户/门店</a>
{{# } }} {{# } }}
</div> </div>
......
...@@ -63,11 +63,11 @@ ...@@ -63,11 +63,11 @@
[ [
//表头 //表头
{ field: '', title: '序号', type: 'numbers', width: 80 }, { field: '', title: '序号', type: 'numbers', width: 80 },
{ field: 'roleName', title: '角色名称' }, { field: 'roleName', title: '角色名称', align: 'center' },
{ field: 'roleCode', 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' }
] ]
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!