From e7c81716b05d2da9433916941bd9d1aec3d0e4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Wed, 24 Jan 2024 18:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Statistics/statistics/index.vue | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/src/views/statistics/Statistics/statistics/index.vue b/src/views/statistics/Statistics/statistics/index.vue index 6da3c84..bcfb13a 100644 --- a/src/views/statistics/Statistics/statistics/index.vue +++ b/src/views/statistics/Statistics/statistics/index.vue @@ -392,23 +392,20 @@ export default { if (this.queryParams.nuclideNames.length < 1) { this.$message.warning(`Please select nuclide!`) // this.getChartDate(params, currChartInit, options, id) - } - if (!this.queryParams.dbName) { - this.$message.warning(`Please select Data Source!`) - } - if (!this.queryParams.startDate) { - this.$message.warning(`Please select start Date!`) - } - if (!this.queryParams.endDate) { - this.$message.warning(`Please select end Date!`) - } - if ( - this.queryParams.nuclideNames.length > 0 && - this.queryParams.dbName && - this.queryParams.startDate && - this.queryParams.endDate - ) { - this.getChartDate(params, currChartInit, options, id) + } else { + if (!this.queryParams.dbName) { + this.$message.warning(`Please select Data Source!`) + } else { + if (!this.queryParams.startDate) { + this.$message.warning(`Please select start Date!`) + } else { + if (!this.queryParams.endDate) { + this.$message.warning(`Please select end Date!`) + } else { + this.getChartDate(params, currChartInit, options, id) + } + } + } } }) })