From 6975c520620f4db884e4b14bb902d24df066e149 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 28 Aug 2023 15:52:19 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=AE=BE=E5=A4=87=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/equipmentBindGroup.js | 54 ++++ src/views/base/equipmentBindGroup/index.vue | 330 ++++++++++++++++++++ 2 files changed, 384 insertions(+) create mode 100644 src/api/base/equipmentBindGroup.js create mode 100644 src/views/base/equipmentBindGroup/index.vue diff --git a/src/api/base/equipmentBindGroup.js b/src/api/base/equipmentBindGroup.js new file mode 100644 index 00000000..990a055c --- /dev/null +++ b/src/api/base/equipmentBindGroup.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建设备与分组绑定 +export function createEquipmentBindGroup(data) { + return request({ + url: '/base/equipment-bind-group/create', + method: 'post', + data: data + }) +} + +// 更新设备与分组绑定 +export function updateEquipmentBindGroup(data) { + return request({ + url: '/base/equipment-bind-group/update', + method: 'put', + data: data + }) +} + +// 删除设备与分组绑定 +export function deleteEquipmentBindGroup(id) { + return request({ + url: '/base/equipment-bind-group/delete?id=' + id, + method: 'delete' + }) +} + +// 获得设备与分组绑定 +export function getEquipmentBindGroup(id) { + return request({ + url: '/base/equipment-bind-group/get?id=' + id, + method: 'get' + }) +} + +// 获得设备与分组绑定分页 +export function getEquipmentBindGroupPage(query) { + return request({ + url: '/base/equipment-bind-group/page', + method: 'get', + params: query + }) +} + +// 导出设备与分组绑定 Excel +export function exportEquipmentBindGroupExcel(query) { + return request({ + url: '/base/equipment-bind-group/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/base/equipmentBindGroup/index.vue b/src/views/base/equipmentBindGroup/index.vue new file mode 100644 index 00000000..c67c66eb --- /dev/null +++ b/src/views/base/equipmentBindGroup/index.vue @@ -0,0 +1,330 @@ + + +