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
6c54680a
Commit
6c54680a
authored
Mar 08, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
059071d2
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
168 additions
and
80 deletions
+168
-80
analysisDialog.html
src/main/resources/static/dialogs/analysisDialog.html
+16
-2
app.js
src/main/resources/static/js/app.js
+2
-5
service.js
src/main/resources/static/js/service.js
+38
-0
analysisLog.js
src/main/resources/static/views/analysisLog/analysisLog.js
+2
-0
createTaskList.js
...n/resources/static/views/createTaskList/createTaskList.js
+6
-1
dispatchTask.js
src/main/resources/static/views/dispatchTask/dispatchTask.js
+75
-60
login.js
src/main/resources/static/views/login/login.js
+8
-8
packageLog.js
src/main/resources/static/views/packageLog/packageLog.js
+2
-1
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+19
-3
No files found.
src/main/resources/static/dialogs/analysisDialog.html
View file @
6c54680a
...
...
@@ -15,7 +15,18 @@
</tr>
</thead>
<tbody>
<tr
>
<tr
ng-repeat=
"item in resultData"
>
<td>
{{$index+1}}
</td>
<td>
2019-03-04 15:08
</td>
<td>
格口文件.xls
</td>
<td>
400
</td>
<td>
2019-03-01
</td>
<td>
2019-03-03
</td>
<td
ng-click=
""
>
<button
class=
"btn"
>
解析
</button>
</td>
</tr>
<tr>
<td>
1
</td>
<td>
2019-03-04 15:08
</td>
<td>
格口文件.xls
</td>
...
...
@@ -66,12 +77,15 @@
2019-03-03
</td>
<td
ng-click=
""
>
<button
class=
"btn"
>
解析
</button>
<button
class=
"btn"
ng-click=
"doAnalyse()"
>
解析
</button>
</td>
</tr>
</tbody>
</table>
<div
style=
"padding-left: 27%;"
>
<tm-pagination
conf=
"paginationConf"
class=
"ul"
></tm-pagination>
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<div
class=
"progress"
>
...
...
src/main/resources/static/js/app.js
View file @
6c54680a
...
...
@@ -82,9 +82,6 @@ angular.module('AvatarCheck', [
if
(
$location
.
path
()
==
"/xmlAndSearch"
)
{
$rootScope
.
tab
=
'/xmlAndSearch'
;
}
if
(
$location
.
path
()
==
"/cardProdUpdate"
)
{
$rootScope
.
tab
=
'/cardProdUpdate'
;
}
if
(
$location
.
path
()
==
"/uploadExcelAndSearch"
)
{
$rootScope
.
tab
=
'/uploadExcelAndSearch'
;
}
...
...
@@ -138,10 +135,10 @@ angular.module('AvatarCheck', [
$
(
"body"
).
addClass
(
"sidebar-collapse"
);
}
if
(
$location
.
path
()
==
"/analysisLog"
)
{
$rootScope
.
tab
=
'/
cardProdUpdate
'
;
$rootScope
.
tab
=
'/
analysisLog
'
;
}
if
(
$location
.
path
()
==
"/packageLog"
)
{
$rootScope
.
tab
=
'/
cardProdUpdate
'
;
$rootScope
.
tab
=
'/
packageLog
'
;
}
...
...
src/main/resources/static/js/service.js
View file @
6c54680a
...
...
@@ -431,12 +431,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
},
createTask
:
function
(
data
,
success
){
var
body
=
JSON
.
stringify
(
data
);
console
.
log
(
"data:"
,
body
)
$http
({
method
:
'POST'
,
url
:
"../TaskList/createTask"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
.
data
)
success
(
response
.
data
)
})
},
...
...
@@ -461,6 +463,41 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).
then
(
function
successCallback
(
response
)
{
succuss
(
response
.
data
)
})
},
getTaskListByProcess
:
function
(
success
){
$http
({
method
:
'GET'
,
url
:
"../TaskList/queryByCountyAtAuxiliary"
+
urlTimeStamp
(),
params
:{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
analyseData
:
function
(
date
,
currPage
,
pageSize
,
success
){
$http
({
method
:
'GET'
,
url
:
"../importXML/queryPersonXML"
+
urlTimeStamp
(),
params
:{
importDate
:
date
,
currPage
:
currPage
,
pageSize
:
pageSize
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
analyseDataCount
:
function
(
date
,
success
)
{
$http
({
method
:
'GET'
,
url
:
"../importXML/queryPersonXMLCount"
+
urlTimeStamp
(),
params
:{
importDate
:
date
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
}
}
});
\ No newline at end of file
src/main/resources/static/views/analysisLog/analysisLog.js
View file @
6c54680a
...
...
@@ -33,10 +33,12 @@ angular.module('AvatarCheck.analysisLog', ['ngRoute', 'AvatarCheck.http', 'tm.pa
$scope
.
getAnalyseLog
=
function
(){
HttpService
.
selectAnalyseLogCount
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
function
(
data
)
{
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
())
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
selectAnalyseLog
(
$scope
.
oldPackageName
,
$
(
"#datepicker"
).
val
(),
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
())
$scope
.
analyseLog
=
data
;
console
.
log
(
$scope
.
analyseLog
)
})
...
...
src/main/resources/static/views/createTaskList/createTaskList.js
View file @
6c54680a
...
...
@@ -41,6 +41,9 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
}
$scope
.
searchCurrent
();
var
reGet
=
function
()
{
$scope
.
searchCurrent
();
}
$scope
.
currentTab
=
0
;
$scope
.
func
=
function
(
index
)
{
...
...
@@ -155,9 +158,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
groupList
:
groupList
,
tag
:
0
}
console
.
log
(
map
)
HttpService
.
createTask
(
map
,
function
(
data
){
MessageService
.
showAlert
(
"创建成功"
)
$scope
.
searchCurrent
();
console
.
log
(
reGet
)
reGet
();
})
}
...
...
src/main/resources/static/views/dispatchTask/dispatchTask.js
View file @
6c54680a
...
...
@@ -22,69 +22,84 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
cycleSheetData
=
[
{
typeCode
:
'1'
,
typeName
:
'普通证'
,
typeSum
:
300
,
isActive
:
'true'
,
countyList
:
[
{
saveDate
:
'20190228'
,
county
:
'朝阳区'
,
groupCount
:
5
,
groupNo
:
'00234653-03687587'
,
valid
:
240
,
invalid
:
0
,
state
:
'未下发'
},
{
saveDate
:
'20190228'
,
county
:
'海淀区'
,
groupCount
:
6
,
groupNo
:
'00234653-03687588'
,
valid
:
280
,
invalid
:
2
,
state
:
'未下发'
},
{
saveDate
:
'20190228'
,
county
:
'海淀区'
,
groupCount
:
6
,
groupNo
:
'00234653-03687588'
,
valid
:
280
,
invalid
:
2
,
state
:
'未下发'
$scope
.
searchTaskList
=
function
(){
HttpService
.
getTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
cycleSheetData
.
length
;
i
++
){
if
(
i
==
$scope
.
currentTab
){
$scope
.
cycleSheetData
[
i
].
isActive
=
true
;
}
else
{
$scope
.
cycleSheetData
[
i
].
isActive
=
false
;
}
]
},
{
typeCode
:
'9'
,
typeName
:
'邮寄证'
,
typeSum
:
500
,
isActive
:
'false'
,
countyList
:
[
{
saveDate
:
'20190228'
,
county
:
'朝阳区'
,
groupCount
:
5
,
groupNo
:
'00234653-03687587'
,
valid
:
240
,
invalid
:
0
,
state
:
'未下发'
},
{
saveDate
:
'20190228'
,
county
:
'海淀区'
,
groupCount
:
6
,
groupNo
:
'00234653-03687588'
,
valid
:
280
,
invalid
:
2
,
state
:
'未下发'
}
]
console
.
log
(
$scope
.
cycleSheetData
)
})
}
]
$scope
.
searchTaskList
();
// $scope.cycleSheetData = [
// {
// typeCode: '1',
// typeName: '普通证',
// typeSum: 300,
// isActive: 'true',
// countyList: [
// {
// saveDate: '20190228',
// county: '朝阳区',
// groupCount:5,
// groupNo: '00234653-03687587',
// valid: 240,
// invalid: 0,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// }
// ]
// },
// {
// typeCode: '9',
// typeName: '邮寄证',
// typeSum: 500,
// isActive: 'false',
// countyList: [
// {
// saveDate: '20190228',
// county: '朝阳区',
// groupCount:5,
// groupNo: '00234653-03687587',
// valid: 240,
// invalid: 0,
// state:'未下发'
// },
// {
// saveDate: '20190228',
// county: '海淀区',
// groupCount:6,
// groupNo: '00234653-03687588',
// valid: 280,
// invalid: 2,
// state:'未下发'
// }
// ]
// }
// ]
$scope
.
currentTab
=
0
;
$scope
.
func
=
function
(
index
)
{
for
(
var
idx
in
$scope
.
cycleSheetData
)
{
...
...
src/main/resources/static/views/login/login.js
View file @
6c54680a
...
...
@@ -42,23 +42,23 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$location
.
path
(
"/taskListPreLocating"
);
$rootScope
.
tab
=
'/taskListPreLocating'
;
break
;
case
4
:
case
6
:
$location
.
path
(
"/taskListSorting"
);
$rootScope
.
tab
=
'/taskListSorting'
;
break
;
case
5
:
$location
.
path
(
"/taskListQualityCheck"
);
$rootScope
.
tab
=
'/taskListQualityCheck'
;
break
;
case
6
:
$location
.
path
(
"/receitp"
);
$rootScope
.
tab
=
'/receitp'
;
case
4
:
break
;
case
7
:
$location
.
path
(
"/
uploadExcelAndSearch
"
);
$rootScope
.
tab
=
'/
uploadExcelAndSearch
'
;
$location
.
path
(
"/
receitp
"
);
$rootScope
.
tab
=
'/
receitp
'
;
break
;
case
8
:
$location
.
path
(
"/searchCardMsg"
);
$rootScope
.
tab
=
'/searchCardMsg'
;
break
;
case
9
:
$location
.
path
(
"/createTaskList"
);
$rootScope
.
tab
=
'/createTaskList'
;
break
;
...
...
src/main/resources/static/views/packageLog/packageLog.js
View file @
6c54680a
...
...
@@ -35,11 +35,12 @@ angular.module('AvatarCheck.packageLog', ['ngRoute', 'AvatarCheck.http', 'tm.pag
$scope
.
getPackageLog
=
function
(){
HttpService
.
selectPackageLogCount
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
(),
$scope
.
county
,
function
(
data
)
{
console
.
log
(
data
)
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
()
)
$scope
.
paginationConf
.
totalItems
=
data
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
selectPackageLog
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
(),
$scope
.
county
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
){
console
.
log
(
$scope
.
newPackageName
,
$scope
.
idCard
,
$
(
'#datepicker'
).
val
())
$scope
.
packageLogData
=
data
;
console
.
log
(
$scope
.
packageLogData
)
})
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
6c54680a
...
...
@@ -33,14 +33,30 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
ngDialog
.
open
({
template
:
'dialogs/analysisDialog.html'
+
urlTimeStamp
(),
width
:
876
,
cache
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
,
HttpService
)
{
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
upDate
=
uploadDate
;
$scope
.
upCount
=
packageCount
;
$scope
.
getAnalyseData
=
function
()
{
HttpService
.
analyseDataCount
(
uploadDate
,
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
.
respData
.
string
;
console
.
log
(
$scope
.
paginationConf
.
totalItems
)
})
HttpService
.
analyseData
(
uploadDate
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
)
{
$scope
.
resultData
=
data
;
console
.
log
(
$scope
.
resultData
)
})
}
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
getAnalyseData
);
}]
});
...
...
@@ -61,12 +77,12 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
}
}
$scope
.
paginationConf
=
{
currentPage
:
1
,
itemsPerPage
:
10
,
perPageOptions
:
[
10
,
20
,
30
,
40
,
50
]
};
$scope
.
getXmlPackage
=
function
(){
console
.
log
(
$
(
"#datepicker"
).
val
())
HttpService
.
selectXmlPackageCount
(
$
(
"#datepicker"
).
val
(),
function
(
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