校验规则调整

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

View File

@ -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)
}
}
}
}
})
})