Commit 2e0bef84 by 胡悦

修改商户树组件

1 parent 20fc3cf8
...@@ -227,7 +227,6 @@ export default { ...@@ -227,7 +227,6 @@ export default {
const nodes = document.getElementsByClassName('fun-tree-node') const nodes = document.getElementsByClassName('fun-tree-node')
for (let i = 0; i < nodes.length; i++) { for (let i = 0; i < nodes.length; i++) {
const parentNode = nodes[i].parentNode.parentNode const parentNode = nodes[i].parentNode.parentNode
console.log(parentNode)
parentNode.style.float = 'left' parentNode.style.float = 'left'
} }
}, },
...@@ -338,8 +337,8 @@ export default { ...@@ -338,8 +337,8 @@ export default {
/** { menuId, id, functionValue} */ /** { menuId, id, functionValue} */
if (functionValueIdLists.length !== 0) { if (functionValueIdLists.length !== 0) {
functionValueIdLists.forEach((j, index) => { functionValueIdLists.forEach((j, index) => {
if (list.map(item => item.id).includes(j.parentId)) { if (list.map(item => item.functionId).includes(j.parentId)) {
const obj = list.find(k => k.id === j.parentId) const obj = list.find(k => k.functionId === j.parentId)
obj.functionValue += ';' + j.id + ':' + j.label obj.functionValue += ';' + j.id + ':' + j.label
} else { } else {
list.push({ list.push({
...@@ -353,7 +352,7 @@ export default { ...@@ -353,7 +352,7 @@ export default {
if (functionIdList.length !== 0) { if (functionIdList.length !== 0) {
functionIdList.forEach(i => { functionIdList.forEach(i => {
list.push({ list.push({
id: i.parentId, functionId: i.parentId,
menuId: i.superParentId menuId: i.superParentId
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!