Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
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
reyun
saasio
Commits
dfb39bf3
Commit
dfb39bf3
authored
Feb 27, 2018
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同上
parent
c7992241
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
app.js
src/main/websrc/js/app/app.js
+0
-38
No files found.
src/main/websrc/js/app/app.js
View file @
dfb39bf3
...
@@ -181,37 +181,6 @@
...
@@ -181,37 +181,6 @@
$scope
.
$broadcast
(
"conentresize"
,
true
);
$scope
.
$broadcast
(
"conentresize"
,
true
);
}
}
//flag:1一级菜单显示权限 2:编辑权限
$rootScope
.
hasTheMenu
=
function
(
name
,
flag
,
getmenus
){
var
menus
=
$rootScope
.
curRoleAuth
.
roleAuthDetailList
.
filter
(
function
(
item
){
if
(
angular
.
isDefined
(
flag
)
&&
flag
==
1
){
if
(
$rootScope
.
isweb
){
return
item
.
parentAuth
==
name
&&
$scope
.
webHideMenus
.
indexOf
(
item
.
auth
)
==-
1
;
}
else
{
return
item
.
parentAuth
==
name
;
}
}
if
(
angular
.
isDefined
(
flag
)
&&
flag
==
2
){
return
item
.
auth
==
name
&&
item
.
edit
==
true
;
}
else
{
if
(
name
==
'export'
){
return
$rootScope
.
hasTheMenu
(
name
,
1
);
}
else
{
return
item
.
auth
==
name
&&
item
.
view
==
true
;
}
}
});
if
(
angular
.
isDefined
(
getmenus
)){
return
menus
;
}
else
{
return
menus
.
length
>
0
;
}
}
$rootScope
.
showSubMenus
=
function
(
mainMenu
){
$rootScope
.
showSubMenus
=
function
(
mainMenu
){
if
(
$scope
.
channelAlert
){
if
(
$scope
.
channelAlert
){
return
false
;
return
false
;
...
@@ -245,13 +214,6 @@
...
@@ -245,13 +214,6 @@
}
}
if
(
$rootScope
.
isSuper
||
$rootScope
.
isManage
||
$rootScope
.
isAppManage
){
if
(
$rootScope
.
isSuper
||
$rootScope
.
isManage
||
$rootScope
.
isAppManage
){
return
true
;
return
true
;
}
else
{
if
(
$rootScope
.
curRoleAuth
){
return
$scope
.
hasTheMenu
(
name
,
flag
);
}
else
{
return
false
;
}
}
}
}
}
$rootScope
.
hasEditPower
=
function
(){
$rootScope
.
hasEditPower
=
function
(){
...
...
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