|
@@ -38,8 +38,8 @@
|
|
<div class="d-flex aside-width">
|
|
<div class="d-flex aside-width">
|
|
<div class="react-right bg-color-r mr-3">
|
|
<div class="react-right bg-color-r mr-3">
|
|
<!-- <span class="text ">设备运行分析</span>-->
|
|
<!-- <span class="text ">设备运行分析</span>-->
|
|
- <span class="text" @click="fullScreen" ref="fullScreen">全屏</span>
|
|
|
|
- <span class="text" @click="exitFullScreen" ref="exitFullScreen" style="display: none">退出全屏</span>
|
|
|
|
|
|
+ <span class="text" @click="fullScreen" ref="fullScreen" v-show=!isFullScreen>全屏</span>
|
|
|
|
+ <span class="text" @click="exitFullScreen" ref="exitFullScreen" v-show=isFullScreen>退出全屏</span>
|
|
</div>
|
|
</div>
|
|
<div class="react-right mr-4 react-l-s" style="width: 900px">
|
|
<div class="react-right mr-4 react-l-s" style="width: 900px">
|
|
<span class="react-after"></span>
|
|
<span class="react-after"></span>
|
|
@@ -137,11 +137,6 @@ export default {
|
|
dateWeek: null,
|
|
dateWeek: null,
|
|
weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
decorationColor: ['#568aea', '#000000'],
|
|
decorationColor: ['#568aea', '#000000'],
|
|
- workshopoptions:[
|
|
|
|
- {label: 'SMT', value: 'SMT'},
|
|
|
|
- {label: '组装', value: '组装'},
|
|
|
|
- ],
|
|
|
|
- isShow:false
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
components: {
|
|
components: {
|
|
@@ -155,10 +150,12 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getLines();
|
|
this.getLines();
|
|
|
|
+ this.isFullScreen = document.fullscreenElement;
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.timeFn()
|
|
this.timeFn()
|
|
- this.cancelLoading()
|
|
|
|
|
|
+ this.cancelLoading();
|
|
|
|
+ this.autoFullScreen();
|
|
},
|
|
},
|
|
beforeDestroy () {
|
|
beforeDestroy () {
|
|
clearInterval(this.timing)
|
|
clearInterval(this.timing)
|
|
@@ -175,7 +172,22 @@ export default {
|
|
cancelLoading() {
|
|
cancelLoading() {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.loading = false
|
|
this.loading = false
|
|
- }, 5000)
|
|
|
|
|
|
+ }, 3000)
|
|
|
|
+ },
|
|
|
|
+ autoFullScreen(){
|
|
|
|
+ if (!this.isFullScreen) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$showMsgBox({
|
|
|
|
+ caption: "提示",
|
|
|
|
+ msg: '是否全屏展示?',
|
|
|
|
+ callback: (data) => {
|
|
|
|
+ if (data == "yes") {
|
|
|
|
+ this.fullScreen();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }, 3000)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleBlur (val){
|
|
handleBlur (val){
|
|
sessionStorage.setItem('li_code',val);
|
|
sessionStorage.setItem('li_code',val);
|
|
@@ -259,5 +271,6 @@ export default {
|
|
.el-select-dropdown__item:hover {
|
|
.el-select-dropdown__item:hover {
|
|
background-color: rgba(0, 225, 219, 0.690196078431373);
|
|
background-color: rgba(0, 225, 219, 0.690196078431373);
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|