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