Commit 19c8da02 by 胡悦

修复bug

1 parent a18eced3
...@@ -181,12 +181,12 @@ ...@@ -181,12 +181,12 @@
<main> <main>
<div class="layui-tab layui-top-tab layui-tab-brief" lay-filter="editTab"> <div class="layui-tab layui-top-tab layui-tab-brief" lay-filter="editTab">
<ul class="layui-tab-title"> <ul class="layui-tab-title">
<li lay-id="2" id="functional" style="padding: 0; width: 90px; margin-right: 20px">修改功能权限</li> <li lay-id="2" id="functional" class="layui-this" style="padding: 0; width: 90px; margin-right: 20px">修改功能权限</li>
<li lay-id="1" id="basic" style="padding: 0; width: 90px" class="layui-this">修改基本信息</li> <li lay-id="1" id="basic" style="padding: 0; width: 90px">修改基本信息</li>
</ul> </ul>
<div class="layui-tab-content m-t-md"> <div class="layui-tab-content m-t-md">
<!-- 权限树 --> <!-- 权限树 -->
<div class="layui-tab-item edit-box"> <div class="layui-tab-item layui-show edit-box">
<div id="authorityTree"> <div id="authorityTree">
<!-- 树 --> <!-- 树 -->
<!-- <div class="layui-form-item"> --> <!-- <div class="layui-form-item"> -->
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-tab-item layui-show"> <div class="layui-tab-item">
<!-- 基本信息 --> <!-- 基本信息 -->
<div id="basicForm"> <div id="basicForm">
<form class="layui-form" lay-filter="merchantForm"> <form class="layui-form" lay-filter="merchantForm">
...@@ -486,7 +486,7 @@ ...@@ -486,7 +486,7 @@
// 1-创建新商户;2-创建子商户;3-修改 // 1-创建新商户;2-创建子商户;3-修改
var editLevel = 1 var editLevel = 1
// 1-基本信息;2-权限树 // 1-基本信息;2-权限树
var step = 1 var step = 2
var merchantId = null var merchantId = null
var parentMerchantId = null var parentMerchantId = null
var accountTypeVisible = false var accountTypeVisible = false
...@@ -565,7 +565,6 @@ ...@@ -565,7 +565,6 @@
editLevel = qs('editLevel') editLevel = qs('editLevel')
isFactory = qs('isFactory') == 'true' isFactory = qs('isFactory') == 'true'
step = 1
var pwd = $('#password') // 密码输入框 var pwd = $('#password') // 密码输入框
var resetpsw = $('#resetpsw') var resetpsw = $('#resetpsw')
// pwd.attr('readonly', false) // pwd.attr('readonly', false)
...@@ -873,15 +872,16 @@ ...@@ -873,15 +872,16 @@
functionClick = true functionClick = true
$('#basicSumit').click() $('#basicSumit').click()
step = 2 step = 2
init() // init()
location.reload()
layer.close(index) layer.close(index)
}, },
function () {} function () {
location.reload()
}
) )
} else { } else {
element.tabChange('editTab', 2) location.reload()
step = 2
init()
} }
} }
return false return false
...@@ -903,15 +903,20 @@ ...@@ -903,15 +903,20 @@
basicClick = true basicClick = true
step = 1 step = 1
submitAuth() submitAuth()
location.reload() // location.reload()
layer.close(index) layer.close(index)
}, },
function () {} function () {
console.log('11111')
element.tabChange('editTab', 1)
step = 1
}
) )
} else { } else {
console.log('fou')
element.tabChange('editTab', 1) element.tabChange('editTab', 1)
step = 1 step = 1
location.reload() // location.reload()
} }
} }
return false return false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!