From 2b76ef7d2375c87d31a5a02646bb919a3df9d068 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Thu, 12 Oct 2023 17:04:03 +0800 Subject: [PATCH] bug --- .../core/analysis/balanceAnalysis/index.vue | 15 +++--- .../core/analysis/yieldAnalysis/index.vue | 3 +- .../base/lineBindProduct/selectProduct.vue | 3 +- src/views/core/monitoring/auto/index.vue | 11 ++-- src/views/core/monitoring/data/index.vue | 21 +++----- .../monitoring/sectionStatistics/index.vue | 11 ++-- .../sectionStatisticsSearch/index.vue | 52 ++++++++++++++++--- 7 files changed, 79 insertions(+), 37 deletions(-) diff --git a/src/views/core/analysis/balanceAnalysis/index.vue b/src/views/core/analysis/balanceAnalysis/index.vue index 4b4a7ac6..9ffabe19 100644 --- a/src/views/core/analysis/balanceAnalysis/index.vue +++ b/src/views/core/analysis/balanceAnalysis/index.vue @@ -144,11 +144,6 @@ export default { // this.listQuery.lineId = '1672847052717821953' // this.listQuery.startTime = '1693497600000'; // this.listQuery.endTime = '1693843200000'; - this.tableData.splice(0) - this.xData.splice(0) - this.yData.splice(0) - this.tableProps.splice(0) - this.spanArr.splice(0) this.urlOptions.getDataListURL(this.listQuery).then(res => { console.log(res) let arr = [ @@ -228,11 +223,17 @@ export default { this.listQuery.lineId = val.lineIds this.listQuery.startTime = val.time ? String(new Date(val.time[0]).getTime()) : undefined; this.listQuery.endTime = val.time ? String(new Date(val.time[1]).getTime()) : undefined; - if (val.time) { + if (val.time && val.lineIds) { + this.tableData = [] + this.xData = [] + this.yData = [] + this.tableProps = [] + this.spanArr = [] + this.timeList = [] this.getData() } else { this.$message({ - message: '请选择时间', + message: '请选择产线和时间', type: 'warning' }); } diff --git a/src/views/core/analysis/yieldAnalysis/index.vue b/src/views/core/analysis/yieldAnalysis/index.vue index 5e1f49e2..d77d2b04 100644 --- a/src/views/core/analysis/yieldAnalysis/index.vue +++ b/src/views/core/analysis/yieldAnalysis/index.vue @@ -72,7 +72,7 @@ export default { { type: 'datePicker', label: '时间', - dateType: 'datetime', + dateType: 'month', format: 'yyyy-MM-dd', valueFormat: 'yyyy-MM-dd HH:mm:ss', rangeSeparator: '-', @@ -220,7 +220,6 @@ export default { }); }, buttonClick(val) { - // console.log(val) switch (val.btnName) { case 'search': this.listQuery.lineIds = val.lineIds ? val.lineIds :undefined diff --git a/src/views/core/base/lineBindProduct/selectProduct.vue b/src/views/core/base/lineBindProduct/selectProduct.vue index 399e6b5a..0ce7cbe6 100644 --- a/src/views/core/base/lineBindProduct/selectProduct.vue +++ b/src/views/core/base/lineBindProduct/selectProduct.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-03 14:09:18 * @LastEditors: DY - * @LastEditTime: 2023-10-10 16:54:09 + * @LastEditTime: 2023-10-11 11:20:51 * @Description: -->