Commit 628edfbd by 胡悦

修复bug

1 parent f226a8bf
......@@ -125,6 +125,12 @@
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">企微号:</label>
<div class="layui-input-block">
<div class="layui-form-mid layui-word-aux" id="entmicroName"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">职务:</label>
<div class="layui-input-block">
<div class="layui-form-mid layui-word-aux" id="staffJob"></div>
......@@ -199,7 +205,7 @@
var table = layui.table
var laypage = layui.laypage
var merchantId = qs('merchantId')
var basicArr = ['staffName', 'staffPhone', 'staffJob', 'roleName', 'roleCode', 'merchantName', 'createdAccount']
var basicArr = ['staffName', 'staffPhone', 'entmicroName', 'staffJob', 'roleName', 'roleCode', 'merchantName', 'createdAccount']
var employeeData = {}
var visibleInferiorMerName = $('#visibleInferiorMerName')
......
......@@ -109,7 +109,7 @@
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 110 },
{ title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' },
{ field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
{ fixed: 'right', field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
]
var colums = [
//表头
......@@ -124,7 +124,7 @@
{ field: 'statusName', title: '状态', align: 'center' },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 180 },
{ title: '操作', width: 220, align: 'left', toolbar: '#employeeBar' },
{ field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
{ fixed: 'right', field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
]
//创建table实例
var employeeTable = table.render({
......
......@@ -421,7 +421,7 @@
</div>
</div>
</div>
<div class="layui-form-item hide" id="effectiveShowEl">
<!-- <div class="layui-form-item hide" id="effectiveShowEl">
<label class="layui-form-label">账户有效期:</label>
<div class="layui-inline">
<div class="layui-input-inline">
......@@ -435,7 +435,7 @@
<button id="oneyear" type="button" class="layui-btn btn-no-border">续1年</button>
<button id="twoyears" type="button" class="layui-btn btn-no-border">续2年</button>
</div>
</div>
</div> -->
<div class="layui-col-md6">
<div class="layui-form-item">
<label class="layui-form-label required">登录账户名:</label>
......@@ -1091,10 +1091,6 @@
parentMerchantId = qs('parentId')
}
$('#validPeriodEl').attr('disabled', true)
if (merchantAccountLevel == 4) {
$('#effectiveShowEl').removeClass('hide')
$('#effectiveShowEl').addClass('show')
}
// $('#channelEl').attr('disabled', true)
if (editLevel == 3 || (editLevel == 2 && !merchantId)) {
getParentInfo()
......
......@@ -686,7 +686,9 @@
// select 选择触发
form.on('select(accountLevel)', function (data) {
console.log(data.value)
var accountInfo = helper.store.get('accountInfo')
console.log(data.value, accountInfo)
if (!accountInfo) {
if (data.value == 4) {
$('#effectiveShowEl').removeClass('hide')
$('#effectiveShowEl').addClass('show')
......@@ -697,6 +699,7 @@
$('#effectiveShowEl').addClass('hide')
$('#effectiveStarttime').removeAttr('lay-verify')
}
}
})
form.on('submit(handleFirstSubmit)', function (data) {
......
......@@ -1015,8 +1015,8 @@
// baseIsShow(false)
// treeIsShow(true)
}
console.log(helper.store.get('accountInfo'))
if (qs('status') && !helper.store.get('accountInfo')) {
console.log(helper.store.get('accountInfo'), qs('status'), isFactory)
if (qs('status') == 1 && !helper.store.get('accountInfo') && isFactory) {
$('#merchantModel').removeClass('hide')
$('#merchantModel').addClass('show')
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!