Browse Source

盘面利润设置重置x轴

jwyu 9 tháng trước cách đây
mục cha
commit
78f898e31b
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      src/views/futures_manage/chartEditor.vue

+ 5 - 1
src/views/futures_manage/chartEditor.vue

@@ -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() {