Commit ad4eebb9 by 前端

修复只有一级主营品牌bug

1 parent f533156d
...@@ -792,7 +792,6 @@ ...@@ -792,7 +792,6 @@
focusElem.css(verifyType == 'radio' ? { color: '' } : { 'border-color': '' }) focusElem.css(verifyType == 'radio' ? { color: '' } : { 'border-color': '' })
}) })
.focus() .focus()
console.log(222)
return '必填项不能为空' return '必填项不能为空'
} }
} }
...@@ -915,6 +914,7 @@ ...@@ -915,6 +914,7 @@
// if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true) // if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true)
// params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',') // params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',')
if (treeObj) { if (treeObj) {
let getCheckedNodes = treeObj.getCheckedNodes(true) let getCheckedNodes = treeObj.getCheckedNodes(true)
const getCheckedKeys = treeObj.getCheckedNodes(true).map(item => item.id) const getCheckedKeys = treeObj.getCheckedNodes(true).map(item => item.id)
// getCheckedNodes = getCheckedNodes.filter(item => item.children) // getCheckedNodes = getCheckedNodes.filter(item => item.children)
...@@ -923,6 +923,7 @@ ...@@ -923,6 +923,7 @@
let parent = childCheckNodes.map(item => { let parent = childCheckNodes.map(item => {
return item.getParentNode() return item.getParentNode()
}) })
parent = parent.filter(item => item !== null)
const removeDuplicateObj = arr => { const removeDuplicateObj = arr => {
let obj = {} let obj = {}
arr = arr.reduce((newArr, next) => { arr = arr.reduce((newArr, next) => {
...@@ -969,7 +970,6 @@ ...@@ -969,7 +970,6 @@
} else { } else {
params.status = 1 params.status = 1
} }
console.log(params)
verifyMerchantName(params.merchantName,params) verifyMerchantName(params.merchantName,params)
// request(params, function (res) { // request(params, function (res) {
...@@ -1012,7 +1012,6 @@ ...@@ -1012,7 +1012,6 @@
}, function(index, layero){ }, function(index, layero){
//按钮【按钮一】的回调 //按钮【按钮一】的回调
layer.close(index); 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!