代码调整

This commit is contained in:
joylink_cuiweidong 2021-04-08 18:04:08 +08:00
parent e5249cf4b3
commit 001a963b04
2 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ export default {
return field.type === type; return field.type === type;
}, },
init() { init() {
this.$refs.form.resetFields();
}, },
changeNumber(type, index, form, prop) { changeNumber(type, index, form, prop) {
if (form[prop][index][type] == undefined || parseFloat(form[prop][index][type])) { if (form[prop][index][type] == undefined || parseFloat(form[prop][index][type])) {

View File

@ -113,6 +113,7 @@ export default {
} }
} else { } else {
this.selected = null; this.selected = null;
this.clear(this.enabledTab);
} }
}, },
onSubmit() { onSubmit() {