Showing
1 changed file
with
16 additions
and
13 deletions
@@ -90,17 +90,20 @@ $("#filter-btn").click(function() { | @@ -90,17 +90,20 @@ $("#filter-btn").click(function() { | ||
90 | //删除操作 | 90 | //删除操作 |
91 | $('tbody').on('click', '.del-promotion', function() { | 91 | $('tbody').on('click', '.del-promotion', function() { |
92 | var item = g.rows[$(this).data("index")]; | 92 | var item = g.rows[$(this).data("index")]; |
93 | - common.util.__ajax({ | ||
94 | - url: '/promotionInfo/delete', | ||
95 | - data: { | ||
96 | - param: item.id | ||
97 | - } | ||
98 | - }, function(res) { | ||
99 | - if (res.code == 200) { | ||
100 | - common.util.__tip('删除成功', 'success'); | ||
101 | - g.reload(); | ||
102 | - } else { | ||
103 | - common.util.__tip(res.message); | ||
104 | - } | ||
105 | - }, true); | 93 | + |
94 | + common.dialog.confirm("温馨提示", "你确定要删除吗?", function () { | ||
95 | + common.util.__ajax({ | ||
96 | + url: '/promotionInfo/delete', | ||
97 | + data: { | ||
98 | + param: item.id | ||
99 | + } | ||
100 | + }, function(res) { | ||
101 | + if (res.code == 200) { | ||
102 | + common.util.__tip('删除成功', 'success'); | ||
103 | + g.reload(); | ||
104 | + } else { | ||
105 | + common.util.__tip(res.message); | ||
106 | + } | ||
107 | + }, true); | ||
108 | + }); | ||
106 | }); | 109 | }); |
-
Please register or login to post a comment