Commit 6cc3f3bc by 胡悦

修改

1 parent fc2af01a
......@@ -1731,21 +1731,23 @@
productData.products.forEach(j => {
var products = item.products.find(n => n.productId == j.productId)
console.log(products)
active.treeTabAdd(
{
name: j.productName,
value: j.productId
},
item.accounttypeId,
products.merchantProTreeResponses,
j.menuIds
)
if (products.merchantProTreeResponses.length == 0) {
$(`#nomenutab_${id}_${j.productId}`).removeClass('hide')
$(`#nomenutab_${id}_${j.productId}`).addClass('show')
} else {
$(`#nomenutab_${id}_${j.productId}`).removeClass('show')
$(`#nomenutab_${id}_${j.productId}`).addClass('hide')
if (products) {
active.treeTabAdd(
{
name: j.productName,
value: j.productId
},
item.accounttypeId,
products.merchantProTreeResponses,
j.menuIds
)
if (products.merchantProTreeResponses.length == 0) {
$(`#nomenutab_${id}_${j.productId}`).removeClass('hide')
$(`#nomenutab_${id}_${j.productId}`).addClass('show')
} else {
$(`#nomenutab_${id}_${j.productId}`).removeClass('show')
$(`#nomenutab_${id}_${j.productId}`).addClass('hide')
}
}
})
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!