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
0118f774
Commit
0118f774
authored
Feb 27, 2018
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js埋点
parent
ec849f08
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
198 additions
and
91 deletions
+198
-91
Gruntfile.js
Gruntfile.js
+7
-7
index.html
src/main/websrc/index.html
+4
-2
HttpService.js
src/main/websrc/js/app/HttpService.js
+36
-36
ToolService.js
src/main/websrc/js/app/ToolService.js
+92
-1
app.js
src/main/websrc/js/app/app.js
+12
-25
config.js
src/main/websrc/js/app/config.js
+8
-2
directive.js
src/main/websrc/js/app/directive.js
+1
-12
custommenu.js
src/main/websrc/js/collect/custommenu.js
+5
-0
eventstats.js
src/main/websrc/js/collect/eventstats.js
+2
-0
funnel.js
src/main/websrc/js/collect/funnel.js
+4
-0
intelligentpath.js
src/main/websrc/js/collect/intelligentpath.js
+2
-0
report.js
src/main/websrc/js/collect/report.js
+1
-1
app.js
src/main/websrc/js/manage/app.js
+5
-0
auth.js
src/main/websrc/js/manage/auth.js
+5
-0
channel.js
src/main/websrc/js/manage/channel.js
+5
-0
usergroup.js
src/main/websrc/js/manage/usergroup.js
+4
-0
export.html
src/main/websrc/template/common/export.html
+1
-1
collect.html
src/main/websrc/template/menu/collect.html
+4
-4
No files found.
Gruntfile.js
View file @
0118f774
...
@@ -51,8 +51,8 @@ module.exports = function(grunt) {
...
@@ -51,8 +51,8 @@ module.exports = function(grunt) {
connect
:
{
connect
:
{
proxies
:
[{
proxies
:
[{
context
:
[
'/api'
],
context
:
[
'/api'
],
host
:
'localhost'
,
//
host: 'localhost',
//host: '192.168.2.9
',
host
:
'192.168.2.37
'
,
port
:
8091
,
port
:
8091
,
https
:
false
,
https
:
false
,
xforward
:
true
,
xforward
:
true
,
...
@@ -152,7 +152,7 @@ module.exports = function(grunt) {
...
@@ -152,7 +152,7 @@ module.exports = function(grunt) {
}
}
}
}
},
},
useminPrepare
:
{
useminPrepare
:
{
html
:
[
"<%= yeoman.app %>/index.html"
,
"<%= yeoman.app %>/login.html"
,
"<%= yeoman.app %>/activation.html"
,
"<%= yeoman.app %>/failure.html"
,
"<%= yeoman.app %>/forget.html"
,
"<%= yeoman.app %>/register.html"
,
"<%= yeoman.app %>/success.html"
,
"<%= yeoman.app %>/resetpwd.html"
,
"<%= yeoman.app %>/olduser.html"
,
"<%= yeoman.app %>/demo.html"
,
"<%= yeoman.app %>/home.html"
,
"<%= yeoman.app %>/main.html"
],
html
:
[
"<%= yeoman.app %>/index.html"
,
"<%= yeoman.app %>/login.html"
,
"<%= yeoman.app %>/activation.html"
,
"<%= yeoman.app %>/failure.html"
,
"<%= yeoman.app %>/forget.html"
,
"<%= yeoman.app %>/register.html"
,
"<%= yeoman.app %>/success.html"
,
"<%= yeoman.app %>/resetpwd.html"
,
"<%= yeoman.app %>/olduser.html"
,
"<%= yeoman.app %>/demo.html"
,
"<%= yeoman.app %>/home.html"
,
"<%= yeoman.app %>/main.html"
],
options
:
{
options
:
{
...
@@ -217,13 +217,13 @@ module.exports = function(grunt) {
...
@@ -217,13 +217,13 @@ module.exports = function(grunt) {
"template/**/*.jpg"
,
"template/**/*.jpg"
,
"*.ico"
"*.ico"
]
]
},
},
{
{
expand
:
true
,
expand
:
true
,
cwd
:
".tmp/images"
,
cwd
:
".tmp/images"
,
dest
:
"<%= yeoman.dist %>/images"
,
dest
:
"<%= yeoman.dist %>/images"
,
src
:
[
"generated/*"
]
src
:
[
"generated/*"
]
},
},
{
{
expand
:
true
,
expand
:
true
,
cwd
:
""
,
cwd
:
""
,
...
@@ -327,7 +327,7 @@ module.exports = function(grunt) {
...
@@ -327,7 +327,7 @@ module.exports = function(grunt) {
else
{
else
{
dd
.
setDate
(
m
-
i
);
dd
.
setDate
(
m
-
i
);
}
}
arr
.
unshift
(
this
.
date
(
dd
,
'YYYY-MM-DD'
));
arr
.
unshift
(
this
.
date
(
dd
,
'YYYY-MM-DD'
));
}
}
return
arr
;
return
arr
;
...
@@ -388,6 +388,6 @@ module.exports = function(grunt) {
...
@@ -388,6 +388,6 @@ module.exports = function(grunt) {
});
});
grunt
.
registerTask
(
"build"
,
[
"clean:dist"
,
"useminPrepare"
,
"concurrent:dist"
,
"copy:dist"
,
"concat"
,
"cssmin"
,
"uglify"
,
"usemin"
]);
grunt
.
registerTask
(
"build"
,
[
"clean:dist"
,
"useminPrepare"
,
"concurrent:dist"
,
"copy:dist"
,
"concat"
,
"cssmin"
,
"uglify"
,
"usemin"
]);
return
grunt
.
registerTask
(
"default"
,
[
"build"
]);
return
grunt
.
registerTask
(
"default"
,
[
"build"
]);
};
};
src/main/websrc/index.html
View file @
0118f774
...
@@ -89,8 +89,8 @@
...
@@ -89,8 +89,8 @@
</div>
</div>
<div
class=
"rightHeader clearfix"
>
<div
class=
"rightHeader clearfix"
>
<div
class=
"mainMenu"
ng-class=
"{'mainShow':hasMenuFlag || isall}"
>
<div
class=
"mainMenu"
ng-class=
"{'mainShow':hasMenuFlag || isall}"
>
<div
ng-class=
"{'active':mainMenu=='behavior'}"
ng-click=
"showSubMenus('behavior')"
ng-if=
"showMenuFlag.behavior || isall"
>
行为分析
</div>
<div
ng-class=
"{'active':mainMenu=='behavior'}"
ng-click=
"showSubMenus('behavior')"
>
行为分析
</div>
<
!-- <div ng-class="{'active':mainMenu=='export'}" ng-click="showSubMenus('export')" ng-if="showMenuFlag.export || isall">数据导出</div> --
>
<
div
ng-class=
"{'active':mainMenu=='export'}"
ng-click=
"showSubMenus('export')"
>
数据导出
</div
>
<div
ng-class=
"{'active':mainMenu=='management'}"
ng-click=
"showSubMenus('management')"
>
管理中心
</div>
<div
ng-class=
"{'active':mainMenu=='management'}"
ng-click=
"showSubMenus('management')"
>
管理中心
</div>
</div>
</div>
...
@@ -236,5 +236,7 @@
...
@@ -236,5 +236,7 @@
</div>
</div>
<div
class=
"helpTipWrap winTips"
id=
"winTC"
></div>
<div
class=
"helpTipWrap winTips"
id=
"winTC"
></div>
</div>
</div>
<div
class=
"alphaDiv"
ng-if=
"ioAlert && byflow && ioPercentRel <= 0.2 && behaviorAuth && !flowRestrict"
style=
"z-index: 997"
></div>
<div
class=
"alphaDiv"
ng-if=
"ioDateAlert && pastLong <= 30 && behaviorAuth && !flowRestrict"
style=
"z-index: 997"
></div>
</body>
</body>
</html>
</html>
src/main/websrc/js/app/HttpService.js
View file @
0118f774
...
@@ -5,33 +5,33 @@
...
@@ -5,33 +5,33 @@
function
httpService
(
$http
,
$q
,
UtilService
){
function
httpService
(
$http
,
$q
,
UtilService
){
var
service
=
{};
var
service
=
{};
service
.
loginTimeout
=
function
(
data
)
{
service
.
loginTimeout
=
function
(
data
)
{
if
(
data
!=
null
&&
data
.
code
&&
data
.
code
==
-
1002
){
if
(
data
!=
null
&&
data
.
code
&&
data
.
code
==
-
1002
){
service
.
logOutCookie
();
service
.
logOutCookie
();
}
}
};
};
service
.
noLogin
=
function
(
url
){
service
.
noLogin
=
function
(
url
){
if
(
angular
.
isUndefined
(
url
)
||
url
.
indexOf
(
'login'
)
==-
1
){
if
(
angular
.
isUndefined
(
url
)
||
url
.
indexOf
(
'login'
)
==-
1
){
var
loginuserId
=
UtilService
.
getCookie
(
"ryioUid"
);
var
loginuserId
=
UtilService
.
getCookie
(
"ryioUid"
);
if
(
UtilService
.
isNullStr
(
loginuserId
)){
if
(
UtilService
.
isNullStr
(
loginuserId
)){
service
.
logOutCookie
();
service
.
logOutCookie
();
}
}
}
}
};
};
service
.
logOutCookie
=
function
(){
service
.
logOutCookie
=
function
(){
UtilService
.
setCookie
(
"ryioUid"
,
""
);
UtilService
.
setCookie
(
"ryioUid"
,
""
);
// UtilService.setCookie("ryioUname",'');
// UtilService.setCookie("ryioUname",'');
window
.
localStorage
.
setItem
(
"ryioUauth"
,
""
);
window
.
localStorage
.
setItem
(
"ryioUauth"
,
""
);
UtilService
.
setCookie
(
"ryioToken"
,
""
);
UtilService
.
setCookie
(
"ryioToken"
,
""
);
UtilService
.
setCookie
(
"ryioIsSuper"
,
""
);
UtilService
.
setCookie
(
"ryioIsSuper"
,
""
);
window
.
location
.
href
=
"/login.html"
;
window
.
location
.
href
=
"/login.html"
;
};
};
service
.
getInfo
=
function
(
url
,
params
,
noLogin
){
service
.
getInfo
=
function
(
url
,
params
,
noLogin
){
if
(
!
noLogin
){
if
(
!
noLogin
){
service
.
noLogin
(
url
);
service
.
noLogin
(
url
);
}
}
var
defered
=
$q
.
defer
();
var
defered
=
$q
.
defer
();
var
condition
=
""
;
var
condition
=
""
;
for
(
var
k
in
params
){
for
(
var
k
in
params
){
condition
+=
"&"
+
k
+
"="
+
params
[
k
];
condition
+=
"&"
+
k
+
"="
+
params
[
k
];
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
service
.
getInfoByUrl
=
function
(
url
){
service
.
getInfoByUrl
=
function
(
url
){
service
.
noLogin
();
service
.
noLogin
();
var
defered
=
$q
.
defer
();
var
defered
=
$q
.
defer
();
var
hp
=
$http
.
get
(
url
)
var
hp
=
$http
.
get
(
url
)
.
success
(
function
(
data
){
.
success
(
function
(
data
){
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
service
.
getReportData
=
function
(
report
,
param
){
service
.
getReportData
=
function
(
report
,
param
){
service
.
noLogin
();
service
.
noLogin
();
var
defered
=
$q
.
defer
();
var
defered
=
$q
.
defer
();
var
params
=
UtilService
.
cloneJSON
(
param
);
var
params
=
UtilService
.
cloneJSON
(
param
);
var
appid
=
params
.
appid
;
var
appid
=
params
.
appid
;
delete
params
.
appid
;
delete
params
.
appid
;
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
else
{
else
{
defered
.
resolve
(
data
.
content
||
data
);
defered
.
resolve
(
data
.
content
||
data
);
}
}
})
})
.
error
(
function
(
data
){
.
error
(
function
(
data
){
service
.
loginTimeout
(
data
);
service
.
loginTimeout
(
data
);
...
@@ -139,13 +139,14 @@
...
@@ -139,13 +139,14 @@
service
.
postInfoByUrl
=
function
(
url
,
params
){
service
.
postInfoByUrl
=
function
(
url
,
params
){
service
.
noLogin
();
service
.
noLogin
();
var
defered
=
$q
.
defer
();
var
defered
=
$q
.
defer
();
if
(
url
.
indexOf
(
"?"
)
==-
1
){
if
(
url
.
indexOf
(
"?"
)
==-
1
){
url
+=
"?r="
+
Math
.
random
();
url
+=
"?r="
+
Math
.
random
();
}
else
{
}
url
+=
"&r="
+
Math
.
random
();
else
{
}
url
+=
"&r="
+
Math
.
random
();
}
var
hp
=
$http
.
post
(
url
,
params
)
var
hp
=
$http
.
post
(
url
,
params
)
.
success
(
function
(
data
){
.
success
(
function
(
data
){
defered
.
resolve
(
data
.
content
||
data
);
defered
.
resolve
(
data
.
content
||
data
);
...
@@ -191,7 +192,7 @@
...
@@ -191,7 +192,7 @@
}
else
{
}
else
{
url
+=
"&r="
+
Math
.
random
();
url
+=
"&r="
+
Math
.
random
();
}
}
var
hp
=
$http
.
delete
(
"/api/"
+
url
)
var
hp
=
$http
.
delete
(
"/api/"
+
url
)
.
success
(
function
(
data
,
status
){
.
success
(
function
(
data
,
status
){
service
.
loginTimeout
(
data
);
service
.
loginTimeout
(
data
);
...
@@ -225,7 +226,7 @@
...
@@ -225,7 +226,7 @@
defered
.
resolve
({
code
:
1
});
defered
.
resolve
({
code
:
1
});
}
}
headers
=
headers
();
headers
=
headers
();
var
filename
=
headers
[
'filename'
];
var
filename
=
headers
[
'filename'
];
var
contentType
=
headers
[
'content-type'
];
var
contentType
=
headers
[
'content-type'
];
var
linkElement
=
document
.
createElement
(
'a'
);
var
linkElement
=
document
.
createElement
(
'a'
);
...
@@ -235,7 +236,7 @@
...
@@ -235,7 +236,7 @@
linkElement
.
setAttribute
(
'href'
,
url
);
linkElement
.
setAttribute
(
'href'
,
url
);
linkElement
.
setAttribute
(
"download"
,
decodeURIComponent
(
filename
));
linkElement
.
setAttribute
(
"download"
,
decodeURIComponent
(
filename
));
var
clickEvent
=
new
MouseEvent
(
"click"
,
{
var
clickEvent
=
new
MouseEvent
(
"click"
,
{
"view"
:
window
,
"view"
:
window
,
"bubbles"
:
true
,
"bubbles"
:
true
,
...
@@ -246,10 +247,10 @@
...
@@ -246,10 +247,10 @@
// console.log(ex);
// console.log(ex);
}
}
}).
error
(
function
(
data
)
{
}).
error
(
function
(
data
)
{
});
});
return
defered
.
promise
;
return
defered
.
promise
;
}
}
return
service
;
return
service
;
}
}
})();
})();
\ No newline at end of file
src/main/websrc/js/app/ToolService.js
View file @
0118f774
...
@@ -193,6 +193,9 @@
...
@@ -193,6 +193,9 @@
//loading加载
//loading加载
service
.
showLoading
=
function
(){
service
.
showLoading
=
function
(){
document
.
getElementById
(
"sysLoad"
).
style
.
display
=
"block"
;
document
.
getElementById
(
"sysLoad"
).
style
.
display
=
"block"
;
setTimeout
(
function
(){
service
.
hideLoading
();
},
60
*
100
);
}
}
service
.
hideLoading
=
function
(){
service
.
hideLoading
=
function
(){
document
.
getElementById
(
"sysLoad"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"sysLoad"
).
style
.
display
=
"none"
;
...
@@ -394,7 +397,95 @@
...
@@ -394,7 +397,95 @@
return
JSON
.
parse
(
u
);
return
JSON
.
parse
(
u
);
}
}
}
}
//菜单报送数据
service
.
getMenuSubmitData
=
function
(
submenu
){
if
(
$rootScope
.
pagePath
==
"userinfo"
)
return
;
if
(
!
rootmenu
[
$rootScope
.
mainMenu
])
return
;
var
cmids
=
service
.
getCMidInfo
();
var
company
=
service
.
getUser
().
company
;
if
(
UtilService
.
isNullStr
(
company
)){
company
=
""
;
}
var
appkey
=
""
,
appcategory
=
""
,
appname
=
""
;
if
(
$rootScope
.
appInstance
){
appkey
=
$rootScope
.
appInstance
.
appkey
;
appcategory
=
$rootScope
.
appInstance
.
appGenreName
;
appname
=
$rootScope
.
appInstance
.
name
;
}
if
(
!
submenu
||
submenu
==
''
){
submenu
=
menu
[
$rootScope
.
pagePath
];}
var
params
=
{
appid
:
UtilService
.
getTKAppkey
(),
who
:
UtilService
.
getCookie
(
"ryioUname"
),
what
:
"pageview"
,
context
:{
rootmenu
:
rootmenu
[
$rootScope
.
mainMenu
],
//菜单分类
menu
:
menu
[
$rootScope
.
pagePath
],
//当前菜单
submenu
:
submenu
,
//子菜单-看单
sessionid
:
UtilService
.
getCookie
(
"JSESSIONID"
),
user_appkey
:
appkey
,
//所选APP的id,
appcategory
:
appcategory
,
//应用类型 中文名
appname
:
appname
,
//应用名称
rolename
:
service
.
getRoleName
(),
company
:
company
,
"_cid"
:
cmids
.
cid
,
"_campaignid"
:
cmids
.
campaignid
,
"_apptype"
:
"wap"
,
email
:
UtilService
.
getCookie
(
"ryioUname"
),
_deviceid
:
UtilService
.
randDeviceId
(),
//设备ID
operatesystem
:
UtilService
.
operatorSystem
(),
//操作系统 _ryos
browser
:
UtilService
.
getBrowser
()
//浏览器类型
}
};
$
.
post
(
UtilService
.
getLogRoot
()
+
"/receive/tkio/event"
,
JSON
.
stringify
(
params
));
}
//功能报送数据
service
.
getOperSubmitData
=
function
(
opername
){
var
appkey
=
""
,
appcategory
=
""
,
appname
=
""
;
if
(
$rootScope
.
appInstance
){
appkey
=
$rootScope
.
appInstance
.
appkey
;
appcategory
=
$rootScope
.
appInstance
.
appGenreName
;
appname
=
$rootScope
.
appInstance
.
name
;
}
var
cmids
=
service
.
getCMidInfo
();
var
company
=
service
.
getUser
().
company
;
if
(
UtilService
.
isNullStr
(
company
)){
company
=
""
;
}
var
params
=
{
appid
:
UtilService
.
getTKAppkey
(),
who
:
UtilService
.
getCookie
(
"ryioUname"
),
what
:
"operation"
,
context
:{
menu
:
menu
[
$rootScope
.
pagePath
],
//菜单分类
opername
:
opername
,
//操作名字
email
:
UtilService
.
getCookie
(
"ryioUname"
),
user_appkey
:
appkey
,
//所选APP的id,
appcategory
:
appcategory
,
//应用类型 中文名
appname
:
appname
,
//应用名称
rolename
:
service
.
getRoleName
(),
company
:
company
,
"_cid"
:
cmids
.
cid
,
"_campaignid"
:
cmids
.
campaignid
,
"_apptype"
:
"wap"
,
_deviceid
:
UtilService
.
randDeviceId
(),
//设备ID
operatesystem
:
UtilService
.
operatorSystem
(),
//操作系统 _ryos
browser
:
UtilService
.
getBrowser
()
//浏览器类型
}
};
$
.
post
(
UtilService
.
getLogRoot
()
+
"/receive/tkio/event"
,
JSON
.
stringify
(
params
));
}
return
service
;
return
service
;
}
}
})();
})();
src/main/websrc/js/app/app.js
View file @
0118f774
...
@@ -83,30 +83,6 @@
...
@@ -83,30 +83,6 @@
$scope
.
$on
(
'f5Applist'
,
function
(
e
,
msg
){
$scope
.
$on
(
'f5Applist'
,
function
(
e
,
msg
){
$scope
.
queryApp
(
msg
);
$scope
.
queryApp
(
msg
);
});
});
$scope
.
hasSubMenus
=
function
(){
$scope
.
showMenuFlag
=
{};
var
menus
=
$rootScope
.
curRoleAuth
.
roleAuthDetailList
;
var
first
=
""
;
for
(
var
i
=
0
;
i
<
menus
.
length
;
i
++
){
if
(
$scope
.
showMenuFlag
.
admonitor
&&
$scope
.
showMenuFlag
.
behavior
&&
$scope
.
showMenuFlag
.
export
){
break
;
}
if
(
menus
[
i
].
parentAuth
==
'admonitor'
||
menus
[
i
].
parentAuth
==
'campaignmanager'
){
$scope
.
showMenuFlag
.
admonitor
=
true
;
}
else
if
(
menus
[
i
].
parentAuth
==
'behavior'
||
menus
[
i
].
parentAuth
==
'eventmanage'
){
$scope
.
showMenuFlag
.
behavior
=
true
;
}
else
if
(
menus
[
i
].
parentAuth
==
'export'
){
$scope
.
showMenuFlag
.
export
=
true
;
}
}
if
(
$rootScope
.
mainMenu
==
'export'
&&
!
$scope
.
showMenuFlag
.
export
){
$rootScope
.
mainMenu
=
""
;
}
else
if
(
$rootScope
.
mainMenu
==
'behavior'
&&
!
$scope
.
showMenuFlag
.
behavior
){
$rootScope
.
mainMenu
=
""
;
}
else
if
(
$rootScope
.
mainMenu
==
'admonitor'
&&
!
$scope
.
showMenuFlag
.
admonitor
){
$rootScope
.
mainMenu
=
""
;
}
}
$rootScope
.
webHideMenus
=
[];
$rootScope
.
webHideMenus
=
[];
$scope
.
$on
(
"appid"
,
function
(
e
,
msg
){
$scope
.
$on
(
"appid"
,
function
(
e
,
msg
){
...
@@ -268,7 +244,6 @@
...
@@ -268,7 +244,6 @@
return
false
;
return
false
;
}
}
if
(
$rootScope
.
isSuper
||
$rootScope
.
isManage
||
$rootScope
.
isAppManage
){
if
(
$rootScope
.
isSuper
||
$rootScope
.
isManage
||
$rootScope
.
isAppManage
){
$scope
.
campaigninfoGroup
=
true
;
return
true
;
return
true
;
}
else
{
}
else
{
if
(
$rootScope
.
curRoleAuth
){
if
(
$rootScope
.
curRoleAuth
){
...
@@ -392,6 +367,18 @@
...
@@ -392,6 +367,18 @@
}
}
}
}
$rootScope
.
menuSubmitData
=
function
(
submenu
){
ToolService
.
getMenuSubmitData
(
submenu
);
}
$rootScope
.
operSubmitData
=
function
(
opername
){
ToolService
.
getOperSubmitData
(
opername
);
}
$rootScope
.
$watch
(
"thirdtab"
,
function
(
n
){
if
(
angular
.
isDefined
(
n
)){
ToolService
.
getMenuSubmitData
(
n
);
}
});
$scope
.
pwdPlacehold
=
"仅支持数字,大小写字母,且至少包含其中2种,长度限制为6-18位"
;
$scope
.
pwdPlacehold
=
"仅支持数字,大小写字母,且至少包含其中2种,长度限制为6-18位"
;
}
}
})();
})();
src/main/websrc/js/app/config.js
View file @
0118f774
...
@@ -64,8 +64,7 @@
...
@@ -64,8 +64,7 @@
var
speMenus
=
[
"userinfo"
,
"product"
,
"nopower"
,
"expiration"
];
var
speMenus
=
[
"userinfo"
,
"product"
,
"nopower"
,
"expiration"
];
$rootScope
.
mainMenus
=
{
$rootScope
.
mainMenus
=
{
behavior
:[
"custommenu"
,
"eventstats"
,
"retention"
,
"funnel"
,
"usergroup"
,
"profile"
,
"event"
,
"activityevent"
,
"custommenuDetail"
,
"intelligentpath"
],
behavior
:[
"custommenu"
,
"eventstats"
,
"retention"
,
"funnel"
,
"usergroup"
,
"profile"
,
"event"
,
"activityevent"
,
"custommenuDetail"
,
"intelligentpath"
],
// dataexport:["logtool","report"],
dataexport
:[
"logtool"
,
"report"
],
dataexport
:[
"report"
],
manage
:[
"app"
,
"auth"
]
manage
:[
"app"
,
"auth"
]
};
};
$rootScope
.
$on
(
'$stateChangeStart'
,
function
(
event
,
next
,
o
,
current
){
$rootScope
.
$on
(
'$stateChangeStart'
,
function
(
event
,
next
,
o
,
current
){
...
@@ -145,6 +144,13 @@
...
@@ -145,6 +144,13 @@
}
}
$rootScope
.
pagePath
=
nextMenu
;
$rootScope
.
pagePath
=
nextMenu
;
//看单的子菜单已经报送
if
(
nextMenu
==
'custommenu'
&&
next
.
url
.
indexOf
(
":pageid"
)
>-
1
){}
else
{
if
(
[
'nopower'
,
'expiration'
].
indexOf
(
nextMenu
)
==
-
1
){
ToolService
.
getMenuSubmitData
(
submenuDir
[
submenu
]);
}
}
}
}
if
(
!
$rootScope
.
limitInfo
){
if
(
!
$rootScope
.
limitInfo
){
$timeout
(
function
(){
$timeout
(
function
(){
...
...
src/main/websrc/js/app/directive.js
View file @
0118f774
...
@@ -820,12 +820,6 @@
...
@@ -820,12 +820,6 @@
},
100
);
},
100
);
}
}
}
}
//有导出权限
$rootScope
.
$watch
(
"limitInfo"
,
function
(
n
){
if
(
angular
.
isDefined
(
n
)){
$scope
.
iscanExport
=
$rootScope
.
showMenu
(
'export'
)
&&
$rootScope
.
limitInfo
.
platformExport
==
true
;
}
});
$scope
.
exportData
=
function
(){
$scope
.
exportData
=
function
(){
var
nowdate
=
new
Date
().
getTime
();
var
nowdate
=
new
Date
().
getTime
();
...
@@ -881,12 +875,7 @@
...
@@ -881,12 +875,7 @@
});
});
}
}
//有导出权限
$rootScope
.
$watch
(
"limitInfo"
,
function
(
n
){
if
(
angular
.
isDefined
(
n
)){
$scope
.
iscanExport
=
$rootScope
.
showMenu
(
'export'
)
&&
$rootScope
.
limitInfo
.
platformExport
==
true
;
}
});
}
}
}
}
}
}
...
...
src/main/websrc/js/collect/custommenu.js
View file @
0118f774
...
@@ -445,6 +445,9 @@
...
@@ -445,6 +445,9 @@
ToolService
.
showTips
(
txtTips
);
ToolService
.
showTips
(
txtTips
);
$scope
.
lookMyMenu
(
flag
);
$scope
.
lookMyMenu
(
flag
);
$scope
.
$emit
(
"f5CtmMenus"
,{});
$scope
.
$emit
(
"f5CtmMenus"
,{});
if
(
$scope
.
winFlag
!=
2
){
$rootScope
.
operSubmitData
(
"新建"
);
}
}
}
},
function
(
data
){
},
function
(
data
){
...
@@ -487,6 +490,7 @@
...
@@ -487,6 +490,7 @@
ToolService
.
showTips
(
'添加成功'
);
ToolService
.
showTips
(
'添加成功'
);
$scope
.
query
(
data
);
$scope
.
query
(
data
);
$scope
.
currentMenu
.
templates
.
push
(
data
);
$scope
.
currentMenu
.
templates
.
push
(
data
);
$rootScope
.
operSubmitData
(
"看单里面创建表单"
);
}
}
});
});
...
@@ -556,6 +560,7 @@
...
@@ -556,6 +560,7 @@
else
{
else
{
$scope
.
lookMyMenu
();
$scope
.
lookMyMenu
();
$scope
.
$emit
(
"f5CtmMenus"
,{});
$scope
.
$emit
(
"f5CtmMenus"
,{});
$rootScope
.
operSubmitData
(
"删除"
);
}
}
});
});
}
}
...
...
src/main/websrc/js/collect/eventstats.js
View file @
0118f774
...
@@ -476,6 +476,7 @@
...
@@ -476,6 +476,7 @@
ToolService
.
showTips
(
"删除成功"
);
ToolService
.
showTips
(
"删除成功"
);
$scope
.
queryInfoByApp
(
1
);
$scope
.
queryInfoByApp
(
1
);
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
$rootScope
.
operSubmitData
(
"删除"
);
});
});
}
}
...
@@ -1071,6 +1072,7 @@
...
@@ -1071,6 +1072,7 @@
}
}
else
{
else
{
$scope
.
queryInfoByApp
(
1
);
$scope
.
queryInfoByApp
(
1
);
$rootScope
.
operSubmitData
(
"删除"
);
if
(
$scope
.
isShowCache
){
if
(
$scope
.
isShowCache
){
localStorage
.
removeItem
(
$scope
.
appid
);
localStorage
.
removeItem
(
$scope
.
appid
);
}
}
...
...
src/main/websrc/js/collect/funnel.js
View file @
0118f774
...
@@ -153,6 +153,7 @@
...
@@ -153,6 +153,7 @@
ToolService
.
showTips
(
"删除成功"
);
ToolService
.
showTips
(
"删除成功"
);
$scope
.
queryInfoByApp
(
3
,
$scope
.
delDefine
.
id
);
$scope
.
queryInfoByApp
(
3
,
$scope
.
delDefine
.
id
);
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
$rootScope
.
operSubmitData
(
"删除"
);
});
});
}
}
$scope
.
closeAddWin
=
function
(){
$scope
.
closeAddWin
=
function
(){
...
@@ -492,6 +493,9 @@
...
@@ -492,6 +493,9 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
txtTips
);
ToolService
.
showTips
(
txtTips
);
$scope
.
queryInfoByApp
(
1
,
$scope
.
currentFunnel
.
id
)
$scope
.
queryInfoByApp
(
1
,
$scope
.
currentFunnel
.
id
)
if
(
!
$scope
.
currentFunnel
.
id
){
$rootScope
.
operSubmitData
(
"新建"
);
}
});
});
}
}
...
...
src/main/websrc/js/collect/intelligentpath.js
View file @
0118f774
...
@@ -107,6 +107,7 @@
...
@@ -107,6 +107,7 @@
ToolService
.
showTips
(
"删除成功"
);
ToolService
.
showTips
(
"删除成功"
);
$scope
.
queryInfoByApp
(
1
);
$scope
.
queryInfoByApp
(
1
);
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
$rootScope
.
operSubmitData
(
"删除"
);
});
});
}
}
...
@@ -567,6 +568,7 @@
...
@@ -567,6 +568,7 @@
}
}
else
{
else
{
$scope
.
queryInfoByApp
(
1
);
$scope
.
queryInfoByApp
(
1
);
$rootScope
.
operSubmitData
(
"新建"
);
if
(
$scope
.
isShowCache
){
if
(
$scope
.
isShowCache
){
localStorage
.
removeItem
(
"path_"
+
$scope
.
appid
);
localStorage
.
removeItem
(
"path_"
+
$scope
.
appid
);
}
}
...
...
src/main/websrc/js/collect/report.js
View file @
0118f774
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
$scope
.
winID
=
info
.
id
;
$scope
.
winID
=
info
.
id
;
ToolService
.
showAlp
();
ToolService
.
showAlp
();
}
else
{
}
else
{
$rootScope
.
operSubmitData
(
"下载"
);
}
}
});
});
}
}
...
...
src/main/websrc/js/manage/app.js
View file @
0118f774
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
$scope
.
delstatus
=
false
;
$scope
.
delstatus
=
false
;
ToolService
.
showTips
(
"删除成功"
)
ToolService
.
showTips
(
"删除成功"
)
$scope
.
$emit
(
"f5Applist"
,
true
);
$scope
.
$emit
(
"f5Applist"
,
true
);
$rootScope
.
operSubmitData
(
"删除"
);
});
});
}
}
$timeout
(
function
(){
$timeout
(
function
(){
...
@@ -56,6 +57,7 @@
...
@@ -56,6 +57,7 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
tipmsg
)
ToolService
.
showTips
(
tipmsg
)
$scope
.
$emit
(
"f5Applist"
,
true
);
$scope
.
$emit
(
"f5Applist"
,
true
);
$rootScope
.
operSubmitData
(
tipmsg
.
slice
(
0
,
2
));
});
});
}
}
...
@@ -110,6 +112,7 @@
...
@@ -110,6 +112,7 @@
});
});
}
}
$scope
.
downloadsdk
=
function
(){
$scope
.
downloadsdk
=
function
(){
$rootScope
.
operSubmitData
(
"查看并下载SDK"
);
}
}
$scope
.
$on
(
"appGenre"
,
function
(
e
,
msg
){
$scope
.
$on
(
"appGenre"
,
function
(
e
,
msg
){
$scope
.
showGame
=
msg
.
info
.
categoryid
==
gameTypeId
;
$scope
.
showGame
=
msg
.
info
.
categoryid
==
gameTypeId
;
...
@@ -302,6 +305,7 @@
...
@@ -302,6 +305,7 @@
$scope
.
appkey
=
data
.
appkey
;
$scope
.
appkey
=
data
.
appkey
;
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
$scope
.
stepflag
=
2
;
$scope
.
stepflag
=
2
;
$rootScope
.
operSubmitData
(
"新建"
);
}
}
});
});
}
}
...
@@ -377,6 +381,7 @@
...
@@ -377,6 +381,7 @@
devList
.
push
({
id
:
item
.
deviceId
,
name
:
item
.
deviceId
});
devList
.
push
({
id
:
item
.
deviceId
,
name
:
item
.
deviceId
});
});
});
$scope
.
deviceList
=
devList
;
$scope
.
deviceList
=
devList
;
$rootScope
.
operSubmitData
(
"下一步"
);
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
});
});
}
}
...
...
src/main/websrc/js/manage/auth.js
View file @
0118f774
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
userPM
.
then
(
function
(
data
){
userPM
.
then
(
function
(
data
){
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
"启用成功"
);
ToolService
.
showTips
(
"启用成功"
);
$rootScope
.
operSubmitData
(
"启用"
);
$scope
.
query
();
$scope
.
query
();
});
});
}
}
...
@@ -61,6 +62,7 @@
...
@@ -61,6 +62,7 @@
userPM
.
then
(
function
(
data
){
userPM
.
then
(
function
(
data
){
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
"停用成功"
);
ToolService
.
showTips
(
"停用成功"
);
$rootScope
.
operSubmitData
(
"停用"
);
$scope
.
query
();
$scope
.
query
();
});
});
}
}
...
@@ -354,6 +356,9 @@
...
@@ -354,6 +356,9 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
txtTips
);
ToolService
.
showTips
(
txtTips
);
$scope
.
cancel
();
$scope
.
cancel
();
if
(
!
infoId
){
$rootScope
.
operSubmitData
(
"新建"
);
}
}
}
},
function
(
data
){
},
function
(
data
){
if
(
data
.
code
==
-
6001
){
if
(
data
.
code
==
-
6001
){
...
...
src/main/websrc/js/manage/channel.js
View file @
0118f774
...
@@ -161,6 +161,7 @@
...
@@ -161,6 +161,7 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
"停用成功"
)
ToolService
.
showTips
(
"停用成功"
)
$rootScope
.
operSubmitData
(
"停用"
);
$scope
.
query
(
true
);
$scope
.
query
(
true
);
});
});
}
}
...
@@ -171,6 +172,7 @@
...
@@ -171,6 +172,7 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
"启用成功"
)
ToolService
.
showTips
(
"启用成功"
)
$scope
.
query
(
true
);
$scope
.
query
(
true
);
$rootScope
.
operSubmitData
(
"启用"
);
});
});
}
}
...
@@ -1006,6 +1008,9 @@
...
@@ -1006,6 +1008,9 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
txtTips
);
ToolService
.
showTips
(
txtTips
);
$scope
.
cancel
();
$scope
.
cancel
();
if
(
!
infoId
){
$rootScope
.
operSubmitData
(
"新建"
);
}
});
});
}
}
...
...
src/main/websrc/js/manage/usergroup.js
View file @
0118f774
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
$scope
.
delstatus
=
false
;
$scope
.
delstatus
=
false
;
ToolService
.
showTips
(
"删除成功"
);
ToolService
.
showTips
(
"删除成功"
);
$scope
.
query
();
$scope
.
query
();
$rootScope
.
operSubmitData
(
"删除"
);
});
});
}
}
...
@@ -487,6 +488,9 @@
...
@@ -487,6 +488,9 @@
ToolService
.
hideLoading
();
ToolService
.
hideLoading
();
ToolService
.
showTips
(
txtTips
);
ToolService
.
showTips
(
txtTips
);
$scope
.
cancel
();
$scope
.
cancel
();
if
(
!
infoId
){
$rootScope
.
operSubmitData
(
"新建"
);
}
});
});
}
}
...
...
src/main/websrc/template/common/export.html
View file @
0118f774
<div
class=
"eptWrap"
ng-click=
"exportData()"
ng-style=
"style1"
ng-hide=
"iscanExport"
>
<div
class=
"eptWrap"
ng-click=
"exportData()"
ng-style=
"style1"
>
<span
class=
"eptOut"
></span>
<span
class=
"eptOut"
></span>
</div>
</div>
src/main/websrc/template/menu/collect.html
View file @
0118f774
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
</div>
</div>
</ul>
</ul>
<ul
class=
"sidebarNav"
ng-if=
"mainMenu=='export'"
>
<ul
class=
"sidebarNav"
ng-if=
"mainMenu=='export'"
>
<
!-- <
li ng-class="{'active':pagePath=='logtool'}" ng-click="goPage('collect.logtool')" ng-if="showMenu('logtool')">
<li
ng-class=
"{'active':pagePath=='logtool'}"
ng-click=
"goPage('collect.logtool')"
ng-if=
"showMenu('logtool')"
>
<i
class=
"iconfont icon-logtool"
></i>
<i
class=
"iconfont icon-logtool"
></i>
<a>
日志流
</a>
<a>
日志流
</a>
</li>
-->
</li>
<li
ng-class=
"{'active':pagePath=='report'}"
ng-click=
"goPage('collect.report')"
ng-if=
"showMenu('report')"
>
<li
ng-class=
"{'active':pagePath=='report'}"
ng-click=
"goPage('collect.report')"
ng-if=
"showMenu('report')"
>
<i
class=
"iconfont icon-report"
></i>
<i
class=
"iconfont icon-report"
></i>
<a>
下载报表
</a>
<a>
下载报表
</a>
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
</li>
</li>
</ul>
</ul>
<ul
class=
"sidebarNav"
ng-if=
"mainMenu=='export'"
>
<ul
class=
"sidebarNav"
ng-if=
"mainMenu=='export'"
>
<
!-- <
li ng-class="{'active':pagePath=='logtool'}" ng-click="goPage('collect.logtool')" ng-if="showMenu('logtool')" ng-mouseenter="hoverMenu='日志流'" ng-mouseleave="hoverMenu=''" >
<li
ng-class=
"{'active':pagePath=='logtool'}"
ng-click=
"goPage('collect.logtool')"
ng-if=
"showMenu('logtool')"
ng-mouseenter=
"hoverMenu='日志流'"
ng-mouseleave=
"hoverMenu=''"
>
<i
class=
"iconfont icon-logtool"
></i>
<i
class=
"iconfont icon-logtool"
></i>
<div
class=
"outDiv"
ng-if=
"hoverMenu=='日志流'"
>
<div
class=
"outDiv"
ng-if=
"hoverMenu=='日志流'"
>
<span
class=
"arrIcon"
></span>
<span
class=
"arrIcon"
></span>
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
<li
ng-class=
"{'active':pagePath=='logtool'}"
><a>
日志流
</a></li>
<li
ng-class=
"{'active':pagePath=='logtool'}"
><a>
日志流
</a></li>
</ul>
</ul>
</div>
</div>
</li>
-->
</li>
<li
ng-class=
"{'active':pagePath=='report'}"
ng-click=
"goPage('collect.report')"
ng-if=
"showMenu('report')"
ng-mouseenter=
"hoverMenu='下载报表'"
ng-mouseleave=
"hoverMenu=''"
>
<li
ng-class=
"{'active':pagePath=='report'}"
ng-click=
"goPage('collect.report')"
ng-if=
"showMenu('report')"
ng-mouseenter=
"hoverMenu='下载报表'"
ng-mouseleave=
"hoverMenu=''"
>
<i
class=
"iconfont icon-report"
></i>
<i
class=
"iconfont icon-report"
></i>
<div
class=
"outDiv"
ng-if=
"hoverMenu=='下载报表'"
>
<div
class=
"outDiv"
ng-if=
"hoverMenu=='下载报表'"
>
...
...
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