Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8c86e214
authored
Nov 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改树组件
1 parent
86058006
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
5 deletions
src/views/account/components/selectProduct.vue
src/views/role/components/selectProduct.vue
src/views/account/components/selectProduct.vue
View file @
8c86e21
This diff is collapsed.
Click to expand it.
src/views/role/components/selectProduct.vue
View file @
8c86e21
...
@@ -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
:
functionIdL
ist
,
functionIdList
:
l
ist
,
// functionValue: list,
// functionValue: list,
menuIdList
:
menuIdList
menuIdList
:
menuIdList
})
})
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment