浏览代码

盘面利润设置重置x轴

jwyu 11 月之前
父节点
当前提交
78f898e31b
共有 1 个文件被更改,包括 5 次插入1 次删除
  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() {