From eacf93e0db918e4a4bd00d41680aebbd019ed2d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 18 Jun 2024 10:25:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/home.js | 6 +++--- src/views/copilot/efficiency/options/chipOptions.js | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/store/modules/home.js b/src/store/modules/home.js index cdd0e6f..0d1678d 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -407,7 +407,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu console.log('prodOutputFtoListRes',preFtoData); // 初始数据 const { chipInvest, ftoInvest, chipOutput, stdOutput, bipvOutput } = init() - if (prodOutputFtoListRes) { + if (prodOutputFtoListRes.length !== 0 ) { for (const factory of prodOutputFtoListRes) { console.log(factory); const fId = getFactoryId(factory); @@ -433,7 +433,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu // } } } - if (preData && preData[0] != null) { + if (preData) { for (const factory of preData) { const fId = getPreFactoryId(factory); if (factory.previousGlassType === 0) { @@ -452,7 +452,7 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu } } // console.log('ftoInvest',ftoInvest) - if (factoryListResponse && factoryListResponse[0] != null) { + if (factoryListResponse) { for (const factory of factoryListResponse) { const fId = getFactoryId(factory); console.log('factory.inputNumber', factory, fId); diff --git a/src/views/copilot/efficiency/options/chipOptions.js b/src/views/copilot/efficiency/options/chipOptions.js index 23ffef7..3c50d1d 100644 --- a/src/views/copilot/efficiency/options/chipOptions.js +++ b/src/views/copilot/efficiency/options/chipOptions.js @@ -8,7 +8,7 @@ export default ({ preName, }) => ({ grid: { - left: '0%', + left: 300, right: 0, bottom: 0, top: 0, @@ -17,7 +17,7 @@ export default ({ tooltip: {}, title: { text: titleValue, - left: "44%", + left: "48%", top: "37%", textAlign: "center", textStyle: { @@ -39,7 +39,7 @@ export default ({ type: "pie", name: "当前良率", radius: ["70%", "85%"], - center: ["45%", "52%"], + center: ["50%", "52%"], emptyCircleStyle: { color: "#003982", }, @@ -48,7 +48,7 @@ export default ({ { type: "pie", radius: ["70%", "85%"], - center: ["45%", "52%"], + center: ["50%", "52%"], avoidLabelOvervlap: false, label: { show: false, @@ -97,7 +97,7 @@ export default ({ { type: "pie", radius: ["55%", "70%"], - center: ["45%", "52%"], + center: ["50%", "52%"], avoidLabelOvervlap: false, label: { show: false,