Commit b53108c7 by cwq0219

Merge branch 'master' of http://192.168.3.233:8090/h5/account

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