Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
b3950453
Commit
b3950453
authored
Mar 07, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
019c43ef
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
12 deletions
+64
-12
app.js
src/main/resources/static/js/app.js
+1
-1
service.js
src/main/resources/static/js/service.js
+24
-4
analysisLog.html
src/main/resources/static/views/analysisLog/analysisLog.html
+7
-4
analysisLog.js
src/main/resources/static/views/analysisLog/analysisLog.js
+8
-2
login.js
src/main/resources/static/views/login/login.js
+20
-0
packageLog.js
src/main/resources/static/views/packageLog/packageLog.js
+4
-1
No files found.
src/main/resources/static/js/app.js
View file @
b3950453
...
...
@@ -47,7 +47,7 @@ angular.module('AvatarCheck', [
$location
.
path
(
"/login"
);
}
if
(
$rootScope
.
loginData
.
login
==
true
){
$
s
cope
.
icons
=
[
$
rootS
cope
.
icons
=
[
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
...
...
src/main/resources/static/js/service.js
View file @
b3950453
...
...
@@ -260,13 +260,33 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
})
},
selectAnalyseLog
:
function
(
oldPackageName
,
date
,
success
){
selectAnalyseLogCount
:
function
(
oldPackageName
,
date
,
success
)
{
if
(
angular
.
isUndefined
(
oldPackageName
)){
oldPackageName
=
''
;
}
$http
({
method
:
'GET'
,
url
:
"../LogApi/selectByAnalysisLogCount"
+
urlTimeStamp
(),
params
:{
fileName
:
oldPackageName
,
analysisTime
:
date
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
selectAnalyseLog
:
function
(
oldPackageName
,
date
,
currentPage
,
itemsPerPage
,
success
){
if
(
angular
.
isUndefined
(
oldPackageName
)){
oldPackageName
=
''
;
}
$http
({
method
:
'GET'
,
url
:
"../
ParsingLogApi/selectParsing
Log"
+
urlTimeStamp
(),
url
:
"../
LogApi/selectByAnalysis
Log"
+
urlTimeStamp
(),
params
:{
date
:
date
,
oldPackageData
:
oldPackageName
fileName
:
oldPackageName
,
analysisTime
:
date
,
currPage
:
currentPage
,
pageSize
:
itemsPerPage
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
...
...
src/main/resources/static/views/analysisLog/analysisLog.html
View file @
b3950453
...
...
@@ -51,7 +51,7 @@
</td>
</tr>
</table>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"analyseLog"
>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"analyseLog
.length>0
"
>
<thead>
<tr>
<th>
NO.
</th>
...
...
@@ -80,9 +80,12 @@
</tbody>
</table>
<div
style=
"padding-left: 27%;"
ng-if=
"analyseLog"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<div
ng-if=
"analyseLog.length==0"
class=
"box-body"
>
<h4>
暂无数据
</h4>
</div>
<div
style=
"padding-left: 27%;"
ng-if=
"analyseLog.length>0"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
</div>
</div>
</div>
...
...
src/main/resources/static/views/analysisLog/analysisLog.js
View file @
b3950453
...
...
@@ -28,14 +28,20 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
paginationConf
.
totalItems
=
50
;
$scope
.
getAnalyseLog
=
function
(){
HttpService
.
selectAnalyseLog
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
function
(
data
){
HttpService
.
selectAnalyseLogCount
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
selectAnalyseLog
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
analyseLog
=
data
;
console
.
log
(
$scope
.
analyseLog
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getAnalyseLog
);
});
src/main/resources/static/views/login/login.js
View file @
b3950453
...
...
@@ -79,6 +79,26 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
localStorageService
.
set
(
'loginData'
,
resp
.
data
.
user
);
$rootScope
.
menuList
=
$rootScope
.
loginData
.
roleList
[
0
].
permissions
;
console
.
log
(
$scope
.
menuList
)
$rootScope
.
icons
=
[
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
,
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
,
"glyphicon glyphicon-list icon text-primary"
,
"fa fa-file icon text-info"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
,
"glyphicon glyphicon-briefcase icon text-danger"
,
"glyphicon glyphicon-th-large icon text-success"
,
"glyphicon glyphicon-stats icon text-primary-dker"
]
whereToGo
(
$rootScope
.
loginData
.
roleList
[
0
].
process
)
if
(
userAgent
.
indexOf
(
'.NET'
)
!=-
1
){
window
.
location
.
reload
();
...
...
src/main/resources/static/views/packageLog/packageLog.js
View file @
b3950453
...
...
@@ -41,10 +41,13 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
})
HttpService
.
selectPackageLog
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
(),
$scope
.
county
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
packageLogData
=
data
;
console
.
log
(
$scope
.
packageLogData
,
"?"
)
console
.
log
(
$scope
.
packageLogData
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getPackageLog
);
...
...
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