Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
joylink_zhangsai 2023-04-18 16:25:03 +08:00
commit c52925960c
5 changed files with 25 additions and 1 deletions

View File

@ -58,7 +58,16 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.$store.dispatch('config/updateMenuBar'); this.$store.dispatch('config/updateMenuBar');
const _that = this;
window.onclick = function (e) {
if (!_that.$store.state.training.trainingStart) {
_that.$refs.menuBar && _that.$refs.menuBar.blankClickClose();
}
};
}); });
},
beforeDestroy() {
window.onclick = function (e) {};
} }
}; };
</script> </script>

View File

@ -372,6 +372,9 @@ export default {
this.$refs.helpAbout.doShow(operate); this.$refs.helpAbout.doShow(operate);
} }
}); });
},
blankClickClose() {
this.$refs.menuBar.doClose();
} }
} }
}; };

View File

@ -33,7 +33,16 @@ export default {
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
this.$store.dispatch('config/updateMenuBar'); this.$store.dispatch('config/updateMenuBar');
const _that = this;
window.onclick = function (e) {
if (!_that.$store.state.training.trainingStart) {
_that.$refs.menuBar && _that.$refs.menuBar.blankClickClose();
}
};
}); });
},
beforeDestroy() {
window.onclick = function (e) {};
} }
}; };
</script> </script>

View File

@ -328,6 +328,9 @@ export default {
this.$refs.helpAbout.doShow(operate); this.$refs.helpAbout.doShow(operate);
} }
}); });
},
blankClickClose() {
this.$refs.menuBar.doClose();
} }
} }
}; };

View File

@ -1,5 +1,5 @@
<template> <template>
<div class="menus" :style="{width: width + 'px'}"> <div class="menus" :style="{width: width + 'px', height: '100%'}">
<div class="title">{{ `哈尔滨局CTC3.0(车务终端A机)--王岗:${dateString}第一班 18:00 管理员代--` }}</div> <div class="title">{{ `哈尔滨局CTC3.0(车务终端A机)--王岗:${dateString}第一班 18:00 管理员代--` }}</div>
<menu-bar ref="menuBar" :selected="selected" /> <menu-bar ref="menuBar" :selected="selected" />
<div style="position: absolute; top: 64px;z-index: 10;background: #F0F0F0;padding: 2px;height: 65px;width: 100%;"> <div style="position: absolute; top: 64px;z-index: 10;background: #F0F0F0;padding: 2px;height: 65px;width: 100%;">