|
@@ -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();
|
|
|
},
|
|
|
},
|