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 1cb01107
authored
Nov 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xiugai
1 parent
0a758ac6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
src/views/account/components/selectProduct.vue
src/views/role/components/selectProduct.vue
src/views/account/components/selectProduct.vue
View file @
1cb0110
...
@@ -350,6 +350,14 @@ export default {
...
@@ -350,6 +350,14 @@ export default {
}
}
})
})
}
}
if
(
functionIdList
.
length
!==
0
)
{
functionIdList
.
forEach
(
i
=>
{
list
.
push
({
id
:
i
.
parentId
,
menuId
:
i
.
superParentId
})
})
}
console
.
log
(
menuIdList
,
functionIdList
,
functionValueIdLists
,
list
)
console
.
log
(
menuIdList
,
functionIdList
,
functionValueIdLists
,
list
)
if
(
this
.
roleType
)
{
if
(
this
.
roleType
)
{
productList
.
push
({
productList
.
push
({
...
@@ -379,6 +387,7 @@ export default {
...
@@ -379,6 +387,7 @@ export default {
}
}
}
}
})
})
console
.
log
(
this
.
accountTypes
)
return
this
.
accountTypes
return
this
.
accountTypes
}
}
},
},
...
...
src/views/role/components/selectProduct.vue
View file @
1cb0110
...
@@ -359,6 +359,14 @@ export default {
...
@@ -359,6 +359,14 @@ export default {
}
}
})
})
}
}
if
(
functionIdList
.
length
!==
0
)
{
functionIdList
.
forEach
(
i
=>
{
list
.
push
({
id
:
i
.
parentId
,
menuId
:
i
.
superParentId
})
})
}
console
.
log
(
menuIdList
,
functionIdList
,
functionValueIdLists
,
list
)
console
.
log
(
menuIdList
,
functionIdList
,
functionValueIdLists
,
list
)
if
(
this
.
roleType
)
{
if
(
this
.
roleType
)
{
productList
.
push
({
productList
.
push
({
...
@@ -370,8 +378,8 @@ export default {
...
@@ -370,8 +378,8 @@ export default {
}
else
{
}
else
{
products
.
push
({
products
.
push
({
productId
:
itm
.
productId
,
productId
:
itm
.
productId
,
functionIds
:
functionIdL
ist
,
functionIds
:
l
ist
,
functionValue
:
list
,
//
functionValue: list,
menuIds
:
menuIdList
menuIds
:
menuIdList
})
})
}
}
...
@@ -388,6 +396,7 @@ export default {
...
@@ -388,6 +396,7 @@ export default {
}
}
}
}
})
})
console
.
log
(
this
.
accountTypes
,
' =-=-=-=-=='
)
return
this
.
accountTypes
return
this
.
accountTypes
}
}
},
},
...
...
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