|
@@ -837,7 +837,11 @@ export default {
|
|
|
/* 盘面利润数据 */
|
|
|
setProfitBack(obj) {
|
|
|
this.profitInfo = obj;
|
|
|
- this.tableData.length && this.$refs.BarOptRef.dateList.length && this.getPreviewData({sort:null,dateList:this.$refs.BarOptRef.dateList});
|
|
|
+ if(this.tableData.length && this.$refs.BarOptRef.dateList.length){
|
|
|
+ // 重置x轴
|
|
|
+ this.xAxisList=[]
|
|
|
+ this.getPreviewData({sort:null,dateList:this.$refs.BarOptRef.dateList});
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|