Commit 75718c49 by 胡悦

提交角色、员工

1 parent 6068177f
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
} }
.detail .wrapper-tree { .detail .wrapper-tree {
width:230px; /* width:230px; */
overflow:auto; overflow:auto;
margin-left: 50px; margin-left: 50px;
} }
......
...@@ -290,15 +290,12 @@ ...@@ -290,15 +290,12 @@
}) })
.join(',') .join(',')
var otherParams = { var otherParams = {
visibleInferiorMer: visibleInferiorMer visibleInferiorMer: visibleInferiorMer,
// merchantId: merchantId merchantId: merchantId
} }
if (merchantFileRequest.fileName) { if (merchantFileRequest.fileName) {
otherParams.merchantFileRequest = JSON.stringify(merchantFileRequest) otherParams.merchantFileRequest = JSON.stringify(merchantFileRequest)
} }
if (qs('channel')) {
otherParams.merchantId = merchantId
}
if (id) { if (id) {
otherParams.id = id otherParams.id = id
otherParams.method = 'cn.com.glsx.merchants.staff.updateStaff' otherParams.method = 'cn.com.glsx.merchants.staff.updateStaff'
...@@ -312,7 +309,7 @@ ...@@ -312,7 +309,7 @@
layer.msg('操作成功', { layer.msg('操作成功', {
icon: 1 icon: 1
}) })
window.history.back() // window.history.back()
} }
}) })
return false return false
...@@ -326,7 +323,7 @@ ...@@ -326,7 +323,7 @@
// select 选择触发 // select 选择触发
form.on('select(merchants)', function (data) { form.on('select(merchants)', function (data) {
console.log(data.value) console.log(data.value)
var merchantId = data.value merchantId = data.value
getList(merchantId) getList(merchantId)
}) })
......
...@@ -117,7 +117,6 @@ ...@@ -117,7 +117,6 @@
// findMenuFunTreeByMerId() // findMenuFunTreeByMerId()
} }
var merchantName = $('#merchantName') var merchantName = $('#merchantName')
findAllMerchant()
// start // start
var laytpl = layui.laytpl var laytpl = layui.laytpl
var xmSelect = layui.xmSelect var xmSelect = layui.xmSelect
...@@ -313,7 +312,7 @@ ...@@ -313,7 +312,7 @@
// 调用新增接口 // 调用新增接口
function insert(delFlag, formVal) { function insert(delFlag, formVal) {
var otherParams = { var otherParams = {
// merchantId: merchantId, merchantId: merchantId,
delFlag: delFlag delFlag: delFlag
} }
if (requestList.length != 0) { if (requestList.length != 0) {
...@@ -327,7 +326,7 @@ ...@@ -327,7 +326,7 @@
} else { } else {
otherParams.method = 'org.ore.api.role.insert' otherParams.method = 'org.ore.api.role.insert'
} }
var params = helper.clone(true, otherParams, formVal) var params = helper.clone(true, formVal, otherParams)
delete params.select delete params.select
console.log(params) console.log(params)
request(params, function(res) { request(params, function(res) {
...@@ -351,6 +350,7 @@ ...@@ -351,6 +350,7 @@
// callback(res.data) // callback(res.data)
menuFunTreeData = res.data menuFunTreeData = res.data
var accountType = $('#accountType') var accountType = $('#accountType')
accountType.empty()
$.each(menuFunTreeData, function(index, item) { $.each(menuFunTreeData, function(index, item) {
console.log(item) console.log(item)
var str = $('<input lay-filter="switch" type="checkbox" name="accounttypeId" value="' + item.accounttypeId + '" title="' + item.accounttypeName + '" />') var str = $('<input lay-filter="switch" type="checkbox" name="accounttypeId" value="' + item.accounttypeId + '" title="' + item.accounttypeName + '" />')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!