添加取消按钮刷新列表

This commit is contained in:
RenCheng 2025-02-22 12:42:11 +08:00
parent ef1f20de56
commit 952f8d040b

View File

@ -178,10 +178,6 @@ import { datasyncqueryPage,
methods: { methods: {
add () { add () {
this.visible =true; this.visible =true;
let that = this;
that.form.resetFields();
console.log(record);
this.model = Object.assign({},record);
this.getselect(); this.getselect();
}, },
edit (record) { edit (record) {
@ -362,7 +358,7 @@ import { datasyncqueryPage,
this.$emit('ok'); this.$emit('ok');
}, },
close () { close () {
this.$emit('close'); this.$emit('ok');
this.visible = false; this.visible = false;
}, },
handleOk () { handleOk () {
@ -370,6 +366,7 @@ import { datasyncqueryPage,
this.close(); this.close();
}, },
handleCancel () { handleCancel () {
this.$emit('ok');
this.close() this.close()
}, },
} }