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
7c885cc3
Commit
7c885cc3
authored
Mar 14, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表单验证
parent
b6c99ff1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
18 deletions
+28
-18
analysisDialog.html
src/main/resources/static/dialogs/analysisDialog.html
+6
-17
service.js
src/main/resources/static/js/service.js
+14
-1
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+8
-0
No files found.
src/main/resources/static/dialogs/analysisDialog.html
View file @
7c885cc3
...
@@ -17,28 +17,18 @@
...
@@ -17,28 +17,18 @@
<tbody>
<tbody>
<tr
ng-repeat=
"item in resultData"
>
<tr
ng-repeat=
"item in resultData"
>
<td>
{{$index+1}}
</td>
<td>
{{$index+1}}
</td>
<td>
{{item.UPLOAD_DATE|
date:'yyyy-MM-dd hh:mm:ss'
}}
</td>
<td>
{{item.UPLOAD_DATE|
myDateFilter
}}
</td>
<td>
{{item.FILE_NAME}}
</td>
<td>
{{item.FILE_NAME}}
</td>
<td>
{{item.
RECORD_NUMBER
}}
</td>
<td>
{{item.
count
}}
</td>
<td>
{{item.FORM_START_TIME|
date:'yyyy-MM-dd hh:mm:ss'
}}
</td>
<td>
{{item.FORM_START_TIME|
myDateFilter
}}
</td>
<td>
{{item.FORM_DEADLINE|
date:'yyyy-MM-dd hh:mm:ss'
}}
</td>
<td>
{{item.FORM_DEADLINE|
myDateFilter
}}
</td>
<td
ng-click=
""
>
<td>
<button
class=
"btn"
>
解析
</button>
<button
class=
"btn"
ng-click=
"analyseToUpdateIfPost(item.FILE_ID)"
>
解析
</button>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<div
class=
"progress"
>
<div
class=
"progress-bar progress-bar-success progress-bar-striped"
role=
"progressbar"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 90%"
>
90% Complete (success)
</div>
</div>
</div>
<div
style=
"text-align: center;"
>
<div
style=
"text-align: center;"
>
<button
class=
"btn btn-success"
style=
"width: 70%"
ng-click=
"closeThisDialog()"
>
关闭
</button>
<button
class=
"btn btn-success"
style=
"width: 70%"
ng-click=
"closeThisDialog()"
>
关闭
</button>
</div>
</div>
\ No newline at end of file
src/main/resources/static/js/service.js
View file @
7c885cc3
...
@@ -663,12 +663,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -663,12 +663,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
})
})
},
},
analyseData
:
function
(
date
,
success
){
analyseData
:
function
(
date
,
success
){
date
=
date
.
substr
(
0
,
10
);
console
.
log
(
date
)
console
.
log
(
date
)
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../LogApi/selectAnalysisData"
+
urlTimeStamp
(),
url
:
"../LogApi/selectAnalysisData"
+
urlTimeStamp
(),
params
:{
params
:{
uploadDate
:
date
uploadDate
:
'2019-03-11'
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
@@ -689,6 +690,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -689,6 +690,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
analyseToUpdateIfPostCard
:
function
(
fileid
,
uploadDate
,
success
)
{
$http
({
method
:
'GET'
,
url
:
"../LogApi/analysis"
+
urlTimeStamp
(),
params
:{
fileId
:
fileid
,
printDate
:
uploadDate
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
updateTaskListProcess
:
function
(
json
,
success
){
updateTaskListProcess
:
function
(
json
,
success
){
var
body
=
JSON
.
stringify
(
json
);
var
body
=
JSON
.
stringify
(
json
);
$http
({
$http
({
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
7c885cc3
...
@@ -44,6 +44,14 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -44,6 +44,14 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
resultData
=
data
;
$scope
.
resultData
=
data
;
console
.
log
(
$scope
.
resultData
)
console
.
log
(
$scope
.
resultData
)
})
})
$scope
.
analyseToUpdateIfPost
=
function
(
fileid
){
console
.
log
(
uploadDate
)
HttpService
.
analyseToUpdateIfPostCard
(
fileid
,
uploadDate
,
function
(
data
){
if
(
data
){
MessageService
.
showAlert
(
"解析完成"
)
}
})
}
}]
}]
});
});
...
...
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