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 @@