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
3e17d976
Commit
3e17d976
authored
Mar 16, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析日志解析完成重新获得数据
parent
dc05d95c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
20 deletions
+22
-20
cardProdPackage.js
...resources/static/views/cardProdPackage/cardProdPackage.js
+1
-1
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+21
-19
No files found.
src/main/resources/static/views/cardProdPackage/cardProdPackage.js
View file @
3e17d976
...
@@ -134,7 +134,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
...
@@ -134,7 +134,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
document
.
body
.
appendChild
(
a
);
document
.
body
.
appendChild
(
a
);
a
.
href
=
encodeURI
(
getCountAndDownloadUrl
(
url
));
a
.
href
=
encodeURI
(
getCountAndDownloadUrl
(
url
));
console
.
log
(
encodeURI
(
getCountAndDownloadUrl
(
url
)))
console
.
log
(
encodeURI
(
getCountAndDownloadUrl
(
url
)))
//
a.click();
a
.
click
();
}
}
var
getTypeList
=
function
(){
var
getTypeList
=
function
(){
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
3e17d976
...
@@ -30,8 +30,25 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -30,8 +30,25 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
getXmlPackage
=
function
(){
if
(
$scope
.
paginationConf
.
currentPage
==
0
){
$scope
.
paginationConf
.
currentPage
=
1
;
}
HttpService
.
selectXmlPackage
(
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
count
;
$scope
.
xmlPackageData
=
data
.
respData
.
mapList
;
console
.
log
(
$scope
.
xmlPackageData
,
"$scope.xmlPackageData"
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getXmlPackage
);
var
getData
=
$scope
.
getXmlPackage
;
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
ngDialog
.
open
({
ngDialog
.
open
({
template
:
'dialogs/analysisDialog.html'
+
urlTimeStamp
(),
template
:
'dialogs/analysisDialog.html'
+
urlTimeStamp
(),
...
@@ -48,7 +65,9 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -48,7 +65,9 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
console
.
log
(
uploadDate
)
console
.
log
(
uploadDate
)
HttpService
.
analyseToUpdateIfPostCard
(
fileid
,
uploadDate
,
function
(
data
){
HttpService
.
analyseToUpdateIfPostCard
(
fileid
,
uploadDate
,
function
(
data
){
if
(
data
){
if
(
data
){
$scope
.
closeThisDialog
();
MessageService
.
showAlert
(
"解析完成"
)
MessageService
.
showAlert
(
"解析完成"
)
getData
();
}
}
})
})
}
}
...
@@ -66,7 +85,6 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -66,7 +85,6 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
for
(
var
i
in
files
){
for
(
var
i
in
files
){
fd
.
append
(
'file'
,
files
[
i
]);
fd
.
append
(
'file'
,
files
[
i
]);
}
}
var
getData
=
$scope
.
getXmlPackage
;
ngDialog
.
openConfirm
({
ngDialog
.
openConfirm
({
template
:
'dialogs/alert.html'
+
urlTimeStamp
(),
template
:
'dialogs/alert.html'
+
urlTimeStamp
(),
width
:
600
,
width
:
600
,
...
@@ -89,23 +107,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -89,23 +107,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
}
}
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
getXmlPackage
=
function
(){
if
(
$scope
.
paginationConf
.
currentPage
==
0
){
$scope
.
paginationConf
.
currentPage
=
1
;
}
HttpService
.
selectXmlPackage
(
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
count
;
$scope
.
xmlPackageData
=
data
.
respData
.
mapList
;
console
.
log
(
$scope
.
xmlPackageData
,
"$scope.xmlPackageData"
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getXmlPackage
);
var
reGet
=
$scope
.
getXmlPackage
;
var
reGet
=
$scope
.
getXmlPackage
;
...
...
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