Commit ff69a96b by lixiaomin

注释优惠券类别取消按钮提示框

parent 4c5844ef
...@@ -150,16 +150,17 @@ export default { ...@@ -150,16 +150,17 @@ export default {
}, },
// 取消按钮 // 取消按钮
resetForm(formName) { resetForm(formName) {
this.$confirm('数据未保存,确定离开?', '提示', { this.open = false;
confirmButtonText: '确定', // this.$confirm('数据未保存,确定离开?', '提示', {
cancelButtonText: '取消', // confirmButtonText: '确定',
type: 'warning' // cancelButtonText: '取消',
}).then(() => { // type: 'warning'
this.open = false; // }).then(() => {
this.$refs[formName].resetFields(); // this.open = false;
}).catch(() => { // this.$refs[formName].resetFields();
// }).catch(() => {
}); // });
}, },
close(formName){ close(formName){
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
......
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