Commit a6008b3d by lixiaomin

修改优惠券类别提示

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