Commit 2a896f40 authored by zhengke's avatar zhengke

修改删除

parent fa9ac979
...@@ -289,25 +289,30 @@ export default { ...@@ -289,25 +289,30 @@ export default {
); );
}, },
isDelete(ID) { isDelete(ID) {
var that = this; this.$confirm('是否删除?', '提示', {
that.Confirm("是否删除?", function() { confirmButtonText: '确定',
let msg = { cancelButtonText: '取消',
ID: ID type: 'warning'
}; }).then(() => {
this.apipost( this.$message({
"ticketcouponsticket_post_Remove", type: 'success',
msg, message: '删除成功!'
res => { });
this.apipost('ticketcouponsticket_post_Remove', {
ID: ID
}, 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) {
this.$router.push({ this.$router.push({
......
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