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
cd56f3e3
Commit
cd56f3e3
authored
Mar 10, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
dd7f07b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
service.js
src/main/resources/static/js/service.js
+1
-1
uploadExcelAndSearch.html
...atic/views/uploadExcelAndSearch/uploadExcelAndSearch.html
+3
-3
uploadExcelAndSearch.js
...static/views/uploadExcelAndSearch/uploadExcelAndSearch.js
+5
-7
No files found.
src/main/resources/static/js/service.js
View file @
cd56f3e3
...
...
@@ -133,7 +133,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
getRecordsCount
:
function
(
data
,
success
)
{
var
body
=
JSON
.
stringify
(
data
);
$http
({
method
:
'
GE
T'
,
method
:
'
POS
T'
,
url
:
"../personPostApi/findPersonalDataCount"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
...
...
src/main/resources/static/views/uploadExcelAndSearch/uploadExcelAndSearch.html
View file @
cd56f3e3
...
...
@@ -116,9 +116,9 @@
</tr>
</tbody>
</table>
<div
style=
"padding-left: 27%;
"
>
<tm-pagination
ng-if=
"show"
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<div
style=
"padding-left: 27%;"
ng-if=
"postData.length>0
"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<h4
ng-if=
"postData.length==0"
>
暂无记录。
</h4>
</div>
</div>
...
...
src/main/resources/static/views/uploadExcelAndSearch/uploadExcelAndSearch.js
View file @
cd56f3e3
...
...
@@ -38,7 +38,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
show
=
true
;
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
var
getCountJson
=
function
(){
var
json
=
{};
...
...
@@ -72,7 +71,6 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
return
json
;
}
var
getJson
=
function
()
{
console
.
log
(
$scope
.
paginationConf
.
currentPage
+
1
,
"in"
)
var
json
=
{};
if
(
angular
.
isDefined
(
$scope
.
applicantName
))
{
json
.
applicantName
=
$scope
.
applicantName
;
...
...
@@ -101,17 +99,17 @@ angular.module('AvatarCheck.uploadExcelAndSearch', ['ngRoute', 'AvatarCheck.http
json
.
getToCounty
=
[];
}
json
.
uploadDate
=
$
(
"#datepicker"
).
val
();
json
.
firstIndex
=
$scope
.
paginationConf
.
currentPage
+
1
;
json
.
firstIndex
=
$scope
.
paginationConf
.
currentPage
;
json
.
pageSize
=
$scope
.
paginationConf
.
itemsPerPage
;
return
json
;
}
$scope
.
postData
=
[];
$scope
.
paginationConf
.
totalItems
=
0
$scope
.
doQuery
=
function
()
{
$scope
.
show
=
true
;
// HttpService.getRecordsCount(getCountJson, function (data) {
// $scope.paginationConf.totalItems = data;
//
})
HttpService
.
getRecordsCount
(
getCountJson
(),
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
data
)
})
HttpService
.
searchPostData
(
getJson
(),
function
(
data
)
{
$scope
.
postData
=
data
;
console
.
log
(
data
)
...
...
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