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
66ecedde
Commit
66ecedde
authored
Mar 13, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表单验证
parent
65c57664
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
service.js
src/main/resources/static/js/service.js
+6
-6
xmlAndSearch.html
...ain/resources/static/views/xmlAndSearch/xmlAndSearch.html
+2
-2
xmlAndSearch.js
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
+4
-4
No files found.
src/main/resources/static/js/service.js
View file @
66ecedde
...
@@ -662,13 +662,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -662,13 +662,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
analyseData
:
function
(
id
,
success
){
analyseData
:
function
(
date
,
success
){
console
.
log
(
id
)
console
.
log
(
date
)
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../LogApi/selectAnalysisData"
+
urlTimeStamp
(),
url
:
"../LogApi/selectAnalysisData"
+
urlTimeStamp
(),
params
:{
params
:{
filesId
:
id
uploadDate
:
date
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
@@ -796,13 +796,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -796,13 +796,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
deleteProdDataByFileId
:
function
(
id
,
success
){
deleteProdDataByFileId
:
function
(
uploadDate
,
success
){
console
.
log
(
id
)
console
.
log
(
uploadDate
)
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../LogApi/deleteFiles"
+
urlTimeStamp
(),
url
:
"../LogApi/deleteFiles"
+
urlTimeStamp
(),
params
:{
params
:{
fileId
:
id
uploadDate
:
uploadDate
}
}
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.html
View file @
66ecedde
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
<td>
{{item.commonCount}}
</td>
<td>
{{item.commonCount}}
</td>
<td>
{{item.postCount}}
</td>
<td>
{{item.postCount}}
</td>
<td>
<td>
<button
class=
"btn btn-primary"
ng-click=
"analysis(item.
uploadDate,item.packageCount,item.fileId
)"
>
解析
</button>
<button
class=
"btn btn-primary"
ng-click=
"analysis(item.
date,item.packageCount
)"
>
解析
</button>
<button
class=
"btn btn-danger"
ng-click=
"deleteDataById(item.
uploadDate,item.packageCount,item.fileId
)"
>
删除
</button>
<button
class=
"btn btn-danger"
ng-click=
"deleteDataById(item.
date,item.packageCount
)"
>
删除
</button>
</td>
</td>
</tr>
</tr>
</tbody>
</tbody>
...
...
src/main/resources/static/views/xmlAndSearch/xmlAndSearch.js
View file @
66ecedde
...
@@ -32,7 +32,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -32,7 +32,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
,
id
)
{
$scope
.
analysis
=
function
(
uploadDate
,
packageCount
)
{
ngDialog
.
open
({
ngDialog
.
open
({
template
:
'dialogs/analysisDialog.html'
+
urlTimeStamp
(),
template
:
'dialogs/analysisDialog.html'
+
urlTimeStamp
(),
width
:
876
,
width
:
876
,
...
@@ -40,7 +40,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -40,7 +40,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
,
HttpService
)
{
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
,
HttpService
)
{
$scope
.
upDate
=
uploadDate
;
$scope
.
upDate
=
uploadDate
;
$scope
.
upCount
=
packageCount
;
$scope
.
upCount
=
packageCount
;
HttpService
.
analyseData
(
id
,
function
(
data
)
{
HttpService
.
analyseData
(
uploadDate
,
function
(
data
)
{
$scope
.
resultData
=
data
;
$scope
.
resultData
=
data
;
console
.
log
(
$scope
.
resultData
)
console
.
log
(
$scope
.
resultData
)
})
})
...
@@ -87,7 +87,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -87,7 +87,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
var
reGet
=
$scope
.
getXmlPackage
;
var
reGet
=
$scope
.
getXmlPackage
;
$scope
.
deleteDataById
=
function
(
uploadDate
,
packageCount
,
id
){
$scope
.
deleteDataById
=
function
(
uploadDate
,
packageCount
){
ngDialog
.
open
({
ngDialog
.
open
({
template
:
'dialogs/confirm.html'
+
urlTimeStamp
(),
template
:
'dialogs/confirm.html'
+
urlTimeStamp
(),
width
:
600
,
width
:
600
,
...
@@ -97,7 +97,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -97,7 +97,7 @@ angular.module('AvatarCheck.xmlAndSearch', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
total
=
packageCount
;
$scope
.
total
=
packageCount
;
$scope
.
importDate
=
uploadDate
;
$scope
.
importDate
=
uploadDate
;
$scope
.
confirmDelete
=
function
()
{
$scope
.
confirmDelete
=
function
()
{
HttpService
.
deleteProdDataByFileId
(
id
,
function
(
data
)
{
HttpService
.
deleteProdDataByFileId
(
uploadDate
,
function
(
data
)
{
MessageService
.
showAlert
(
data
.
msg
);
MessageService
.
showAlert
(
data
.
msg
);
$scope
.
closeThisDialog
();
$scope
.
closeThisDialog
();
reGet
();
reGet
();
...
...
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