diff --git a/.env.dev b/.env.dev index 7ad8242..9bece7c 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-28 13:42:51 - # @LastEditTime: 2024-05-29 17:06:55 + # @LastEditTime: 2024-05-31 08:31:32 # @LastEditors: zhp # @Description: ### @@ -12,8 +12,8 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.1.61:48080' -# VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' +# VUE_APP_BASE_API = 'http://192.168.1.61:48080' +VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/produceData/index.js b/src/api/produceData/index.js index 155b7e2..3854129 100644 --- a/src/api/produceData/index.js +++ b/src/api/produceData/index.js @@ -1,8 +1,8 @@ /* * @Author: zhp * @Date: 2024-05-07 08:54:59 - * @LastEditTime: 2024-05-22 16:31:08 - * @LastEditors: DY + * @LastEditTime: 2024-05-31 09:33:50 + * @LastEditors: zhp * @Description: */ import request from '@/utils/request' @@ -138,3 +138,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 @@
-