大屏一
This commit is contained in:
@@ -90,8 +90,8 @@ html, body {
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
-webkit-text-size-adjust: none;
|
-webkit-text-size-adjust: none;
|
||||||
/* -webkit-tap-highlight-color: rgba(0, 0, 0, 0); */
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
/* background: #05032a center center / 100% 100% url(../../assets/images/bg.png) no-repeat; */
|
background: #05032a center center / 100% 100% url(../../assets/images/screen1/bg.png) no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
div, p {
|
div, p {
|
||||||
|
|||||||
@@ -329,7 +329,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {planReached, worksectionHarvest, monthHarvest, productSchedule, unfinishOrder, output, topHarvest, monthOrder} from '@js/getData2.js'
|
import {planReached, worksectionHarvest, monthHarvest, productSchedule, unfinishOrder, output, topHarvest, monthOrder} from '@js/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
name: 'MonitoringScreen1',
|
name: 'MonitoringScreen',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
interTime: this.$store.getters.setTime,
|
interTime: this.$store.getters.setTime,
|
||||||
@@ -984,7 +984,6 @@ export default {
|
|||||||
@import '~@css/mixin'
|
@import '~@css/mixin'
|
||||||
.bg
|
.bg
|
||||||
_wh(100%, 100%)
|
_wh(100%, 100%)
|
||||||
background #050d20 center center / 100% 100% url(../assets/images/screen1/bg.png) no-repeat
|
|
||||||
overflow hidden
|
overflow hidden
|
||||||
header
|
header
|
||||||
width 100%
|
width 100%
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<input type="number" class="inputStyle" v-model="setTime">
|
<input type="number" class="inputStyle" v-model="setTime">
|
||||||
</div>
|
</div>
|
||||||
<div class="inputOuter">
|
<div class="inputOuter">
|
||||||
<label>配粉工位</label>
|
<label>大屏</label>
|
||||||
<button class="btn btn1 fr" @click="_queryDevice()">查找</button>
|
<button class="btn btn1 fr" @click="_queryDevice()">查找</button>
|
||||||
<div class="fr select_wrap">
|
<div class="fr select_wrap">
|
||||||
<dropdown-menu
|
<dropdown-menu
|
||||||
@@ -68,17 +68,11 @@ export default {
|
|||||||
setTime: this.$store.getters.setTime,
|
setTime: this.$store.getters.setTime,
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
heightLimit: false,
|
heightLimit: false,
|
||||||
option: [{value: 1, label: '大屏一'}],
|
option: [{value: '1', label: '大屏一'}, {value: '2', label: '大屏二'}],
|
||||||
active: '0',
|
active: this.$store.getters.equipId,
|
||||||
open: false
|
open: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
document.getElementsByTagName('body')[0].className = 'login_bg'
|
|
||||||
},
|
|
||||||
beforeDestroy () {
|
|
||||||
document.body.removeAttribute('class', 'login_bg')
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
toggleItem () {
|
toggleItem () {
|
||||||
if (!this.open) {
|
if (!this.open) {
|
||||||
@@ -92,20 +86,16 @@ export default {
|
|||||||
this.open = false
|
this.open = false
|
||||||
},
|
},
|
||||||
_config () {
|
_config () {
|
||||||
if (this.active === '') {
|
|
||||||
this.toast('请选择配粉工位')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
let obj = {
|
let obj = {
|
||||||
baseUrl: this.baseUrl,
|
baseUrl: this.baseUrl,
|
||||||
setTime: this.setTime,
|
setTime: this.setTime,
|
||||||
equipId: this.option[this.active].value
|
equipId: this.active
|
||||||
}
|
}
|
||||||
this.$store.dispatch('setConfig', obj)
|
this.$store.dispatch('setConfig', obj)
|
||||||
if (this.equipId === 1) {
|
if (this.active === '0') {
|
||||||
this.$router.push('/MonitoringScreen1')
|
this.$router.push('/MonitoringScreen')
|
||||||
} else {
|
} else {
|
||||||
this.$router.push('/MonitoringScreen1')
|
this.$router.push('/devicescreen')
|
||||||
}
|
}
|
||||||
let element = document.documentElement
|
let element = document.documentElement
|
||||||
if (this.fullscreen) {
|
if (this.fullscreen) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
|||||||
import Router from 'vue-router'
|
import Router from 'vue-router'
|
||||||
|
|
||||||
const Setup = r => require.ensure([], () => r(require('@page/Setup')), 'Setup')
|
const Setup = r => require.ensure([], () => r(require('@page/Setup')), 'Setup')
|
||||||
const MonitoringScreen1 = r => require.ensure([], () => r(require('@page/MonitoringScreen1')), 'MonitoringScreen1')
|
const MonitoringScreen = r => require.ensure([], () => r(require('@page/MonitoringScreen')), 'MonitoringScreen')
|
||||||
const DeviceScreen = r => require.ensure([], () => r(require('@page/DeviceScreen')), 'DeviceScreen')
|
const DeviceScreen = r => require.ensure([], () => r(require('@page/DeviceScreen')), 'DeviceScreen')
|
||||||
|
|
||||||
Vue.use(Router)
|
Vue.use(Router)
|
||||||
@@ -19,8 +19,8 @@ export default new Router({
|
|||||||
component: Setup
|
component: Setup
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/MonitoringScreen1',
|
path: '/MonitoringScreen',
|
||||||
component: MonitoringScreen1
|
component: MonitoringScreen
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/devicescreen',
|
path: '/devicescreen',
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const state = {
|
|||||||
alertMsg: '操作成功',
|
alertMsg: '操作成功',
|
||||||
baseUrl: getStore('baseUrl') || baseUrl,
|
baseUrl: getStore('baseUrl') || baseUrl,
|
||||||
setTime: getStore('setTime') || 5000,
|
setTime: getStore('setTime') || 5000,
|
||||||
equipId: getStore('equipId') || ''
|
equipId: getStore('equipId') || '0'
|
||||||
}
|
}
|
||||||
|
|
||||||
const actions = {
|
const actions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user