Commit a6008b3d by lixiaomin

修改优惠券类别提示

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