大屏1
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -54,7 +54,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DropdownMenu from '@components/DropdownMenu.vue'
|
import DropdownMenu from '@components/DropdownMenu.vue'
|
||||||
import {queryDevice} from '@js/getData2.js'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
components: {
|
components: {
|
||||||
@@ -69,8 +68,8 @@ export default {
|
|||||||
setTime: this.$store.getters.setTime,
|
setTime: this.$store.getters.setTime,
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
heightLimit: false,
|
heightLimit: false,
|
||||||
option: [],
|
option: [{value: 1, label: '大屏一'}],
|
||||||
active: '',
|
active: '0',
|
||||||
open: false
|
open: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -81,20 +80,6 @@ export default {
|
|||||||
document.body.removeAttribute('class', 'login_bg')
|
document.body.removeAttribute('class', 'login_bg')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async _queryDevice () {
|
|
||||||
let res = await queryDevice(this.baseUrl)
|
|
||||||
if (res.code === '1') {
|
|
||||||
this.toast(res.desc)
|
|
||||||
this.option = [...res.rows]
|
|
||||||
if (this.$store.getters.equipId) {
|
|
||||||
this.option.map((el, i) => {
|
|
||||||
if (this.$store.getters.equipId === el.value) {
|
|
||||||
this.active = i + ''
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
toggleItem () {
|
toggleItem () {
|
||||||
if (!this.open) {
|
if (!this.open) {
|
||||||
this.open = true
|
this.open = true
|
||||||
@@ -118,9 +103,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$store.dispatch('setConfig', obj)
|
this.$store.dispatch('setConfig', obj)
|
||||||
if (this.equipId === 1) {
|
if (this.equipId === 1) {
|
||||||
this.$router.push('/taskscreen')
|
this.$router.push('/MonitoringScreen1')
|
||||||
} else {
|
} else {
|
||||||
this.$router.push('/taskscreen')
|
this.$router.push('/MonitoringScreen1')
|
||||||
}
|
}
|
||||||
let element = document.documentElement
|
let element = document.documentElement
|
||||||
if (this.fullscreen) {
|
if (this.fullscreen) {
|
||||||
|
|||||||
Reference in New Issue
Block a user