From f5052fa7d4e73c0df5a02a6ad8987f35df42b8f8 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 07 十一月 2024 17:23:50 +0800 Subject: [PATCH] 1. 完成场景报告模块 2. 日报管理模块添加时间范围选择以及word报告生成 --- src/api/fysp/deviceApi.js | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/api/fysp/deviceApi.js b/src/api/fysp/deviceApi.js index f46d505..fe67087 100644 --- a/src/api/fysp/deviceApi.js +++ b/src/api/fysp/deviceApi.js @@ -9,5 +9,21 @@ } }) .then((res) => res.data); + }, + // 鑾峰彇璁惧 + async fetchDevices(sceneId, deviceTypeId) { + const params = `?sceneId=${sceneId}&deviceTypeId=${deviceTypeId}`; + return await $fysp + .get(`device${params}`) + .then((res) => res) + .then((res) => res.data); + }, + // 鑾峰彇璁惧鐘舵�佷互鍙婅澶囪鎯� + 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); } }; -- Gitblit v1.9.3