From 69f953fb0c67bb344ad73daf0049ea9268724b36 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:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/home.js | 4 +- src/views/copilot/components/BarChartBase.vue | 1 + .../copilot/components/FactoryDataHeader.vue | 14 +- .../copilot/components/ftoBarChartBase.vue | 3 +- .../copilot/components/leftContainer.vue | 234 +++++++++++++++++ .../rightContainer.vue} | 13 +- src/views/copilot/components/twoContainer.vue | 239 +++++++++++++++++ src/views/copilot/container.vue | 2 +- .../copilot/efficiency/components/StdRate.vue | 51 ++-- src/views/copilot/efficiency/index.vue | 14 +- src/views/copilot/efficiencyContainer.vue | 4 +- src/views/copilot/factoryData/bbIndex.vue | 8 +- src/views/copilot/factoryData/cdIndex.vue | 8 +- .../factoryData/components/BarChartBase.vue | 8 +- .../components/BarChartChipOEE.vue | 59 +++-- .../factoryData/components/ProdMonitor.vue | 2 +- .../factoryData/components/leftContainer.vue | 241 ++++++++++++++++++ .../factoryData/components/rightContainer.vue | 233 +++++++++++++++++ src/views/copilot/factoryData/hdIndex.vue | 8 +- src/views/copilot/factoryData/index.vue | 9 +- src/views/copilot/factoryData/jmsIndex.vue | 8 +- src/views/copilot/factoryData/ksIndex.vue | 8 +- src/views/copilot/factoryData/oldIndex.vue | 6 +- src/views/copilot/factoryData/zzIndex.vue | 9 +- .../components/sub/ring/DoubleRingChart.vue | 25 +- src/views/copilot/yield/index.vue | 27 +- .../options/double-ring-chart-options.js | 25 +- src/views/dashboard/charts/ChipYieldChart.vue | 39 ++- src/views/dashboard/charts/LeftChartBase.vue | 7 +- src/views/dashboard/charts/RightChartBase.vue | 3 +- src/views/index.vue | 16 +- 31 files changed, 1188 insertions(+), 140 deletions(-) create mode 100644 src/views/copilot/components/leftContainer.vue rename src/views/copilot/{factoryData/components/Container.vue => components/rightContainer.vue} (95%) create mode 100644 src/views/copilot/components/twoContainer.vue create mode 100644 src/views/copilot/factoryData/components/leftContainer.vue create mode 100644 src/views/copilot/factoryData/components/rightContainer.vue diff --git a/src/store/modules/home.js b/src/store/modules/home.js index 2d8a8e1..5b93c31 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -96,7 +96,7 @@ const actions = { let preData = dataArr.previousProdOutputOutDO let preFtoData = dataArr.previousProdOutputFtoDO // const targetArr = await getHomeInfo(); - const payload = splitCurrentAndPrevious(dataArr.prodOutputOutDO, dataArr.prodTargetDO,dataArr.prodOutputFtoDO,preData,preFtoData); + const payload = splitCurrentAndPrevious(dataArr.prodOutputOutDO, dataArr.prodTargetOutputDO,dataArr.prodOutputFtoDO,dataArr.previousProdOutputOutDO,preData,preFtoData); commit("SET_HOME_INFO", payload); }, /** 初始化驾驶舱数据 */ @@ -345,7 +345,7 @@ function splitCurrentAndPreviousA(factoryListResponse, targetListResponse, prodO if (preData && preData[0] != null) { for (const factory of preData) { const fId = getPreFactoryId(factory); - chipInvest.previous[fId] = factory.previousYearInputNumber; + // chipInvest.previous[fId] = factory.previousYearInputNumber; // chipOeeRate.current[fId] = factory.oee; chipOeeRate.previous[fId] = factory.previousYearOee; // 转化效率 diff --git a/src/views/copilot/components/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue index c70d1bf..0707453 100644 --- a/src/views/copilot/components/BarChartBase.vue +++ b/src/views/copilot/components/BarChartBase.vue @@ -83,6 +83,7 @@ export default { nameTextStyle: { color: "#fff", fontSize: 12, + align: "right", }, axisTick: { show: false, diff --git a/src/views/copilot/components/FactoryDataHeader.vue b/src/views/copilot/components/FactoryDataHeader.vue index 66d2780..344d466 100644 --- a/src/views/copilot/components/FactoryDataHeader.vue +++ b/src/views/copilot/components/FactoryDataHeader.vue @@ -7,9 +7,13 @@
-
{{ companyName }}
@@ -46,7 +50,8 @@ export default { }, data() { return { - isFullscreen: false, + // isFullscreen: false, + content:'全屏', dataList: [ { id: 1, name: "日" }, { id: 2, name: "周" }, @@ -61,6 +66,7 @@ export default { exportFactoryDataExcel({ factoryId: this.companyId, timeSelection: this.period === 1 ? 0 : this.period === 2 ? 1 : this.period === 3 ? 2 : 3, + compare: this.than === '同比' ? 1 : 2 }).then(response => { this.$download.excel(response, `${this.companyName}生产数据.xls`); // this.exportLoading = false; diff --git a/src/views/copilot/components/ftoBarChartBase.vue b/src/views/copilot/components/ftoBarChartBase.vue index f811891..5021f78 100644 --- a/src/views/copilot/components/ftoBarChartBase.vue +++ b/src/views/copilot/components/ftoBarChartBase.vue @@ -1,7 +1,7 @@ @@ -84,6 +84,7 @@ export default { nameTextStyle: { color: "#fff", fontSize: 12, + align: "right", }, axisTick: { show: false, diff --git a/src/views/copilot/components/leftContainer.vue b/src/views/copilot/components/leftContainer.vue new file mode 100644 index 0000000..a17f62e --- /dev/null +++ b/src/views/copilot/components/leftContainer.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/src/views/copilot/factoryData/components/Container.vue b/src/views/copilot/components/rightContainer.vue similarity index 95% rename from src/views/copilot/factoryData/components/Container.vue rename to src/views/copilot/components/rightContainer.vue index 59349a7..124bcee 100644 --- a/src/views/copilot/factoryData/components/Container.vue +++ b/src/views/copilot/components/rightContainer.vue @@ -1,8 +1,8 @@ - + + diff --git a/src/views/copilot/factoryData/components/rightContainer.vue b/src/views/copilot/factoryData/components/rightContainer.vue new file mode 100644 index 0000000..124bcee --- /dev/null +++ b/src/views/copilot/factoryData/components/rightContainer.vue @@ -0,0 +1,233 @@ + + + + + + + diff --git a/src/views/copilot/factoryData/hdIndex.vue b/src/views/copilot/factoryData/hdIndex.vue index 70fcbf0..ac8432a 100644 --- a/src/views/copilot/factoryData/hdIndex.vue +++ b/src/views/copilot/factoryData/hdIndex.vue @@ -8,9 +8,9 @@ - + - + @@ -26,7 +26,8 @@