大屏一

This commit is contained in:
2022-07-29 13:42:53 +08:00
parent 23b0b37a9b
commit d7ca557841
5 changed files with 14 additions and 25 deletions

View File

@@ -32,7 +32,7 @@
<input type="number" class="inputStyle" v-model="setTime">
</div>
<div class="inputOuter">
<label>配粉工位</label>
<label>大屏</label>
<button class="btn btn1 fr" @click="_queryDevice()">查找</button>
<div class="fr select_wrap">
<dropdown-menu
@@ -68,17 +68,11 @@ export default {
setTime: this.$store.getters.setTime,
fullscreen: false,
heightLimit: false,
option: [{value: 1, label: '大屏一'}],
active: '0',
option: [{value: '1', label: '大屏一'}, {value: '2', label: '大屏二'}],
active: this.$store.getters.equipId,
open: false
}
},
mounted () {
document.getElementsByTagName('body')[0].className = 'login_bg'
},
beforeDestroy () {
document.body.removeAttribute('class', 'login_bg')
},
methods: {
toggleItem () {
if (!this.open) {
@@ -92,20 +86,16 @@ export default {
this.open = false
},
_config () {
if (this.active === '') {
this.toast('请选择配粉工位')
return
}
let obj = {
baseUrl: this.baseUrl,
setTime: this.setTime,
equipId: this.option[this.active].value
equipId: this.active
}
this.$store.dispatch('setConfig', obj)
if (this.equipId === 1) {
this.$router.push('/MonitoringScreen1')
if (this.active === '0') {
this.$router.push('/MonitoringScreen')
} else {
this.$router.push('/MonitoringScreen1')
this.$router.push('/devicescreen')
}
let element = document.documentElement
if (this.fullscreen) {