Browse Source

商品价格曲线日期改变重置x轴

jwyu 8 months ago
parent
commit
baf657858a
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/dataEntry_manage/components/barOptionSection.vue

+ 9 - 1
src/views/dataEntry_manage/components/barOptionSection.vue

@@ -264,7 +264,11 @@ export default {
         })
       }
       this.cancelDialog()
-
+      // 商品价格曲线修改日期重置x轴
+      if(this.$route.path === '/addCommodityChart'){
+        this.$parent.xAxisList=[]
+      }
+      
       this.getBarData()
     },
 
@@ -305,6 +309,10 @@ export default {
     /* 移除日期 */
     removeDate(index) {
       this.dateList.splice(index,1)
+      // 商品价格曲线修改日期重置x轴
+      if(this.$route.path === '/addCommodityChart'){
+        this.$parent.xAxisList=[]
+      }
       this.getBarData();
     },
   },