This commit is contained in:
art_station
2022-01-17 20:54:38 +08:00
parent 461e4bba9c
commit 5b2c0c7bea

View File

@@ -201,7 +201,7 @@ export default {
if (value.includes('main')) {
this.queryParams.ycoList = ['main']
this.queryParams.indicatorList = ['main']
}
if (value.includes('aqi')) {
this.queryParams.ycoList = ['aqi']
@@ -240,10 +240,18 @@ export default {
this.$message.warning('横坐标为监测指标时,区域不能多选')
return false
}
if (this.queryParams.xco === '监测指标' && this.queryParams.placeList.length > 1) {
this.$message.warning('横坐标为监测指标时,测点名称不能多选')
return false
}
if (this.queryParams.xco === '测点名称' && this.queryParams.placeList.length === 0) {
this.$message.warning('横坐标为测点名称时,测点名称选择不能为空')
return false
}
if (this.queryParams.xco === '测点名称' && this.queryParams.indicatorList.length > 1) {
this.$message.warning('横坐标为测点名称时,监测指标不能多选')
return false
}
if (this.queryParams.areaList.length > 0 && this.queryParams.placeList.length > 0) {
this.$message.warning('区域与测点名称不能同时选择')
return false