Browse Source

小问题

hbchen 1 year ago
parent
commit
ff0333ca7a

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