|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div id="screen-wrapper" class="screen-wrapper">
|
|
|
|
|
<div id="screen" class="screen">
|
|
|
|
|
<div class="title">领秀眼镜智慧工厂</div>
|
|
|
|
|
<div class="title" @click="changeYear">领秀眼镜智慧工厂</div>
|
|
|
|
|
<!-- // 左侧区域-->
|
|
|
|
|
<div class="left_area left_top_area">
|
|
|
|
|
<div class="left_top_div">
|
|
|
|
|
@ -574,6 +574,7 @@ export default defineComponent({
|
|
|
|
|
outData: [],
|
|
|
|
|
inData: []
|
|
|
|
|
},
|
|
|
|
|
fullScreen: false,
|
|
|
|
|
leftBotData: {
|
|
|
|
|
seriesData: []
|
|
|
|
|
},
|
|
|
|
|
@ -602,19 +603,19 @@ export default defineComponent({
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
this.detectionDayNum = localStorage.getItem('zjCount');
|
|
|
|
|
// if(this.detectionDayNum === null){
|
|
|
|
|
// this.detectionDayNum = 28;
|
|
|
|
|
// localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
|
// }
|
|
|
|
|
// setInterval(() => {
|
|
|
|
|
// this.detectionDayNum = Number(this.detectionDayNum) + 3;
|
|
|
|
|
// if(this.detectionDayNum > 90){
|
|
|
|
|
// this.detectionDayNum = 28;
|
|
|
|
|
// }
|
|
|
|
|
// localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
|
// }, 1000000)
|
|
|
|
|
const app = useAppStore();
|
|
|
|
|
app.setContentFull(false);
|
|
|
|
|
if(this.detectionDayNum === null){
|
|
|
|
|
this.detectionDayNum = 28;
|
|
|
|
|
localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
|
}
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
this.detectionDayNum = Number(this.detectionDayNum) + 3;
|
|
|
|
|
if(this.detectionDayNum > 90){
|
|
|
|
|
this.detectionDayNum = 28;
|
|
|
|
|
}
|
|
|
|
|
localStorage.setItem('zjCount', this.detectionDayNum);
|
|
|
|
|
}, 1000000)
|
|
|
|
|
// const app = useAppStore();
|
|
|
|
|
// app.setContentFull(false);
|
|
|
|
|
this.initData();
|
|
|
|
|
this.handleScreenAuto();
|
|
|
|
|
// 绑定自适应函数 ---防止浏览器栏变化后不再适配
|
|
|
|
|
@ -632,6 +633,12 @@ export default defineComponent({
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
changeYear(){
|
|
|
|
|
const app = useAppStore();
|
|
|
|
|
this.fullScreen = !this.fullScreen;
|
|
|
|
|
app.setContentFull(this.fullScreen);
|
|
|
|
|
},
|
|
|
|
|
// 防抖函数
|
|
|
|
|
debounce(func, wait = 100) {
|
|
|
|
|
let timeout;
|
|
|
|
|
|