From ba0ba04182b99885a31cac4bd6d253c6a1a20120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Wed, 5 Jun 2024 14:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/home.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/modules/home.js b/src/store/modules/home.js index 5b93c31..aaa4d21 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -96,7 +96,8 @@ const actions = { let preData = dataArr.previousProdOutputOutDO let preFtoData = dataArr.previousProdOutputFtoDO // const targetArr = await getHomeInfo(); - const payload = splitCurrentAndPrevious(dataArr.prodOutputOutDO, dataArr.prodTargetOutputDO,dataArr.prodOutputFtoDO,dataArr.previousProdOutputOutDO,preData,preFtoData); + // factoryListResponse, targetListResponse, prodOutputFtoListRes,preData,preFtoData + const payload = splitCurrentAndPrevious(dataArr.prodOutputOutDO, dataArr.prodTargetOutputDO,dataArr.prodOutputFtoDO,preData,preFtoData); commit("SET_HOME_INFO", payload); }, /** 初始化驾驶舱数据 */ @@ -399,7 +400,7 @@ function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodO } function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOutputFtoListRes,preData,preFtoData) { - console.log('prodOutputFtoListRes',preData); + console.log('prodOutputFtoListRes',preFtoData); // 初始数据 const { chipInvest, ftoInvest, chipOutput, stdOutput, bipvOutput } = init() if (prodOutputFtoListRes) {