Commit ad4eebb9 by 前端

修复只有一级主营品牌bug

1 parent f533156d
......@@ -792,7 +792,6 @@
focusElem.css(verifyType == 'radio' ? { color: '' } : { 'border-color': '' })
})
.focus()
console.log(222)
return '必填项不能为空'
}
}
......@@ -915,6 +914,7 @@
// if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true)
// params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',')
if (treeObj) {
let getCheckedNodes = treeObj.getCheckedNodes(true)
const getCheckedKeys = treeObj.getCheckedNodes(true).map(item => item.id)
// getCheckedNodes = getCheckedNodes.filter(item => item.children)
......@@ -923,6 +923,7 @@
let parent = childCheckNodes.map(item => {
return item.getParentNode()
})
parent = parent.filter(item => item !== null)
const removeDuplicateObj = arr => {
let obj = {}
arr = arr.reduce((newArr, next) => {
......@@ -969,7 +970,6 @@
} else {
params.status = 1
}
console.log(params)
verifyMerchantName(params.merchantName,params)
// request(params, function (res) {
......@@ -1012,7 +1012,6 @@
}, function(index, layero){
//按钮【按钮一】的回调
layer.close(index);
layer.close(loading)
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!