Karsa 2 年之前
父節點
當前提交
1ced5b22a3
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/views/chartShow/index.vue

+ 1 - 4
src/views/chartShow/index.vue

@@ -830,11 +830,8 @@ export default defineComponent({
     const initBarData = (data: { XEdbIdValue: number[]; YDataList: any; EdbInfoList: any; ChartInfo: any; }) => {
       const { XEdbIdValue,YDataList,EdbInfoList,ChartInfo } = data;
 
-      let xData = XEdbIdValue.map((_:number) => EdbInfoList.find((edb: { EdbInfoId: number; }) => edb.EdbInfoId===_).EdbAliasName)
-      console.log(xData)
-
       state.barDateList = YDataList;
-      state.barXData = xData;
+      state.barXIdData = XEdbIdValue;
       state.barEdbData = EdbInfoList;
       state.barLimit = {
         min: Number(ChartInfo.LeftMin),