Commit 6cc3f3bc by 胡悦

修改

1 parent fc2af01a
...@@ -1731,21 +1731,23 @@ ...@@ -1731,21 +1731,23 @@
productData.products.forEach(j => { productData.products.forEach(j => {
var products = item.products.find(n => n.productId == j.productId) var products = item.products.find(n => n.productId == j.productId)
console.log(products) console.log(products)
active.treeTabAdd( if (products) {
{ active.treeTabAdd(
name: j.productName, {
value: j.productId name: j.productName,
}, value: j.productId
item.accounttypeId, },
products.merchantProTreeResponses, item.accounttypeId,
j.menuIds products.merchantProTreeResponses,
) j.menuIds
if (products.merchantProTreeResponses.length == 0) { )
$(`#nomenutab_${id}_${j.productId}`).removeClass('hide') if (products.merchantProTreeResponses.length == 0) {
$(`#nomenutab_${id}_${j.productId}`).addClass('show') $(`#nomenutab_${id}_${j.productId}`).removeClass('hide')
} else { $(`#nomenutab_${id}_${j.productId}`).addClass('show')
$(`#nomenutab_${id}_${j.productId}`).removeClass('show') } else {
$(`#nomenutab_${id}_${j.productId}`).addClass('hide') $(`#nomenutab_${id}_${j.productId}`).removeClass('show')
$(`#nomenutab_${id}_${j.productId}`).addClass('hide')
}
} }
}) })
var filterName = 'treeTab' + item.accounttypeId var filterName = 'treeTab' + item.accounttypeId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!