| | |
| | | <template> |
| | | <CustomDialog |
| | | :title="title" |
| | | :visible.sync="visible" |
| | | :visible.sync="dialogVisible" |
| | | width="700px" |
| | | class="param-dialog-wrapper" |
| | | @confirm="submit" |
| | |
| | | }; |
| | | |
| | | return { |
| | | dialogVisible: this.visible, |
| | | dialogKey: Date.now(), |
| | | saving: false, |
| | | localForm: { |
| | |
| | | }, |
| | | watch: { |
| | | visible(newVal) { |
| | | this.dialogVisible = newVal; |
| | | if (newVal) { |
| | | this.localForm.id = this.form.id; |
| | | this.localForm.fileName = this.form.fileName || ''; |
| | |
| | | } else { |
| | | this.saving = false; |
| | | } |
| | | }, |
| | | dialogVisible(val) { |
| | | this.$emit('update:visible', val); |
| | | } |
| | | } |
| | | }; |