Commit 1ffcdf4f by 胡悦

提交

1 parent 36786c88
......@@ -215,7 +215,6 @@
getById(function(checkedList) {
visibleMerchant = tree.create('visibleInferiorMerTree', res.data, {checkedList: checkedList})
})
console.log('---')
all_nodes = visibleMerchant.getNodes()
bindEvent()
} else {
......@@ -299,7 +298,6 @@
// 提交表单
form.on('submit(employeeSubmit)', function(data) {
console.log(data, 'llll')
var visibleInferiorMer = visibleMerchant.getCheckedNodes(true).map(function(i) {
return i.id
}).join(',')
......@@ -312,23 +310,21 @@
otherParams.merchantFileRequest = JSON.stringify(merchantFileRequest)
}
if (id) {
console.log(id)
otherParams.id = id
otherParams.method = 'cn.com.glsx.merchants.staff.updateStaff'
} else {
otherParams.method = 'cn.com.glsx.merchants.staff.saveStaff'
}x
}
var params = helper.clone(true, data.field, otherParams)
delete params.merhcnatImg
console.log(params)
// request(params, function (result) {
// if (result.code == '0') {
// window.history.back()
// layer.msg('操作成功', {
// icon: 1
// })
// }
// })
request(params, function (result) {
if (result.code == '0') {
window.history.back()
layer.msg('操作成功', {
icon: 1
})
}
})
return false
})
......@@ -361,13 +357,10 @@
function bindEvent() {
$('#searchMerchant').on('input', helper.debounce(function () {
var txt = $(this).val()
console.log(txt)
if (!txt) {
console.log(all_nodes,' ----1111111111')
visibleMerchant.showNodes(all_nodes)
} else {
var show_nodes = visibleMerchant.getNodesByParamFuzzy('label', txt)
console.log(show_nodes, all_nodes)
visibleMerchant.hideNodes(all_nodes)
visibleMerchant.showNodes(show_nodes)
}
......
......@@ -264,7 +264,6 @@
// console.log(obj)
var eventName = obj.event
var row = obj.data
// console.log(row)
switch (eventName) {
// 查看
case 'handleDetail':
......@@ -311,7 +310,8 @@
// 创建员工
case 'handleAddStaff':
go('employee', 'add', {
merchantId: row.id
merchantId: row.id,
merchantName: row.merchantName
})
break
// 修改账户有效期
......
......@@ -444,8 +444,8 @@
$.each(functionIdLists, function(idx, m) {
// console.log(m)
functionIdList.push({
functionId: m.parentId,
mendId: m.superParentId
id: m.parentId,
menuId: m.superParentId
})
})
productList.push({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!