diff --git a/src/store/modules/home.js b/src/store/modules/home.js index e01a745..61dc840 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -92,7 +92,7 @@ const actions = { /** 初始化首页数据 */ async initHome({ commit }) { const dataArr = await getHomeInfo(); - console.log('dataArr', dataArr); + // console.log('dataArr', dataArr); let preData = dataArr.previousProdOutputOutDO let preFtoData = dataArr.previousProdOutputFtoDO // const targetArr = await getHomeInfo(); @@ -127,7 +127,7 @@ const actions = { // const payload = handler(factoryData) // commit("SET_COPILOT_INFO", { type, payload }); // } else { - console.log('factoryList',factoryList) + // console.log('factoryList',factoryList) let factoryData = factoryList.prodOutputOutDO ? factoryList.prodOutputOutDO : factoryList.prodOutputRateDO let preData = factoryList.previousProdOutputOutDO ? factoryList.previousProdOutputOutDO : factoryList.previousProdOutputRateDO let preFtoData = factoryList.previousProdOutputFtoDO ? factoryList.previousProdOutputFtoDO : [] @@ -289,7 +289,7 @@ function splitCurrentAndPreviousB(factoryListResponse) { } function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodOutputFtoListRes,preData,preFtoData) { - console.log('工厂',preData); + // console.log('工厂',preData); // 初始数据 const { chipOeeRate, transformRate, chipRate, stdRate } = initA(); @@ -346,7 +346,7 @@ function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodO if (preData) { for (const factory of preData) { const fId = getPreFactoryId(factory) - console.log('factory',factory.previousYearOee); + // console.log('factory',factory.previousYearOee); // chipInvest.previous[fId] = factory.previousYearInputNumber; // chipOeeRate.current[fId] = factory.oee; if (factory.previousGlassType === 0) { @@ -400,7 +400,7 @@ function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodO _t.current[fId] = factory.yieldRate ; // _t.previous[fId] = factory.previousYearYieldRate ; } - console.log('chipOeeRate',stdRate); + // console.log('chipOeeRate',stdRate); // console.log('chipOeeRate',chipOeeRate); return { chipOeeRate, @@ -412,12 +412,12 @@ function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodO } function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOutputFtoListRes,preData,preFtoData) { - console.log('prodOutputFtoListRes',preFtoData); + // console.log('prodOutputFtoListRes',preFtoData); // 初始数据 const { chipInvest, ftoInvest, chipOutput, stdOutput, bipvOutput } = init() if (prodOutputFtoListRes.length !== 0 ) { for (const factory of prodOutputFtoListRes) { - console.log(factory); + // console.log(factory); const fId = getFactoryId(factory); // const preFId = getPreFactoryId(factory); // if (fId) { @@ -430,7 +430,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu } if (preFtoData) { for (const factory of preFtoData) { - console.log(factory); + // console.log(factory); const fId = getPreFactoryId(factory); // const preFId = getPreFactoryId(factory); // if (fId) { @@ -463,7 +463,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu if (factoryListResponse) { for (const factory of factoryListResponse) { const fId = getFactoryId(factory); - console.log('factory.inputNumber', factory, fId); + // console.log('factory.inputNumber', factory, fId); if (factory.glassType === 0) { chipInvest.current[fId] = factory.inputNumber } @@ -484,7 +484,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu const _t = [chipOutput, stdOutput, bipvOutput][factory.glassType]; _t.current[fId] = factory.outputNumber; } - console.log('chipInvest',ftoInvest); + // console.log('chipInvest',ftoInvest); return { chipInvest, // ftoInvest, diff --git a/src/views/copilot/components/Container.vue b/src/views/copilot/components/Container.vue index cfeb685..bae27da 100644 --- a/src/views/copilot/components/Container.vue +++ b/src/views/copilot/components/Container.vue @@ -8,9 +8,7 @@