Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
6b5cea23
Commit
6b5cea23
authored
Jun 08, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 权限数据
parent
b8010d2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
button-code.js
menu-data/button-code.js
+1
-1
create-menu-json.js
menu-data/create-menu-json.js
+16
-1
result.xlsx
menu-data/result.xlsx
+0
-0
No files found.
menu-data/button-code.js
View file @
6b5cea23
...
@@ -175,7 +175,7 @@ module.exports = {
...
@@ -175,7 +175,7 @@ module.exports = {
},
},
monthList
:
{
monthList
:
{
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
monthTarget
:
[
'门店月指标'
,
1
,
0
,
'storeMonthTask'
],
monthTarget
:
[
'门店月指标'
,
0
,
0
,
'storeMonthTask'
],
// 2.商户日权重 (按钮,控制“商户日权重月指标”页面内所有操作权限);
// 2.商户日权重 (按钮,控制“商户日权重月指标”页面内所有操作权限);
dayTarget
:
[
'商户日权重'
,
1
,
0
,
'companyDaySet'
]
dayTarget
:
[
'商户日权重'
,
1
,
0
,
'companyDaySet'
]
},
},
...
...
menu-data/create-menu-json.js
View file @
6b5cea23
...
@@ -168,7 +168,22 @@ function createXls() {
...
@@ -168,7 +168,22 @@ function createXls() {
})
})
}
}
})
})
// return
let
rightErr
=
false
;
menuJson
.
forEach
(
el
=>
{
if
(
el
.
isRight
==
0
)
{
const
result
=
[]
menuJson
.
forEach
(
item
=>
{
if
(
item
.
parentCode
==
el
.
menuCode
&&
item
.
isRight
==
1
)
{
result
.
push
(
item
);
}
})
if
(
result
.
length
>
0
)
{
rightErr
=
true
;
console
.
log
(
result
,
'不受权限控制的页面下不可以挂受权限控制的子页面'
)
}
}
})
if
(
rightErr
)
return
;
const
jsonArray
=
[...
menuJson
,
...
buttonJson
].
map
(
item
=>
{
const
jsonArray
=
[...
menuJson
,
...
buttonJson
].
map
(
item
=>
{
return
{
return
{
'菜单名称'
:
item
.
menuName
,
'菜单名称'
:
item
.
menuName
,
...
...
menu-data/result.xlsx
View file @
6b5cea23
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment