From 20ca0cd974f7d81c715424e5c10c9d3b1374ce54 Mon Sep 17 00:00:00 2001 From: wangjr <280364734@qq.com> Date: Sat, 20 Sep 2025 22:56:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E6=95=88=E6=9E=9C=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 3 +- .../productionCommandCenterManage.js | 63 ++++--- .../largeScreen/ProductionCommandCenter3.vue | 178 ++++++++++++++---- 3 files changed, 183 insertions(+), 61 deletions(-) diff --git a/.env b/.env index 7afe3f1..5831efc 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ NODE_ENV=production VUE_APP_PREVIEW=true -VUE_APP_API_BASE_URL=http://localhost:82 \ No newline at end of file +VUE_APP_API_BASE_URL=http://localhost:82 +VUE_APP_API_BASE_URL_PSPACE=https://c3abc956bca5.ngrok-free.app \ No newline at end of file diff --git a/src/api/modular/largeScreen/productionCommandCenterManage.js b/src/api/modular/largeScreen/productionCommandCenterManage.js index a0e29c4..e60dc53 100644 --- a/src/api/modular/largeScreen/productionCommandCenterManage.js +++ b/src/api/modular/largeScreen/productionCommandCenterManage.js @@ -14,35 +14,46 @@ export function productionCommandCenterPage (parameter) { }) } -const commonParams = { - charset: 'utf-8', - archived: 0 -} - /** - * 炉温 + * 产品数据:本月累计产量、回收率、单位单耗 */ -export function getFurnaceTemperature (parameter) { +export function getProductData (parameter) { return axios({ - url: '/HistAtTime', - method: 'post', - params: { - ...parameter, - ...commonParams - } - }) -} - -/** - * 功率因数(每月和每小时功率因数,用这个平均值调整时间) - */ -export function getHistAggreData (parameter) { - return axios({ - url: '/HistAggreData', + url: 'scrProduction/driQuery', method: 'get', - params: { - ...parameter, - ...commonParams - } + params: parameter + }) +} + +/** + * 安全与异常事件 + */ +export function getSafetyExceptionEvent (parameter) { + return axios({ + url: '/scrSecurity/driQuery', + method: 'get', + params: parameter + }) +} + +/** + * 各炉号产量贡献 + */ +export function getProductContribution (parameter) { + return axios({ + url: 'scrProduction/driQhQuery', + method: 'get', + params: parameter + }) +} + +/** + * 各产品合计产量 + */ +export function getProductTotalProduction (parameter) { + return axios({ + url: 'scrProduction/driMaterQuery', + method: 'get', + params: parameter }) } diff --git a/src/views/largeScreen/ProductionCommandCenter3.vue b/src/views/largeScreen/ProductionCommandCenter3.vue index f4dfc36..ca03221 100644 --- a/src/views/largeScreen/ProductionCommandCenter3.vue +++ b/src/views/largeScreen/ProductionCommandCenter3.vue @@ -1,5 +1,6 @@