From 716c88dfc498a67f3ab791dfd9a769464017c07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 1 Jul 2024 11:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/comprehensiveData.vue | 5 ++++- src/views/report/produceConversion.vue | 11 +++++++---- src/views/report/productionSituationMW.vue | 3 +++ src/views/report/productionSituationTablets.vue | 5 ++++- src/views/report/productionYield.vue | 3 +++ 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/report/comprehensiveData.vue b/src/views/report/comprehensiveData.vue index 8984324..eb92bb0 100644 --- a/src/views/report/comprehensiveData.vue +++ b/src/views/report/comprehensiveData.vue @@ -1,7 +1,7 @@ @@ -329,6 +329,9 @@ export default { if (!this.listQuery.startDate && !this.listQuery.endDate) { return this.$message('请选择起止时间') } + if (!this.listQuery.type) { + return this.$message('请选择时间维度') + } this.otherProps = [] let arr = [] this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) diff --git a/src/views/report/produceConversion.vue b/src/views/report/produceConversion.vue index 36dd913..22de025 100644 --- a/src/views/report/produceConversion.vue +++ b/src/views/report/produceConversion.vue @@ -290,7 +290,7 @@ export default { barWidth: 20, label: { show: true, - position: [-50, -16], + position: [-20, -16], color: "#68C483", formatter: function (params) { return params.value.toFixed(2) @@ -532,6 +532,9 @@ export default { if (!this.listQuery.beginTime && !this.listQuery.endTime) { return this.$message('请选择起止时间') } + if (!this.listQuery.date) { + return this.$message('请选择时间维度') + } console.log(this.listQuery); if (this.listQuery.type == 3) { this.listQuery.beginTime = this.listQuery.reportTime[0] @@ -568,10 +571,10 @@ export default { }) }) if (res.data[0].list.length != 0) { - this.chartMsg.xData.push(res.data[0].list[res.data[0].list.length-1].reportTimep + '目标') + this.chartMsg.xData.push(res.data[0].list[res.data[0].list.length - 1].reportTimep + '年目标') if (this.listQuery.date === 0 || this.listQuery.date === 1 || this.listQuery.date === 2) { this.otherProps.push({ - label: res.data[0].list[res.data[0].list.length - 1].reportTimep + '目标', + label: res.data[0].list[res.data[0].list.length - 1].reportTimep + '年目标', prop: 'dayData' }) dataArr[0]['dayData'] = res.data[0].list[res.data[0].list.length - 1].chipTarget @@ -607,7 +610,7 @@ export default { // }) }) }) - this.title = res.data[0].yearTarget.targetTime ? res.data[0].yearTarget.targetTime + '目标值' : '' + this.title = res.data[0].yearTarget.targetTime ? res.data[0].yearTarget.targetTime + '年目标值' : '' this.chartMsgYearTarget.series[0].data = [ { value: res.data[0].yearTarget.chipTotalPower, diff --git a/src/views/report/productionSituationMW.vue b/src/views/report/productionSituationMW.vue index 50b17dd..6fafa40 100644 --- a/src/views/report/productionSituationMW.vue +++ b/src/views/report/productionSituationMW.vue @@ -503,6 +503,9 @@ export default { if (!this.listQuery.startDate && !this.listQuery.endDate) { return this.$message('请选择起止时间') } + if (!this.listQuery.type) { + return this.$message('请选择时间维度') + } let arr = [] this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.listQuery.factory = arr diff --git a/src/views/report/productionSituationTablets.vue b/src/views/report/productionSituationTablets.vue index 4ce6264..0e8432c 100644 --- a/src/views/report/productionSituationTablets.vue +++ b/src/views/report/productionSituationTablets.vue @@ -635,6 +635,9 @@ export default { if (!this.listQuery.startDate && !this.listQuery.endDate) { return this.$message('请选择起止时间') } + if (!this.listQuery.type) { + return this.$message('请选择时间维度') + } let arr = [] this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.listQuery.factory = arr @@ -1312,7 +1315,7 @@ export default { this.$message.success("导出成功"); }) .catch(() => { }); - }, + }, }, }; diff --git a/src/views/report/productionYield.vue b/src/views/report/productionYield.vue index 3e49f09..e2dc078 100644 --- a/src/views/report/productionYield.vue +++ b/src/views/report/productionYield.vue @@ -554,6 +554,9 @@ export default { if (!this.listQuery.startDate && !this.listQuery.endDate) { return this.$message('请选择起止时间') } + if (!this.listQuery.type) { + return this.$message('请选择时间维度') + } let arr = [] this.currentMenu === '邯郸' ? arr.push(1) : arr.push(0) this.listQuery.factory = arr -- 2.45.2