From d4e4a9852c48b526261e0b5c1e060a1cd354626c Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Thu, 11 Aug 2022 18:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=9A=20=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E8=AE=BE=E5=A4=87=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/buildingDevice.js | 62 +++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/api/iot/buildingDevice.js diff --git a/src/api/iot/buildingDevice.js b/src/api/iot/buildingDevice.js new file mode 100644 index 00000000..08394f89 --- /dev/null +++ b/src/api/iot/buildingDevice.js @@ -0,0 +1,62 @@ +import request from '@/utils/request' + +// 查询建筑设备关联列表 +export function listSpace_device(query) { + return request({ + url: '/system/builedDevice/list', + method: 'get', + params: query + }) +} + +// 查询建筑设备关联详细 +export function getDevice(recordId) { + return request({ + url: '/system/builedDevice/' + recordId, + method: 'get' + }) +} + +// 新增建筑设备关联 +export function addSpace_device(data) { + return request({ + url: '/system/builedDevice', + method: 'post', + data: data + }) +} + +// 修改建筑设备关联 +export function updateDevice(data) { + return request({ + url: '/system/builedDevice', + method: 'put', + data: data + }) +} + +// 删除建筑设备关联 +export function delSpace_device(recordId) { + return request({ + url: '/system/builedDevice/' + recordId, + method: 'delete' + }) +} + +// 导出建筑设备关联 +export function exportDevice(query) { + return request({ + url: '/system/builedDevice/export', + method: 'get', + params: query + }) +} + +// 查询 当前 建筑可绑定设备 列表 +export function listBuildingNotDevice(data) { + return request({ + url: '/iot/space_device/not-used', + method: 'get', + params: data + }) +}