提交 b938b9c3 authored 作者: 陆's avatar

批量删除以及复制

上级 35aeee18
...@@ -233,7 +233,7 @@ let vm = new Vue({ ...@@ -233,7 +233,7 @@ let vm = new Vue({
// url: "../advertisementitem/deleteByItem?itemId=" + itemId + '&adId=' + id, // url: "../advertisementitem/deleteByItem?itemId=" + itemId + '&adId=' + id,
url: "../advertisementitem/deleteByItem?adId=" + id , url: "../advertisementitem/deleteByItem?adId=" + id ,
type: "POST", type: "POST",
data:data, params: JSON.stringify(data),
contentType: "application/json", contentType: "application/json",
successCallback: function () { successCallback: function () {
alert('操作成功', function (index) { alert('操作成功', function (index) {
...@@ -245,7 +245,7 @@ let vm = new Vue({ ...@@ -245,7 +245,7 @@ let vm = new Vue({
}, },
// 批量删除 // 批量删除
delAll() { delAll() {
let id = $("#jqGrid").getGridParam("selrow"); let id = vm.advertisement.id;
if (id == '' || id == null || vm.iscopy == 1) { if (id == '' || id == null || vm.iscopy == 1) {
id = vm.tempId; id = vm.tempId;
} }
...@@ -257,10 +257,11 @@ let vm = new Vue({ ...@@ -257,10 +257,11 @@ let vm = new Vue({
type: "POST", type: "POST",
params: JSON.stringify(ids), params: JSON.stringify(ids),
contentType: "application/json", contentType: "application/json",
successCallback: function () { successCallback: function (e) {
alert('操作成功', function (index) { // alert('操作成功', function (index) {
vm.btn_Search(id); // $("#searchjqGrid").jqGrid('resetSelection');
}); // vm.btn_Search(id);
// });
} }
}); });
}); });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论