校验规则调整

This commit is contained in:
任珮宇 2024-01-24 18:46:17 +08:00
parent e1cdea9222
commit e7c81716b0

View File

@ -392,24 +392,21 @@ export default {
if (this.queryParams.nuclideNames.length < 1) { if (this.queryParams.nuclideNames.length < 1) {
this.$message.warning(`Please select nuclide!`) this.$message.warning(`Please select nuclide!`)
// this.getChartDate(params, currChartInit, options, id) // this.getChartDate(params, currChartInit, options, id)
} } else {
if (!this.queryParams.dbName) { if (!this.queryParams.dbName) {
this.$message.warning(`Please select Data Source!`) this.$message.warning(`Please select Data Source!`)
} } else {
if (!this.queryParams.startDate) { if (!this.queryParams.startDate) {
this.$message.warning(`Please select start Date!`) this.$message.warning(`Please select start Date!`)
} } else {
if (!this.queryParams.endDate) { if (!this.queryParams.endDate) {
this.$message.warning(`Please select end Date!`) this.$message.warning(`Please select end Date!`)
} } else {
if (
this.queryParams.nuclideNames.length > 0 &&
this.queryParams.dbName &&
this.queryParams.startDate &&
this.queryParams.endDate
) {
this.getChartDate(params, currChartInit, options, id) this.getChartDate(params, currChartInit, options, id)
} }
}
}
}
}) })
}) })
} else { } else {