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