From b88b888dbcff7468900e6d724725928c0e5b3d2f Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 28 Jul 2025 09:33:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:gx=E5=A4=A7=E5=B1=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/index_gx.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/bigScreen/index_gx.vue b/src/views/bigScreen/index_gx.vue index dfa96078..99e25301 100644 --- a/src/views/bigScreen/index_gx.vue +++ b/src/views/bigScreen/index_gx.vue @@ -536,10 +536,7 @@ export default { let end_date = that.$TOOL.dateFormat(nowDate, 'yyyy-MM-dd'); that.start_date = start_date; that.end_date = end_date; - console.log('that.start_date',that.start_date) - console.log('that.end_date',that.end_date) this.bigScreenName = this.$TOOL.data.get("BASE_INFO").base.bigScreen_name; - console.log('this.bigScreenName',this.bigScreenName) this.showTime(); loadBabylon().then(()=>{ this.initView() @@ -644,6 +641,7 @@ export default { }, //时间 showTime() { + console.log(this.currentDate, this.currentWeek) this.currentTime = this.$TOOL.dateFormat(new Date(), "hh:mm:ss"); this.currentWeek = this.$TOOL.dateFormat(new Date(), "week"); this.currentDate = this.$TOOL.dateFormat(new Date(),"yyyy年MM月dd日"); @@ -712,7 +710,10 @@ export default { that.$API.bi.dataset.exec.req('lineDay_m2', objDay).then((res0) => { if(res0.data2.ds0&&res0.data2.ds0.length>0){ that.count_day = res0.data2.ds0[0].生产数; + }else{ + that.count_day = 0; } + console.log('that.count_day',that.count_day) }); let ondDayTime = 86400000; let nowDate = new Date(); @@ -729,7 +730,10 @@ export default { that.$API.bi.dataset.exec.req('lineDay_m2', objWeek).then((res1) => { if(res1.data2.ds0&&res1.data2.ds0.length>0){ that.count_week = res1.data2.ds0[0].生产数; + }else{ + that.count_week = 0; } + console.log('that.count_week',that.count_week) }); let start_month = that.currentYear+'-'+month+'-01'; let end_month = that.currentYear+'-'+month+'-'+new Date(that.currentYear, month, 0).getDate(); @@ -741,7 +745,10 @@ export default { that.$API.bi.dataset.exec.req('lineDay_m2', objMonth).then((res2) => { if(res2.data2.ds0&&res2.data2.ds0.length>0){ that.count_month = res2.data2.ds0[0].生产数; + }else{ + that.count_month = 0; } + console.log('that.count_month',that.count_month) }); }, //不合格分布