Commit 8c86e214 by 胡悦

修改树组件

1 parent 86058006
...@@ -98,13 +98,11 @@ export default { ...@@ -98,13 +98,11 @@ export default {
// 设置全选 // 设置全选
var arr = tabMenu.find(i => i.accounttypeId == tabName).products.find(j => j.productId == productTab).merchantProTreeResponses var arr = tabMenu.find(i => i.accounttypeId == tabName).products.find(j => j.productId == productTab).merchantProTreeResponses
this.$refs[`tree_${tabName}_${productTab}`] ? this.$refs[`tree_${tabName}_${productTab}`][0].setCheckedKeys(this.getAllId(arr)) : '' this.$refs[`tree_${tabName}_${productTab}`] ? this.$refs[`tree_${tabName}_${productTab}`][0].setCheckedKeys(this.getAllId(arr)) : ''
console.log(tabMenu)
}, },
productClick(productId) { productClick(productId) {
this.productTab = productId this.productTab = productId
}, },
findMenuFunTree(id, status) { findMenuFunTree(id, status) {
console.log(id, status)
let tabMenu = util.deepClone(this.tabMenu_r) let tabMenu = util.deepClone(this.tabMenu_r)
let menu = tabMenu.filter(item => item.accounttypeId == id) let menu = tabMenu.filter(item => item.accounttypeId == id)
let index = tabMenu.findIndex(item => item.accounttypeId == id) let index = tabMenu.findIndex(item => item.accounttypeId == id)
...@@ -160,7 +158,6 @@ export default { ...@@ -160,7 +158,6 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.addStyle() this.addStyle()
}) })
console.log(this.accountList)
this.accountTypes = tabMenu.map(item => { this.accountTypes = tabMenu.map(item => {
return { return {
products: null, products: null,
...@@ -203,7 +200,6 @@ export default { ...@@ -203,7 +200,6 @@ export default {
this.accountList = util.deepClone(this.tabMenu_s) this.accountList = util.deepClone(this.tabMenu_s)
this.tabMenu_x.forEach(item => { this.tabMenu_x.forEach(item => {
this.accountList.forEach(itm => { this.accountList.forEach(itm => {
console.log(itm)
if (item.accounttypeId == itm.accounttypeId) { if (item.accounttypeId == itm.accounttypeId) {
this.tabMenu.push(itm) this.tabMenu.push(itm)
item.products.forEach(i => { item.products.forEach(i => {
...@@ -367,7 +363,7 @@ export default { ...@@ -367,7 +363,7 @@ export default {
if (this.roleType) { if (this.roleType) {
productList.push({ productList.push({
productId: itm.productId, productId: itm.productId,
functionIdList: functionIdList, functionIdList: list,
// functionValue: list, // functionValue: list,
menuIdList: menuIdList menuIdList: menuIdList
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!