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
7 years ago
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同上
parent
c7992241
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
39 deletions
+1
-39
app.js
src/main/websrc/js/app/app.js
+1
-39
No files found.
src/main/websrc/js/app/app.js
View file @
dfb39bf3
...
...
@@ -181,37 +181,6 @@
$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
){
if
(
$scope
.
channelAlert
){
return
false
;
...
...
@@ -245,13 +214,6 @@
}
if
(
$rootScope
.
isSuper
||
$rootScope
.
isManage
||
$rootScope
.
isAppManage
){
return
true
;
}
else
{
if
(
$rootScope
.
curRoleAuth
){
return
$scope
.
hasTheMenu
(
name
,
flag
);
}
else
{
return
false
;
}
}
}
$rootScope
.
hasEditPower
=
function
(){
...
...
@@ -378,7 +340,7 @@
ToolService
.
getMenuSubmitData
(
n
);
}
});
$scope
.
pwdPlacehold
=
"仅支持数字,大小写字母,且至少包含其中2种,长度限制为6-18位"
;
}
})();
This diff is collapsed.
Click to expand it.
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