diff --git a/src/api/equipment/base/maintain/record.js b/src/api/equipment/base/maintain/record.js index 012239bf..f6cf896e 100644 --- a/src/api/equipment/base/maintain/record.js +++ b/src/api/equipment/base/maintain/record.js @@ -3,7 +3,7 @@ * @Date: 2023-11-08 15:56:52 * @LastEditTime: 2024-02-26 17:02:53 * @LastEditors: DY - * @Description: + * @Description: */ import request from '@/utils/request' @@ -78,3 +78,11 @@ export function deleteLogDet(id) { method: 'delete' }) } + +export function getEqMaintainPlanPageData(query) { + return request({ + url: '/base/equipment-maintain-plan-det/page', + method: 'get', + params: query + }) +} diff --git a/src/views/equipment/base/config/BindGroup/index.vue b/src/views/equipment/base/config/BindGroup/index.vue index 03cd2c9d..ff8d73b5 100644 --- a/src/views/equipment/base/config/BindGroup/index.vue +++ b/src/views/equipment/base/config/BindGroup/index.vue @@ -119,12 +119,12 @@ export default { return { searchBarKeys: ['groupId', 'equipmentName'], tableBtn: [ - this.$auth.hasPermi('equipment:bind-group:update') - ? { - type: 'detail', - btnName: '查看报警', - } - : undefined, + // this.$auth.hasPermi('equipment:bind-group:update') + // ? { + // type: 'detail', + // btnName: '查看报警', + // } + // : undefined, this.$auth.hasPermi('equipment:bind-group:update') ? { type: 'edit', @@ -371,8 +371,8 @@ export default { }, handleTableBtnClick({ data, type }) { switch (type) { - case 'edit': - this.handleDetail(data, 'edit'); + case 'edit': + this.handleUpdate(data) break; case 'delete': this.handleDelete(data); @@ -397,7 +397,7 @@ export default { this.reset(); this.open = true; this.title = '添加设备与分组绑定'; - }, + }, /** 修改按钮操作 */ handleUpdate(row) { this.reset(); @@ -432,19 +432,19 @@ export default { }); }, // 查看报警 - handleDetail(row, mode = 'detail') { - const { equipmentId, equipmentName, groupCode, groupId, groupName, id } = - row; - // 打开抽屉 - this.editMode = mode; - this.alarmForm.id = groupId; - this.alarmForm.equipmentGroupCode = groupCode; - this.alarmForm.equipmentGroupName = groupName; - this.editVisible = true; - this.$nextTick(() => { - this.$refs['drawer'].init(); - }); - }, + // handleDetail(row, mode = 'detail') { + // const { equipmentId, equipmentName, groupCode, groupId, groupName, id } = + // row; + // // 打开抽屉 + // this.editMode = mode; + // this.alarmForm.id = groupId; + // this.alarmForm.equipmentGroupCode = groupCode; + // this.alarmForm.equipmentGroupName = groupName; + // this.editVisible = true; + // this.$nextTick(() => { + // this.$refs['drawer'].init(); + // }); + // }, /** 删除按钮操作 */ handleDelete(row) { const id = row.id; diff --git a/src/views/equipment/base/config/DataCollection/CollectionConfig.vue b/src/views/equipment/base/config/DataCollection/CollectionConfig.vue index abba9d4d..b4e33780 100644 --- a/src/views/equipment/base/config/DataCollection/CollectionConfig.vue +++ b/src/views/equipment/base/config/DataCollection/CollectionConfig.vue @@ -1,8 +1,8 @@ -