From 09ef384736eff542e64a4deced704a6bec649324 Mon Sep 17 00:00:00 2001 From: zz <2510566342@qq.com> Date: Thu, 18 Apr 2024 11:04:16 +0800 Subject: [PATCH] =?UTF-8?q?4.18=20=E4=B8=8A=E5=8D=88=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/battery_details/index.vue | 1981 +++++++++++++++++++++++++ src/pages/charging/index.vue | 1 + src/router/async/router.map.js | 13 + src/services/api.js | 10 +- src/services/battery_details/index.js | 56 + 5 files changed, 2059 insertions(+), 2 deletions(-) create mode 100644 src/pages/battery_details/index.vue create mode 100644 src/services/battery_details/index.js diff --git a/src/pages/battery_details/index.vue b/src/pages/battery_details/index.vue new file mode 100644 index 0000000..80de10d --- /dev/null +++ b/src/pages/battery_details/index.vue @@ -0,0 +1,1981 @@ + + + + + + \ No newline at end of file diff --git a/src/pages/charging/index.vue b/src/pages/charging/index.vue index 1e03daf..4ed81e4 100644 --- a/src/pages/charging/index.vue +++ b/src/pages/charging/index.vue @@ -7,6 +7,7 @@ Charging date monItoring screen +
详情
diff --git a/src/router/async/router.map.js b/src/router/async/router.map.js index 82c70ab..b67e00c 100644 --- a/src/router/async/router.map.js +++ b/src/router/async/router.map.js @@ -495,6 +495,19 @@ const routerMap = { component: () => import('@/pages/charge_battery/battery_maintain_log/index') }, +// zz +battery_details: { + path: 'battery_details', + name: '详情展示', + meta: { + authority: { + permission: 'battery_details' + } + }, + component: () => import('@/pages/battery_details/index') +}, + + fault_log: { name: '故障日志', diff --git a/src/services/api.js b/src/services/api.js index 9fd6b31..8830ea7 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -20,8 +20,14 @@ module.exports = { WriteColdTemperature: `${second_url}/HeatMonitor/WriteColdTemperature`, // 写入制冷温度 WriteHotTemperature: `${second_url}/HeatMonitor/WriteHotTemperature`, // 写入制冷温度 WriteWorkModelNo: `${second_url}/HeatMonitor/WriteWorkModelNo`, // 写入制冷温度 - - +// zzz + +Battery_Details: `${BASE_URL}/TBsBatteryPackStatus`, +Battery_Alarm_One: `${BASE_URL}/TFlRealAlarmOne`, +Battery_Alarm_Two: `${BASE_URL}/TFlRealAlarmTwo`, +Relay_status: `${BASE_URL}/TBsRelayStatus`, +Charge_discharge_current: `${BASE_URL}/TCdChargeDischargeCurrent`, +Running_State: `${BASE_URL}/TBsRunningState`, GetBattPerStatusCount: `${BASE_URL}/SwapMonitor/GetBattPerStatusCount`, // 换电大屏数据 GetPLCSwapParamsValue: `${BASE_URL}/SwapMonitor/GetPLCSwapParamsValue`, // GetPLCSwapParamsValue diff --git a/src/services/battery_details/index.js b/src/services/battery_details/index.js new file mode 100644 index 0000000..a87fd2c --- /dev/null +++ b/src/services/battery_details/index.js @@ -0,0 +1,56 @@ +import { Battery_Details,Battery_Alarm_One,Battery_Alarm_Two,Relay_status,Charge_discharge_current,Running_State} from '@/services/api' +import { request, METHOD, } from '@/utils/request' + +// export async function index (data) { +// return request(Battery_Maintain_Log, METHOD.GET, data) +// } + +export async function index (data) { + return request( Battery_Details, METHOD.GET, data) +} +export async function alarmone (data) { + return request( Battery_Alarm_One, METHOD.GET, data) +} +export async function alarmtwo (data) { + return request( Battery_Alarm_Two, METHOD.GET, data) +} +export async function Relaystatus (data) { + return request( Relay_status, METHOD.GET, data) +} +export async function Chargedischargecurrent (data) { + return request( Charge_discharge_current, METHOD.GET, data) +} + +export async function Runningstate (data) { + return request( Running_State, METHOD.GET, data) +} + + +// export async function store (data) { +// return request(Battery_Maintain_Log, METHOD.POST, data) +// } + +// export async function update (data) { +// return request(Battery_Maintain_Log, METHOD.PUT, data) +// } + +// export async function destroy (id) { +// return request(Battery_Maintain_Log + '/' + id, METHOD.DELETE) +// } + +// export async function batchDelete (data) { +// return request(Battery_Maintain_Log + '/BatchDelete', METHOD.POST, data) +// } + +export default { + index, + alarmone, + alarmtwo, + Relaystatus, + Chargedischargecurrent, + Runningstate, + // store, + // update, + // destroy, + // batchDelete +}