瀏覽代碼

小问题

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