Commit 2a896f40 authored by zhengke's avatar zhengke

修改删除

parent fa9ac979
...@@ -289,24 +289,29 @@ export default { ...@@ -289,24 +289,29 @@ export default {
); );
}, },
isDelete(ID) { isDelete(ID) {
var that = this; this.$confirm('是否删除?', '提示', {
that.Confirm("是否删除?", function() { confirmButtonText: '确定',
let msg = { cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
});
this.apipost('ticketcouponsticket_post_Remove', {
ID: ID ID: ID
}; }, res => {
this.apipost(
"ticketcouponsticket_post_Remove",
msg,
res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.getList()
this.getList();
} else { } else {
this.Error(res.data.message);
} }
}, }, err => {
null })
); }).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
}); });
}, },
goUrl(path, id) { goUrl(path, id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment