Commit 2a896f40 authored by zhengke's avatar zhengke

修改删除

parent fa9ac979
......@@ -289,25 +289,30 @@ export default {
);
},
isDelete(ID) {
var that = this;
that.Confirm("是否删除?", function() {
let msg = {
ID: ID
};
this.apipost(
"ticketcouponsticket_post_Remove",
msg,
res => {
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$message({
type: 'success',
message: '删除成功!'
});
this.apipost('ticketcouponsticket_post_Remove', {
ID: ID
}, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
this.getList()
} else {
this.Error(res.data.message);
}
},
null
);
});
}, err => {
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
},
goUrl(path, id) {
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