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
a8ba07e7
Commit
a8ba07e7
authored
Mar 05, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
f5165787
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
26 deletions
+103
-26
index.html
src/main/resources/static/index.html
+6
-6
service.js
src/main/resources/static/js/service.js
+45
-4
excelAndSearch.html
...resources/static/views/excelAndSearch/excelAndSearch.html
+15
-1
excelAndSearch.js
...n/resources/static/views/excelAndSearch/excelAndSearch.js
+21
-8
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+16
-7
No files found.
src/main/resources/static/index.html
View file @
a8ba07e7
...
@@ -93,17 +93,17 @@
...
@@ -93,17 +93,17 @@
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
</a>
</a>
</li>
</li>
<li
class=
"sidebar no-padding navbar-left"
style=
"width:
377
px;margin-left:27px;height: auto;"
>
<li
class=
"sidebar no-padding navbar-left"
style=
"width:
230
px;margin-left:27px;height: auto;"
>
<form
style=
"
height: 37px;margin: 6px 5
px;"
>
<form
style=
"
margin-top: 6
px;"
>
<div
class=
"input-group input-group-sm"
>
<div
class=
"input-group input-group-sm"
>
<input
type=
"text"
class=
"form-control
"
ng-model=
"searchInput
"
>
<input
type=
"text"
class=
"form-control
input-sm bg-light no-border padder"
style=
"height: 35px;background-color: #fff;"
ng-model=
"searchInput"
placeholder=
"身份证号/受理号/任务单id...
"
>
<span
class=
"input-group-btn"
>
<span
class=
"input-group-btn"
>
<button
type=
"button"
ng-click=
"doSearch(searchInput)"
class=
"btn btn-info btn-flat"
>
Go
</button>
<button
type=
"button"
style=
"height: 35px;background-color: #fff;border-left:0;outline:none;"
ng-click=
"doSearch(searchInput)"
class=
"btn btn-sm bg-light"
>
<i
class=
"fa fa-search"
></i>
</button>
</span>
</span>
</div>
</div>
</form>
</form>
</li>
</li>
</ul>
</ul>
...
...
src/main/resources/static/js/service.js
View file @
a8ba07e7
...
@@ -173,7 +173,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -173,7 +173,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
})
})
},
},
selectXmlPackage
:
function
(
date
,
success
){
selectXmlPackage
Count
:
function
(
date
,
success
){
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../importXML/queryPersonXMLCount"
+
urlTimeStamp
(),
url
:
"../importXML/queryPersonXMLCount"
+
urlTimeStamp
(),
...
@@ -184,13 +184,54 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -184,13 +184,54 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
select
PostPackage
:
function
(
fileName
,
stat
e
,
success
){
select
XmlPackage
:
function
(
date
,
currentPage
,
itemsPerPag
e
,
success
){
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../selectExcelApi/selectExcel"
+
urlTimeStamp
(),
url
:
"../importXML/queryPersonXML"
+
urlTimeStamp
(),
params
:{
importDate
:
date
,
currPage
:
currentPage
,
pageSize
:
itemsPerPage
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
selectPostPackageCount
:
function
(
fileName
,
state
,
date
,
success
){
if
(
angular
.
isUndefined
(
fileName
)){
fileName
=
''
;
}
if
(
angular
.
isUndefined
(
state
)){
state
=-
1
;
}
$http
({
method
:
'GET'
,
url
:
"../ReadExcel/queryPersonPostCount"
+
urlTimeStamp
(),
params
:{
fileName
:
fileName
,
analysisState
:
state
,
uploadDate
:
date
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
selectPostPackage
:
function
(
fileName
,
state
,
currentPage
,
itemsPerPage
,
date
,
success
){
if
(
angular
.
isUndefined
(
fileName
)){
fileName
=
''
;
}
if
(
angular
.
isUndefined
(
state
)){
state
=-
1
;
}
$http
({
method
:
'GET'
,
url
:
"../ReadExcel/queryPersonPost"
+
urlTimeStamp
(),
params
:{
params
:{
fileName
:
fileName
,
fileName
:
fileName
,
state
:
state
analysisState
:
state
,
currPage
:
currentPage
,
pageSize
:
itemsPerPage
,
uploadDate
:
date
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
...
src/main/resources/static/views/excelAndSearch/excelAndSearch.html
View file @
a8ba07e7
...
@@ -82,6 +82,18 @@
...
@@ -82,6 +82,18 @@
<div
class=
"box-primary"
style=
"padding: 15px;padding-top: 0;"
>
<div
class=
"box-primary"
style=
"padding: 15px;padding-top: 0;"
>
<table
class=
"table table-bordered"
style=
"margin-bottom: 0;"
>
<table
class=
"table table-bordered"
style=
"margin-bottom: 0;"
>
<tr>
<tr>
<td>
上传时间:
</td>
<td>
<div
class=
"input-group date"
>
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"datepicker3"
readonly
/>
</div>
</td>
<td>
文件名称:
</td>
<td>
文件名称:
</td>
<td>
<td>
<input
type=
"text"
class=
"form-control"
ng-model=
"fileName"
placeholder=
"文件名称"
>
<input
type=
"text"
class=
"form-control"
ng-model=
"fileName"
placeholder=
"文件名称"
>
...
@@ -91,7 +103,9 @@
...
@@ -91,7 +103,9 @@
</td>
</td>
<td>
<td>
<select
class=
"form-control select2"
id=
"state"
ng-model=
"state"
>
<select
class=
"form-control select2"
id=
"state"
ng-model=
"state"
>
<option
value=
"{{state.stateCode}}"
ng-repeat=
"state in [{stateName:'已解析',stateCode:1},{stateName:'未解析',stateCode:0}] track by $index"
>
{{state.stateName}}
</option>
<option
value=
""
>
--请选择解析状态--
</option>
<option
value=
"1"
>
已解析
</option>
<option
value=
"0"
>
未解析
</option>
</select>
</select>
</td>
</td>
<td>
<td>
...
...
src/main/resources/static/views/excelAndSearch/excelAndSearch.js
View file @
a8ba07e7
...
@@ -35,15 +35,17 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -35,15 +35,17 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
todayBtn
:
1
,
todayBtn
:
1
,
autoclose
:
1
autoclose
:
1
});
});
$
(
'#datepicker3'
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyyMMdd'
,
todayBtn
:
1
,
autoclose
:
1
});
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyyMMdd"
);
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyyMMdd"
);
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
paginationConf
.
totalItems
=
50
;
$scope
.
uploadExcel
=
function
()
{
$scope
.
uploadExcel
=
function
()
{
console
.
log
(
$
(
"#datepicker1"
).
val
())
console
.
log
(
$
(
"#datepicker1"
).
val
())
...
@@ -65,9 +67,20 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -65,9 +67,20 @@ angular.module('AvatarCheck.excelAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm
}
}
}
}
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
getPostPackage
=
function
(){
$scope
.
getPostPackage
=
function
(){
console
.
log
(
$scope
.
fileName
,
$scope
.
state
)
console
.
log
(
$scope
.
fileName
,
$scope
.
state
,
$
(
"#datepicker3"
).
val
())
HttpService
.
selectPostPackage
(
$scope
.
fileName
,
$scope
.
state
,
function
(
data
){
HttpService
.
selectPostPackageCount
(
$scope
.
fileName
,
$scope
.
state
,
$
(
"#datepicker3"
).
val
(),
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
data
)
})
HttpService
.
selectPostPackage
(
$scope
.
fileName
,
$scope
.
state
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
$
(
"#datepicker3"
).
val
(),
function
(
data
){
$scope
.
postPackageData
=
data
;
$scope
.
postPackageData
=
data
;
console
.
log
(
$scope
.
postPackageData
)
console
.
log
(
$scope
.
postPackageData
)
})
})
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
a8ba07e7
...
@@ -30,12 +30,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -30,12 +30,7 @@ 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
.
paginationConf
.
totalItems
=
50
;
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
...
@@ -68,13 +63,27 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -68,13 +63,27 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
}
}
}
}
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
getXmlPackage
=
function
(){
$scope
.
getXmlPackage
=
function
(){
console
.
log
(
$
(
"#datepicker"
).
val
())
console
.
log
(
$
(
"#datepicker"
).
val
())
HttpService
.
selectXmlPackage
(
$
(
"#datepicker"
).
val
(),
function
(
data
){
HttpService
.
selectXmlPackageCount
(
$
(
"#datepicker"
).
val
(),
function
(
data
){
$scope
.
paginationConf
.
totalItems
=
50
;
})
HttpService
.
selectXmlPackage
(
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
$scope
.
xmlPackageData
=
data
;
$scope
.
xmlPackageData
=
data
;
console
.
log
(
"$scope.xmlPackageData:"
,
$scope
.
xmlPackageData
)
console
.
log
(
"$scope.xmlPackageData:"
,
$scope
.
xmlPackageData
)
})
})
}
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$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