diff --git a/.env.dev b/.env.dev index 5c07452..5729465 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-28 13:42:51 - # @LastEditTime: 2024-06-03 08:44:09 + # @LastEditTime: 2024-06-03 08:50:41 # @LastEditors: DY # @Description: ### diff --git a/src/api/produceData/index.js b/src/api/produceData/index.js index e9a070f..04923bd 100644 --- a/src/api/produceData/index.js +++ b/src/api/produceData/index.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2024-05-07 08:54:59 - * @LastEditTime: 2024-05-31 10:25:55 + * @LastEditTime: 2024-06-03 08:52:02 * @LastEditors: DY * @Description: */ @@ -147,3 +147,12 @@ export function cockpitDataMonitor(data) { data: data }) } + +export function exportFactoryDataExcel(data) { + return request({ + url: '/ip/prod-output-month/export/excel', + method: 'post', + data: data, + responseType: 'blob' + }) +} diff --git a/src/assets/bgearth.png b/src/assets/bgearth.png index 66d9af2..1d47ca1 100644 Binary files a/src/assets/bgearth.png and b/src/assets/bgearth.png differ diff --git a/src/assets/images/copilot-bg.png b/src/assets/images/copilot-bg.png index 11ebf19..ced5e49 100644 Binary files a/src/assets/images/copilot-bg.png and b/src/assets/images/copilot-bg.png differ diff --git a/src/mixins/chart.js b/src/mixins/chart.js index 0901d53..b356201 100644 --- a/src/mixins/chart.js +++ b/src/mixins/chart.js @@ -4,16 +4,16 @@ function __resizeHandler(entries) { console.log(entries) for (const entry of entries) { if (entry.contentBoxSize) { - const contentBoxSize = Array.isArray(entry.contentBoxSize) - ? entry.contentBoxSize[0] - : entry.contentBoxSize; - this.chart_mixin_chartInstance.resize({ - width: - contentBoxSize.inlineSize < this.MIN_WIDTH - ? this.MIN_WIDTH - : contentBoxSize.inlineSize, - height: contentBoxSize.blockSize, - }); + // const contentBoxSize = Array.isArray(entry.contentBoxSize) + // ? entry.contentBoxSize[0] + // : entry.contentBoxSize; + // this.chart_mixin_chartInstance.resize({ + // width: + // contentBoxSize.inlineSize < this.MIN_WIDTH + // ? this.MIN_WIDTH + // : contentBoxSize.inlineSize, + // height: contentBoxSize.blockSize, + // }); } else { // manipulate contentRect this.chart_mixin_chartInstance.resize({ diff --git a/src/store/modules/home.js b/src/store/modules/home.js index d1171c0..2d8a8e1 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -92,10 +92,11 @@ 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(); - const payload = splitCurrentAndPrevious(dataArr.prodOutputOutDO, dataArr.prodTargetDO,dataArr.prodOutputFtoDO -); + const payload = splitCurrentAndPrevious(dataArr.prodOutputOutDO, dataArr.prodTargetDO,dataArr.prodOutputFtoDO,preData,preFtoData); commit("SET_HOME_INFO", payload); }, /** 初始化驾驶舱数据 */ @@ -125,6 +126,7 @@ const actions = { // const payload = handler(factoryData) // commit("SET_COPILOT_INFO", { type, payload }); // } else { + 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 : [] diff --git a/src/views/copilot/components/CopilotHeader.vue b/src/views/copilot/components/CopilotHeader.vue index 7752828..f013741 100644 --- a/src/views/copilot/components/CopilotHeader.vue +++ b/src/views/copilot/components/CopilotHeader.vue @@ -19,7 +19,7 @@
-