hbchen пре 1 година
родитељ
комит
ff0333ca7a
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/views/dataEntry_manage/addChart.vue
  2. 1 1
      src/views/dataEntry_manage/editChart.vue

+ 1 - 1
src/views/dataEntry_manage/addChart.vue

@@ -645,7 +645,7 @@ export default {
 					if(this.chartInfo.ChartType === 10 && !this.$refs.SectionScatterOptRef.seriesArr[0].edbs)  return this.$message.warning('请添加系列指标');
 
 					if(this.chartInfo.ChartType === 2){
-						if(this.SeasonExtraConfig.XStartDate || this.SeasonExtraConfig.XEndDate){
+						if(!(this.SeasonExtraConfig.XStartDate && this.SeasonExtraConfig.XEndDate)){
 							return this.$message.warning('横坐标显示范围不能为空');
 						}
 					}

+ 1 - 1
src/views/dataEntry_manage/editChart.vue

@@ -740,7 +740,7 @@ export default {
 					if(this.chartInfo.ChartType === 10 && !this.$refs.SectionScatterOptRef.seriesArr[0].edbs)  return this.$message.warning('请添加系列指标');
 
 					if(this.chartInfo.ChartType === 2){
-						if(this.SeasonExtraConfig.XStartDate || this.SeasonExtraConfig.XEndDate){
+						if(!(this.SeasonExtraConfig.XStartDate && this.SeasonExtraConfig.XEndDate)){
 							return this.$message.warning('横坐标显示范围不能为空');
 						}
 					}