diff --git a/src/views/board/kanBan/index.vue b/src/views/board/kanBan/index.vue index 16f950f..8834bae 100644 --- a/src/views/board/kanBan/index.vue +++ b/src/views/board/kanBan/index.vue @@ -601,6 +601,18 @@ 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(true); this.initData(); @@ -676,7 +688,7 @@ export default defineComponent({ if (res.code === 200) { this.loading3 = false; this.loading1 = false; - this.detectionDayNum = res.data.detectionDayNum || 1; + // this.detectionDayNum = localStorage.getItem('zjCount'); const qcPageResults = res.data.qcPageResults || []; for (const item of qcPageResults) { this.leftBotData.seriesData.push(Number(item.goodRate).toFixed(2)); diff --git a/src/views/rapidmining/deviceRealtime/index.vue b/src/views/rapidmining/deviceRealtime/index.vue index 569e534..beb658b 100644 --- a/src/views/rapidmining/deviceRealtime/index.vue +++ b/src/views/rapidmining/deviceRealtime/index.vue @@ -1,174 +1,178 @@ - - - - - - - - - - - - - - - - {{ item.title }} - - - - - - - - - 设备信息 - - - - - 设备编码 : {{ item.code }} - 设备类型 : 拼料机 - 运行状态 : {{ getStatus(item.status).text }} - 产品型号 : {{ item.productModel }} - - 生产产量 : - - - - 生产速率 : - {{ item.rate }} - 个/分 - - 结束日期 : {{ item.endTime }} - - - - - + + + + + + + + + + + + + + + + {{ item.title }} + + + + + + + + + 设备信息 + + + + + + + 设备编码 : {{ item.code }} + 设备类型 : 开料机 + 运行状态 : {{ getStatus(item.status).text }} + 主轴转速 : {{ item.process }} + + + 生产产量 : + + + + + + + + + + + + +