Эх сурвалжийг харах

盘面利润设置重置x轴

jwyu 10 сар өмнө
parent
commit
78f898e31b

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