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
6d8f7919
Commit
6d8f7919
authored
Jul 31, 2024
by
guantiantian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格口文件上传增加是否港澳台参数
parent
40c8d753
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
304 additions
and
158 deletions
+304
-158
service.js
src/main/resources/static/js/service.js
+2
-2
excelAndSearch.html
...resources/static/views/excelAndSearch/excelAndSearch.html
+142
-48
excelAndSearch.js
...n/resources/static/views/excelAndSearch/excelAndSearch.js
+160
-108
No files found.
src/main/resources/static/js/service.js
View file @
6d8f7919
...
...
@@ -193,10 +193,10 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
})
},
uploadExcelFile
:
function
(
date1
,
date2
,
fd
,
success
){
uploadExcelFile
:
function
(
date1
,
date2
,
isGAT
,
fd
,
success
){
$http
({
method
:
'POST'
,
url
:
"../ReadExcel/ReadPersonPost?formStartTime="
+
date1
+
"&formDeadLine="
+
date2
,
url
:
"../ReadExcel/ReadPersonPost?formStartTime="
+
date1
+
"&formDeadLine="
+
date2
+
"&isGAT="
+
isGAT
,
data
:
fd
,
headers
:
{
'Content-Type'
:
undefined
},
transformRequest
:
angular
.
identity
...
...
src/main/resources/static/views/excelAndSearch/excelAndSearch.html
View file @
6d8f7919
<style>
.table
th
,
.table
td
{
.table
th
,
.table
td
{
text-align
:
center
;
vertical-align
:
middle
!important
;
vertical-align
:
middle
!important
;
}
.select2-search__field
{
height
:
30px
;
height
:
30px
;
}
.ul
li
{
.ul
li
{
cursor
:
pointer
;
}
.page-list
.pagination
{
float
:
left
;}
.page-list
.pagination
span
{
cursor
:
pointer
;}
.page-list
.pagination
.separate
span
{
cursor
:
default
;
border-top
:
none
;
border-bottom
:
none
;}
.page-list
.pagination
.separate
span
:hover
{
background
:
none
;}
.page-list
.page-total
{
float
:
left
;
margin
:
25px
20px
;}
.page-list
.page-total
input
,
.page-list
.page-total
select
{
height
:
26px
;
border
:
1px
solid
#ddd
;}
.page-list
.page-total
input
{
width
:
40px
;
padding-left
:
3px
;}
.page-list
.page-total
select
{
width
:
50px
;}
.page-list
.pagination
{
float
:
left
;
}
.page-list
.pagination
span
{
cursor
:
pointer
;
}
.page-list
.pagination
.separate
span
{
cursor
:
default
;
border-top
:
none
;
border-bottom
:
none
;
}
.page-list
.pagination
.separate
span
:hover
{
background
:
none
;
}
.page-list
.page-total
{
float
:
left
;
margin
:
25px
20px
;
}
.page-list
.page-total
input
,
.page-list
.page-total
select
{
height
:
26px
;
border
:
1px
solid
#ddd
;
}
.page-list
.page-total
input
{
width
:
40px
;
padding-left
:
3px
;
}
.page-list
.page-total
select
{
width
:
50px
;
}
.page-list
:after
{
display
:
block
;
clear
:
both
;
content
:
""
content
:
""
;
}
.page-list
{
zoom
:
1
.page-list
{
zoom
:
1
;
}
</style>
<div
class=
"content row"
>
<div
class=
"col-md-12"
style=
"margin-top:20px;
"
>
<div
class=
"col-md-12"
style=
"margin-top: 20px
"
>
<div
class=
"box"
>
<strong
class=
"box-header with-border"
>
异地制证数据量导出
</strong>
<div
class=
"box box-primary"
>
...
...
@@ -40,7 +63,13 @@
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"strdate"
readonly
/>
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"strdate"
readonly
/>
</div>
</td>
<td>
...
...
@@ -48,12 +77,20 @@
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"enddate"
readonly
/>
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"enddate"
readonly
/>
</div>
</td>
<td>
<div
style=
"float: left"
>
<button
class=
"btn btn-info"
ng-click=
"expUploadInfo()"
>
数据导出
</button>
<button
class=
"btn btn-info"
ng-click=
"expUploadInfo()"
>
数据导出
</button>
</div>
</td>
</tr>
...
...
@@ -71,47 +108,75 @@
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
<input
type=
"text"
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"datepicker1"
readonly
/>
id=
"datepicker1"
readonly
/>
</div>
</td>
<td>
订单截止日期:
</td>
<td>
订单截止日期:
</td>
<td>
<div
class=
"input-group date"
>
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
<input
type=
"text"
<input
type=
"text"
class=
"form-control pull-right"
ng-model=
"choseDate"
id=
"datepicker2"
readonly
/>
ng-model=
"choseDate"
id=
"datepicker2"
readonly
/>
</div>
</td>
</tr>
<tr>
<td>
港澳台:
</td>
<td>
<input
type=
"radio"
ng-model=
"isGAT"
name=
"type"
:value=
"true"
/>
是
<input
style=
"margin-left: 10px"
type=
"radio"
ng-model=
"isGAT"
name=
"type"
:value=
"false"
ng-checked=
"true"
/>
否
</td>
<td>
选择Excel文件:
</td>
<td
colspan=
"2"
>
<input
type=
"file"
<input
type=
"file"
id=
"id_file_photo_for_check"
class=
"file"
data-show-preview=
"false"
data-allowed-file-extensions=
'["XLS","xls","XLSX","xlsx"]'
multiple
/>
multiple
/>
</td>
<td>
<div
style=
"float: left"
>
<button
class=
"btn btn-primary"
ng-click=
"uploadExcel()"
>
上传
</button>
<button
class=
"btn btn-primary"
ng-click=
"uploadExcel()"
>
上传
</button>
</div>
</td>
</tr>
</table>
</div>
</div>
<div
class=
"box
"
>
<div
class=
"box"
>
<strong
class=
"box-header with-border"
>
格口文件管理
</strong>
<div
class=
"box box-primary"
style=
"margin-bottom: 0;
"
>
<table
class=
"table table-bordered"
style=
"margin-bottom: 0;
"
>
<div
class=
"box box-primary"
style=
"margin-bottom: 0
"
>
<table
class=
"table table-bordered"
style=
"margin-bottom: 0
"
>
<tr>
<td>
上传时间:
</td>
<td>
...
...
@@ -119,19 +184,28 @@
<div
class=
"input-group-addon"
>
<i
class=
"fa fa-calendar"
></i>
</div>
<input
type=
"text"
<input
type=
"text"
class=
"form-control pull-right"
id=
"datepicker3"
value=
"{{choseDate}}"
readonly
/>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-remove"
></span></span>
id=
"datepicker3"
value=
"{{choseDate}}"
readonly
/>
<span
class=
"input-group-addon"
><span
class=
"glyphicon glyphicon-remove"
></span
></span>
</div>
</td>
<td>
文件名称:
</td>
<td>
<input
type=
"text"
class=
"form-control"
ng-model=
"fileName"
placeholder=
"文件名称"
>
</td>
<td>
状态:
<input
type=
"text"
class=
"form-control"
ng-model=
"fileName"
placeholder=
"文件名称"
/>
</td>
<td>
状态:
</td>
<td>
<select
class=
"form-control select2"
id=
"state"
ng-model=
"state"
>
<option
value=
""
>
--请选择解析状态--
</option>
...
...
@@ -140,13 +214,18 @@
</select>
</td>
<td>
<button
class=
"btn btn-primary"
ng-click=
"getPostPackage()"
>
查询
</button>
<button
class=
"btn btn-primary"
ng-click=
"getPostPackage()"
>
查询
</button>
</td>
</tr>
</table>
</div>
<div
class=
"box-info"
style=
"padding-top: 0;"
>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"postPackageData.length>0"
>
<div
class=
"box-info"
style=
"padding-top: 0"
>
<table
class=
"table table-bordered table-hover postTable"
ng-if=
"postPackageData.length>0"
>
<thead>
<tr>
<th>
NO.
</th>
...
...
@@ -170,23 +249,38 @@
<td
ng-if=
"item.state==0"
>
未解析
</td>
<td
ng-if=
"item.state==1"
>
已解析
</td>
<td>
<button
class=
"btn btn-danger"
ng-disabled=
"item.state==1"
ng-click=
"deletePostData(item.fileId,item.uploadDate)"
>
删除
</button>
<button
class=
"btn btn-danger"
ng-disabled=
"item.state==1"
ng-click=
"deletePostData(item.fileId,item.uploadDate)"
>
删除
</button>
</td>
</tr>
</tbody>
</table>
<div
style=
"padding-left: 27%;
"
ng-if=
"postPackageData.length>0"
>
<div
style=
"padding-left: 27%
"
ng-if=
"postPackageData.length>0"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
<div
class=
"box-body"
ng-if=
"postPackageData.length==0"
><h4>
暂无记录
</h4></div>
<div
class=
"row"
style=
"padding:0 25px;"
ng-if=
"postMsgDetail.length>0"
>
<div
class=
"box-body"
ng-if=
"postPackageData.length==0"
>
<h4>
暂无记录
</h4>
</div>
<div
class=
"row"
style=
"padding: 0 25px"
ng-if=
"postMsgDetail.length>0"
>
<div
class=
"col-md-11"
></div>
<div
class=
"col-md-1"
style=
"text-align: right;"
>
<button
id=
"rev-btn"
class=
"btn btn-primary"
data-loading-text=
"Loading..."
ng-click=
"PreviewMytableRotate()"
type=
"button"
>
打印
</button>
<div
class=
"col-md-1"
style=
"text-align: right"
>
<button
id=
"rev-btn"
class=
"btn btn-primary"
data-loading-text=
"Loading..."
ng-click=
"PreviewMytableRotate()"
type=
"button"
>
打印
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
src/main/resources/static/views/excelAndSearch/excelAndSearch.js
View file @
6d8f7919
'use strict'
;
angular
.
module
(
'AvatarCheck.excelAndSearch'
,
[
'ngRoute'
,
'AvatarCheck.http'
,
'tm.pagination'
])
.
config
([
'$routeProvider'
,
function
(
$routeProvider
)
{
$routeProvider
.
when
(
'/excelAndSearch'
,
{
templateUrl
:
'views/excelAndSearch/excelAndSearch.html'
+
urlTimeStamp
(),
controller
:
'excelAndSearchCtrl'
,
cache
:
false
});
}])
.
controller
(
'excelAndSearchCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
$filter
,
$interval
,
MessageService
,
ngDialog
)
{
"use strict"
angular
.
module
(
"AvatarCheck.excelAndSearch"
,
[
"ngRoute"
,
"AvatarCheck.http"
,
"tm.pagination"
,
])
.
config
([
"$routeProvider"
,
function
(
$routeProvider
)
{
$routeProvider
.
when
(
"/excelAndSearch"
,
{
templateUrl
:
"views/excelAndSearch/excelAndSearch.html"
+
urlTimeStamp
(),
controller
:
"excelAndSearchCtrl"
,
cache
:
false
,
})
},
])
.
controller
(
"excelAndSearchCtrl"
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
$filter
,
$interval
,
MessageService
,
ngDialog
)
{
$
(
"#id_file_photo_for_check"
).
fileinput
({
language
:
'zh'
,
language
:
"zh"
,
showUpload
:
false
,
showCaption
:
true
,
maxFileCount
:
1024
,
showPreview
:
true
,
maxFileSize
:
1024
*
30
});
maxFileSize
:
1024
*
30
,
})
//Date picker
$
(
'#strdate'
).
datetimepicker
({
$
(
"#strdate"
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyy-MM-dd'
,
language
:
"zh-CN"
,
format
:
"yyyy-MM-dd"
,
todayBtn
:
1
,
autoclose
:
1
});
$
(
'#enddate'
).
datetimepicker
({
autoclose
:
1
,
})
$
(
"#enddate"
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyy-MM-dd'
,
language
:
"zh-CN"
,
format
:
"yyyy-MM-dd"
,
todayBtn
:
1
,
autoclose
:
1
});
autoclose
:
1
,
})
//Date picker
$
(
'#datepicker1'
).
datetimepicker
({
$
(
"#datepicker1"
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyy-MM-dd'
,
language
:
"zh-CN"
,
format
:
"yyyy-MM-dd"
,
todayBtn
:
1
,
autoclose
:
1
});
autoclose
:
1
,
})
$
(
'#datepicker2'
).
datetimepicker
({
$
(
"#datepicker2"
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyy-MM-dd'
,
language
:
"zh-CN"
,
format
:
"yyyy-MM-dd"
,
todayBtn
:
1
,
autoclose
:
1
});
$
(
'#datepicker3'
).
datetimepicker
({
autoclose
:
1
,
})
$
(
"#datepicker3"
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyy-MM-dd'
,
language
:
"zh-CN"
,
format
:
"yyyy-MM-dd"
,
todayBtn
:
1
,
autoclose
:
1
});
autoclose
:
1
,
})
//清除的代码
$
(
".glyphicon-remove"
).
click
(
function
()
{
$
(
$
(
$
(
this
).
parent
()).
prev
()).
val
(
""
);
$
(
".glyphicon-remove"
).
click
(
function
()
{
$
(
$
(
$
(
this
).
parent
()).
prev
()).
val
(
""
)
})
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
)
$scope
.
isGAT
=
false
$scope
.
expUploadInfo
=
function
()
{
var
strdate
=
$
(
"#strdate"
).
val
();
var
enddate
=
$
(
"#enddate"
).
val
();
var
url
=
'../personPostApi/downloadUploadInfo?'
+
'strDate='
+
strdate
+
'&'
+
'endDate='
+
enddate
;
var
a
=
document
.
createElement
(
"a"
);
document
.
body
.
appendChild
(
a
);
a
.
href
=
encodeURI
(
url
);
a
.
click
();
var
strdate
=
$
(
"#strdate"
).
val
()
var
enddate
=
$
(
"#enddate"
).
val
()
var
url
=
"../personPostApi/downloadUploadInfo?"
+
"strDate="
+
strdate
+
"&"
+
"endDate="
+
enddate
var
a
=
document
.
createElement
(
"a"
)
document
.
body
.
appendChild
(
a
)
a
.
href
=
encodeURI
(
url
)
a
.
click
()
}
$scope
.
uploadExcel
=
function
()
{
var
fd
=
new
FormData
();
var
files
=
document
.
querySelector
(
'input#id_file_photo_for_check'
).
files
;
if
(
files
.
length
==
0
){
var
fd
=
new
FormData
()
var
files
=
document
.
querySelector
(
"input#id_file_photo_for_check"
).
files
if
(
files
.
length
==
0
)
{
MessageService
.
showAlert
(
"请选择上传的文件..."
)
}
else
{
for
(
var
i
in
files
)
{
fd
.
append
(
'file'
,
files
[
i
]);
}
else
{
for
(
var
i
in
files
)
{
fd
.
append
(
"file"
,
files
[
i
])
}
var
getData
=
$scope
.
getPostPackage
;
var
getData
=
$scope
.
getPostPackage
ngDialog
.
openConfirm
({
template
:
'dialogs/alert.html'
+
urlTimeStamp
(),
template
:
"dialogs/alert.html"
+
urlTimeStamp
(),
width
:
600
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
$scope
.
wrongMsg
=-
1
;
closeByDocument
:
false
,
controller
:
[
"$scope"
,
function
(
$scope
)
{
$scope
.
wrongMsg
=
-
1
$scope
.
msgText
=
"上传中,请稍等..."
HttpService
.
uploadExcelFile
(
$
(
"#datepicker1"
).
val
(),
$
(
"#datepicker2"
).
val
(),
fd
,
function
(
data
)
{
$scope
.
msgText
=
data
.
msg
;
getData
();
HttpService
.
uploadExcelFile
(
$
(
"#datepicker1"
).
val
(),
$
(
"#datepicker2"
).
val
(),
$scope
.
isGAT
,
fd
,
function
(
data
)
{
$scope
.
msgText
=
data
.
msg
getData
()
}
)
},
],
})
}]
});
}
}
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
5
,
10
,
15
,
20
,
25
]
};
$scope
.
getPostPackage
=
function
(){
if
(
$scope
.
paginationConf
.
currentPage
!=
1
){
$scope
.
paginationConf
.
currentPage
=
1
;
$scope
.
paginationConf
.
itemsPerPage
=
10
;
}
else
{
$scope
.
getPostPackagePage
();
perPageOptions
:
[
5
,
10
,
15
,
20
,
25
],
}
$scope
.
getPostPackage
=
function
()
{
if
(
$scope
.
paginationConf
.
currentPage
!=
1
)
{
$scope
.
paginationConf
.
currentPage
=
1
$scope
.
paginationConf
.
itemsPerPage
=
10
}
else
{
$scope
.
getPostPackagePage
()
}
$scope
.
getPostPackagePage
=
function
(){
HttpService
.
selectPostPackageCount
(
$scope
.
fileName
,
$scope
.
state
,
$
(
"#datepicker3"
).
val
(),
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
string
;
}
$scope
.
getPostPackagePage
=
function
()
{
HttpService
.
selectPostPackageCount
(
$scope
.
fileName
,
$scope
.
state
,
$
(
"#datepicker3"
).
val
(),
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
string
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
}
)
// if($scope.paginationConf.currentPage==0){
// $scope.paginationConf.currentPage=1;
// }
HttpService
.
selectPostPackage
(
$scope
.
fileName
,
$scope
.
state
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
$
(
"#datepicker3"
).
val
(),
function
(
data
){
$scope
.
postPackageData
=
data
.
respData
;
HttpService
.
selectPostPackage
(
$scope
.
fileName
,
$scope
.
state
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
$
(
"#datepicker3"
).
val
(),
function
(
data
)
{
$scope
.
postPackageData
=
data
.
respData
console
.
log
(
$scope
.
postPackageData
)
})
}
)
}
var
reGetPostData
=
$scope
.
getPostPackage
;
var
reGetPostData
=
$scope
.
getPostPackage
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getPostPackagePage
);
$scope
.
$watch
(
"paginationConf.currentPage +paginationConf.itemsPerPage"
,
$scope
.
getPostPackagePage
)
$scope
.
deletePostData
=
function
(
fileid
,
importDate
)
{
$scope
.
deletePostData
=
function
(
fileid
,
importDate
)
{
ngDialog
.
open
({
template
:
'dialogs/confirm.html'
+
urlTimeStamp
(),
template
:
"dialogs/confirm.html"
+
urlTimeStamp
(),
width
:
600
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
$scope
.
wrongMsg
=-
1
;
$scope
.
total
=
1
;
$scope
.
importDate
=
$filter
(
'myDateFilter'
)(
importDate
,
'yyyy-MM-dd'
);
$scope
.
fileid
=
fileid
;
closeByDocument
:
false
,
controller
:
[
"$scope"
,
function
(
$scope
)
{
$scope
.
wrongMsg
=
-
1
$scope
.
total
=
1
$scope
.
importDate
=
$filter
(
"myDateFilter"
)(
importDate
,
"yyyy-MM-dd"
)
$scope
.
fileid
=
fileid
$scope
.
confirmDelete
=
function
()
{
HttpService
.
deleteByFileId
(
fileid
,
function
(
data
)
{
// MessageService.showAlert(data.msg);
if
(
data
.
msg
)
{
$scope
.
closeThisDialog
();
reGetPostData
();
}
else
{
$scope
.
wrongMsg
=
"删除失败"
;
if
(
data
.
msg
)
{
$scope
.
closeThisDialog
()
reGetPostData
()
}
else
{
$scope
.
wrongMsg
=
"删除失败"
}
})
};
}]
});
}
});
\ No newline at end of file
},
],
})
}
}
)
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