Commit a6008b3d by lixiaomin

修改优惠券类别提示

parent 9ea7a0d2
......@@ -150,7 +150,15 @@ export default {
},
// 取消按钮
cancel() {
this.open = false;
this.$confirm('数据未保存,确定离开?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.open = false;
}).catch(() => {
});
this.reset();
},
// 表单重置
......@@ -232,11 +240,16 @@ export default {
}
});
} else {
addCouCategory(this.form).then((response) => {
if(response.code=="200"){
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
this.$alert('确定添加?', '', {
confirmButtonText: '确定',
callback: action => {
addCouCategory(this.form).then((response) => {
if(response.code=="200"){
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
}
});
}
});
}
......
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