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
48fa6188
Commit
48fa6188
authored
Mar 12, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
制证信息管理
parent
606f61a8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
1 deletion
+78
-1
confirmDeleteProdCards.html
...main/resources/static/dialogs/confirmDeleteProdCards.html
+11
-0
service.js
src/main/resources/static/js/service.js
+15
-0
cardProdUpdate.html
...resources/static/views/cardProdUpdate/cardProdUpdate.html
+1
-1
cardProdUpdate.js
...n/resources/static/views/cardProdUpdate/cardProdUpdate.js
+51
-0
No files found.
src/main/resources/static/dialogs/confirmDeleteProdCards.html
0 → 100644
View file @
48fa6188
<div
class=
"ui-dialog-title"
>
提示
</div>
<div
class=
"ui-dialog-content"
>
<div>
确认删除{{startDate}}到{{endDate}}导入的{{total}}条记录吗?
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<button
type=
"submit"
class=
"btn btn-info"
ng-click=
"confirmDelete()"
>
确认删除
</button>
<button
type=
"submit"
class=
"btn btn-danger"
ng-click=
"closeThisDialog()"
>
取消
</button>
</div>
src/main/resources/static/js/service.js
View file @
48fa6188
...
...
@@ -319,6 +319,21 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
})
},
deleteProdCards
:
function
(
startPackageNo
,
endPackageNo
,
pcs_name
,
startDate
,
endDate
,
success
)
{
$http
({
method
:
'GET'
,
url
:
"../InfoManagementApi/deleteInfo"
+
urlTimeStamp
(),
params
:{
beginFileName
:
startPackageNo
,
endFileName
:
endPackageNo
,
gajgMc
:
pcs_name
,
beginDate
:
startDate
,
endDate
:
endDate
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
selectAnalyseLogCount
:
function
(
oldPackageName
,
date
,
success
)
{
if
(
angular
.
isUndefined
(
oldPackageName
)){
oldPackageName
=
''
;
...
...
src/main/resources/static/views/cardProdUpdate/cardProdUpdate.html
View file @
48fa6188
...
...
@@ -70,7 +70,7 @@
<td
colspan=
"2"
>
<div
style=
"text-align: right;"
>
<button
class=
"btn btn-primary"
ng-click=
"doXmlQuery()"
>
查询
</button>
<button
type=
"submit"
class=
"btn btn-danger"
ng-click=
"d
ownload
Xml()"
>
删除
</button>
<button
type=
"submit"
class=
"btn btn-danger"
ng-click=
"d
elete
Xml()"
>
删除
</button>
</div>
</td>
</tr>
...
...
src/main/resources/static/views/cardProdUpdate/cardProdUpdate.js
View file @
48fa6188
...
...
@@ -84,4 +84,54 @@ angular.module('AvatarCheck.cardProdUpdate', ['ngRoute', 'AvatarCheck.http'])
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope
.
$watch
(
'paginationConf.currentPage +paginationConf.itemsPerPage'
,
$scope
.
doXmlQuery
);
var
reGet
=
$scope
.
doXmlQuery
;
$scope
.
deleteXml
=
function
()
{
var
startDate
=
$
(
"#datepicker1"
).
val
();
var
endDate
=
$
(
"#datepicker2"
).
val
();
var
startPackageNo
=
$scope
.
startPackageNo
;
var
endPackageNo
=
$scope
.
endPackageNo
;
var
pcs_name
=
$scope
.
pcs_name
;
if
(
angular
.
isUndefined
(
startPackageNo
)){
startPackageNo
=
''
;
}
if
(
angular
.
isUndefined
(
endPackageNo
)){
endPackageNo
=
''
;
}
if
(
angular
.
isUndefined
(
pcs_name
)){
pcs_name
=
''
;
}
if
(
startDate
==
''
){
startDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
}
if
(
endDate
==
''
){
endDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
}
ngDialog
.
open
({
template
:
'dialogs/confirmDeleteProdCards.html'
+
urlTimeStamp
(),
width
:
600
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
$scope
.
startDate
=
startDate
;
$scope
.
endDate
=
endDate
;
HttpService
.
selectXmlDataCount
(
startPackageNo
,
endPackageNo
,
pcs_name
,
startDate
,
endDate
,
function
(
data
){
$scope
.
total
=
data
;
console
.
log
(
$scope
.
total
,
"count"
)
})
$scope
.
confirmDelete
=
function
()
{
HttpService
.
deleteProdCards
(
startPackageNo
,
endPackageNo
,
pcs_name
,
startDate
,
endDate
,
function
(
data
)
{
if
(
data
){
MessageService
.
showAlert
(
"删除成功"
);
$scope
.
closeThisDialog
();
reGet
();
}
else
{
MessageService
.
showAlert
(
"删除失败"
)
}
})
};
}]
});
}
});
\ 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