This commit is contained in:
2022-07-28 19:51:46 +08:00
parent e05557cccd
commit 89642bba88
2 changed files with 418 additions and 322 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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) {