From 8f3255956f85af1df98170fb05e6551cea12e9b0 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期二, 12 十一月 2024 15:54:57 +0800 Subject: [PATCH] 场景报告-码头搅拌站场景基本信息 --- src/api/fysp/deviceApi.js | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/api/fysp/deviceApi.js b/src/api/fysp/deviceApi.js index 8dc9dd1..fe67087 100644 --- a/src/api/fysp/deviceApi.js +++ b/src/api/fysp/deviceApi.js @@ -13,11 +13,17 @@ // 鑾峰彇璁惧 async fetchDevices(sceneId, deviceTypeId) { const params = `?sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`; - return await $fysp.get(`device${params}`).then((res) => res).then((res) => res.data); + return await $fysp + .get(`device${params}`) + .then((res) => res) + .then((res) => res.data); }, // 鑾峰彇璁惧鐘舵�佷互鍙婅澶囪鎯� - async fetchDeviceStatus({deviceId, sceneId, deviceTypeId}) { + async fetchDeviceStatus({ deviceId, sceneId, deviceTypeId }) { const params = `?deviceId=${deviceId}&sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`; - return await $fysp.get(`device/status${params}`).then((res) => res).then((res) => res.data); + return await $fysp + .get(`device/status${params}`) + .then((res) => res) + .then((res) => res.data); } }; -- Gitblit v1.9.3