Commit 75718c49 by 胡悦

提交角色、员工

1 parent 6068177f
......@@ -35,7 +35,7 @@
}
.detail .wrapper-tree {
width:230px;
/* width:230px; */
overflow:auto;
margin-left: 50px;
}
......
......@@ -290,15 +290,12 @@
})
.join(',')
var otherParams = {
visibleInferiorMer: visibleInferiorMer
// merchantId: merchantId
visibleInferiorMer: visibleInferiorMer,
merchantId: merchantId
}
if (merchantFileRequest.fileName) {
otherParams.merchantFileRequest = JSON.stringify(merchantFileRequest)
}
if (qs('channel')) {
otherParams.merchantId = merchantId
}
if (id) {
otherParams.id = id
otherParams.method = 'cn.com.glsx.merchants.staff.updateStaff'
......@@ -312,7 +309,7 @@
layer.msg('操作成功', {
icon: 1
})
window.history.back()
// window.history.back()
}
})
return false
......@@ -326,7 +323,7 @@
// select 选择触发
form.on('select(merchants)', function (data) {
console.log(data.value)
var merchantId = data.value
merchantId = data.value
getList(merchantId)
})
......
......@@ -117,7 +117,6 @@
// findMenuFunTreeByMerId()
}
var merchantName = $('#merchantName')
findAllMerchant()
// start
var laytpl = layui.laytpl
var xmSelect = layui.xmSelect
......@@ -313,7 +312,7 @@
// 调用新增接口
function insert(delFlag, formVal) {
var otherParams = {
// merchantId: merchantId,
merchantId: merchantId,
delFlag: delFlag
}
if (requestList.length != 0) {
......@@ -327,7 +326,7 @@
} else {
otherParams.method = 'org.ore.api.role.insert'
}
var params = helper.clone(true, otherParams, formVal)
var params = helper.clone(true, formVal, otherParams)
delete params.select
console.log(params)
request(params, function(res) {
......@@ -351,6 +350,7 @@
// callback(res.data)
menuFunTreeData = res.data
var accountType = $('#accountType')
accountType.empty()
$.each(menuFunTreeData, function(index, item) {
console.log(item)
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!