道岔钩锁操作结束清除operation

This commit is contained in:
fan 2021-11-11 15:08:13 +08:00
parent ba7b9f39eb
commit f270cbfb3b

View File

@ -89,7 +89,7 @@ export default {
}, },
methods: { methods: {
doShow(selected, operate = null) { doShow(selected, operate = null) {
this.$root.$emit('dialogOpen', selected); this.$root.$emit('dialogOpen', selected);
this.selected = selected; this.selected = selected;
if (!this.dialogShow) { if (!this.dialogShow) {
this.switchName = ''; this.switchName = '';
@ -119,7 +119,8 @@ export default {
doClose() { doClose() {
this.loading = false; this.loading = false;
this.dialogShow = false; this.dialogShow = false;
this.$root.$emit('dialogClose', this.selected); this.operation = '';
this.$root.$emit('dialogClose', this.selected);
this.$store.dispatch('training/emitTipFresh'); this.$store.dispatch('training/emitTipFresh');
}, },
commit() { commit() {