diff --git a/src/views/atmosphere/air/trend/index.vue b/src/views/atmosphere/air/trend/index.vue index 766cc58..e4e05dd 100644 --- a/src/views/atmosphere/air/trend/index.vue +++ b/src/views/atmosphere/air/trend/index.vue @@ -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