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 @@ + + +