From 5a68da20924cc6e9238a28f4e63ad49c2b5635f1 Mon Sep 17 00:00:00 2001 From: zch Date: Mon, 23 Sep 2024 14:20:15 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E8=A1=A5=E5=85=85js(=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=8F=B0=E8=B4=A6=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=85=8D=E5=A5=97=E6=8C=89=E9=92=AE=E5=8F=8A?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=8E=A5=E5=8F=A3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw-ui/src/api/dms/dmsBaseDeviceSupplies.js | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 hw-ui/src/api/dms/dmsBaseDeviceSupplies.js diff --git a/hw-ui/src/api/dms/dmsBaseDeviceSupplies.js b/hw-ui/src/api/dms/dmsBaseDeviceSupplies.js new file mode 100644 index 0000000..ad308f2 --- /dev/null +++ b/hw-ui/src/api/dms/dmsBaseDeviceSupplies.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询设备配套信息列表 +export function listDmsBaseDeviceSupplies(query) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/list', + method: 'get', + params: query + }) +} + + +// 查询设备配套信息详细 +export function getDmsBaseDeviceSupplies(deviceSuppliesId) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/' + deviceSuppliesId, + method: 'get' + }) +} + +// 新增设备配套信息 +export function addDmsBaseDeviceSupplies(data) { + return request({ + url: '/dms/dmsBaseDeviceSupplies', + method: 'post', + data: data + }) +} + +// 修改设备配套信息 +export function updateDmsBaseDeviceSupplies(data) { + return request({ + url: '/dms/dmsBaseDeviceSupplies', + method: 'put', + data: data + }) +} + +// 删除设备配套信息 +export function delDmsBaseDeviceSupplies(deviceSuppliesId) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/' + deviceSuppliesId, + method: 'delete' + }) +} + +// 根据deviceId查询设备配套信息列表 +export function listDmsBaseDeviceSuppliesByDeviceId(deviceId) { + return request({ + url: '/dms/dmsBaseDeviceSupplies/listByDeviceId/' + deviceId, + method: 'get' + }) +} +