diff --git a/.env.dev b/.env.dev index 8020dfa..aaeed2e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-28 13:42:51 - # @LastEditTime: 2024-06-24 08:52:00 + # @LastEditTime: 2024-06-24 16:57:53 # @LastEditors: DY # @Description: ### @@ -24,7 +24,8 @@ VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' # VUE_APP_BASE_API = 'http://192.168.1.63:48080' # 张一丁 # VUE_APP_BASE_API = 'http://192.168.4.139:48080' - +# 蔡 +# VUE_APP_BASE_API = 'http://192.168.1.54:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/report/index.js b/src/api/report/index.js index 8571ad5..1cde283 100644 --- a/src/api/report/index.js +++ b/src/api/report/index.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2024-06-17 09:41:03 - * @LastEditTime: 2024-06-18 13:47:36 + * @LastEditTime: 2024-06-20 15:39:21 * @LastEditors: zhp * @Description: */ @@ -9,11 +9,21 @@ import request from '@/utils/request' export function getComprehensiveDataPage(data) { return request({ url: 'ip/comprehensive/data/get/comprehensive/data', - method: 'get', - params: data + method: 'post', + data: data }) } +export function exportComprehensiveDataPage(data) { + return request({ + url: 'ip/comprehensive/data/export/comprehensive/data', + method: 'post', + data: data, + responseType: 'blob', + }) +} + + export function getProduceTransData(data) { return request({ url: 'ip/prod-output/queryYCEReportByDateRange', @@ -21,3 +31,65 @@ export function getProduceTransData(data) { data: data }) } + +export function exportProduceTransData(data) { + return request({ + url: 'ip/prod-output/queryYCEReportByDateRangeExcel', + method: 'post', + data: data, + responseType: 'blob', + }) +} + + +export function getProduceSituationData(data) { + return request({ + url: 'ip/production/situation/get/production/situation', + method: 'post', + data: data + }) +} + +export function exportProduceSituationData(data) { + return request({ + url: 'ip/production/situation/export/production/situation', + method: 'post', + data: data, + responseType: 'blob', + }) +} + +export function getProductionSituationMWData(data) { + return request({ + url: 'ip/production/situation/power/get/production/situation', + method: 'post', + data: data + }) +} + +export function exportProductionSituationMWData(data) { + return request({ + url: 'ip/production/situation/power/export/production/situation', + method: 'post', + data: data, + responseType: 'blob', + }) +} + + +export function getProductionYieldSituationMWData(data) { + return request({ + url: 'ip/product/yield/get/production/situation', + method: 'post', + data: data + }) +} + +export function exportProductionYieldSituationMWData(data) { + return request({ + url: 'ip/product/yield/export/production/situation', + method: 'post', + data: data, + responseType: 'blob', + }) +} diff --git a/src/views/dashboard/charts/ChipInvest.vue b/src/views/dashboard/charts/ChipInvest.vue index 2a1c763..ed23412 100644 --- a/src/views/dashboard/charts/ChipInvest.vue +++ b/src/views/dashboard/charts/ChipInvest.vue @@ -1,8 +1,9 @@