소스 검색

小问题

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('横坐标显示范围不能为空');
 						}
 					}