Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
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 fbf6891a
authored
Nov 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
1d9f84e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
fbf6891
...
@@ -950,7 +950,9 @@ function prepareExecuteFindMenuFun(){
...
@@ -950,7 +950,9 @@ function prepareExecuteFindMenuFun(){
accountLevel
:
_currentMerchantLevel
accountLevel
:
_currentMerchantLevel
}
}
}
}
getById
(
_superMerchantInfo
?.
parentId
,
rolePageParams
)
getById
(
// _superMerchantInfo?.parentId
rolePageParams
)
// findMenuFunTreeByMerId(rolePageParams)
// findMenuFunTreeByMerId(rolePageParams)
}
}
function
clearRoleAuthTabContent
()
{
function
clearRoleAuthTabContent
()
{
...
@@ -2592,6 +2594,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2592,6 +2594,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
console
.
log
(
'menuFunTreeData'
,
menuFunTreeData
)
console
.
log
(
'menuFunTreeData'
,
menuFunTreeData
)
console
.
log
(
'_initFactoryCheckArr'
,
_initFactoryCheckArr
)
console
.
log
(
'_initFactoryCheckArr'
,
_initFactoryCheckArr
)
// 下周优化
if
(
_initFactoryCheckArr
&&
_currentMerchantLevel
==
1
){
if
(
_initFactoryCheckArr
&&
_currentMerchantLevel
==
1
){
menuFunTreeData
.
forEach
(
item
=>
{
menuFunTreeData
.
forEach
(
item
=>
{
if
(
!
_initFactoryCheckArr
.
some
(
initItem
=>
initItem
.
accounttypeId
==
item
.
accounttypeId
)){
if
(
!
_initFactoryCheckArr
.
some
(
initItem
=>
initItem
.
accounttypeId
==
item
.
accounttypeId
)){
...
@@ -2599,11 +2602,17 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2599,11 +2602,17 @@ loadSuperiorMerchants(currentPage).then(function(list) {
_initFactoryCheckArr
.
push
(
newItem
)
_initFactoryCheckArr
.
push
(
newItem
)
}
}
})
})
}
else
{
menuFunTreeData
.
forEach
(
item
=>
{
if
(
!
check_arr
.
some
(
initItem
=>
initItem
.
accounttypeId
==
item
.
accounttypeId
)){
const
newItem
=
{...
item
,
products
:[]}
check_arr
.
push
(
newItem
)
}
}
})
}
console
.
log
(
check_arr
)
check_arr
=
_currentMerchantLevel
==
1
?
_initFactoryCheckArr
:
check_arr
.
filter
(
item
=>
_currentaccountType
.
includes
(
String
(
item
.
accounttypeId
))))
check_arr
=
_currentMerchantLevel
==
1
?
_initFactoryCheckArr
:
check_arr
.
filter
(
item
=>
_currentaccountType
.
includes
(
String
(
item
.
accounttypeId
)))
var
accountType
=
$
(
'#accountType'
)
var
accountType
=
$
(
'#accountType'
)
accountType
.
empty
()
accountType
.
empty
()
...
@@ -2659,14 +2668,13 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2659,14 +2668,13 @@ loadSuperiorMerchants(currentPage).then(function(list) {
}
}
// 根据id获取角色详情
// 根据id获取角色详情
function
getById
(
parentIdToCheckArr
,
rolePageParams
)
{
// parentIdToCheckArr
console
.
log
(
function
getById
(
rolePageParams
)
{
'parentIdToCheckArr'
,
parentIdToCheckArr
,
'rolePageParams'
,
rolePageParams
)
var
params
=
{
var
params
=
{
method
:
'merchants.api.merchant.findPermissionsByMerId'
,
method
:
'merchants.api.merchant.findPermissionsByMerId'
,
id
:
parentIdToCheckArr
?
parentIdToCheckArr
:
merchantId
// parentIdToCheckArr ? parentIdToCheckArr :
id
:
merchantId
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
...
...
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