From 747e2d05488dd11ce96bd4446db36318198881b9 Mon Sep 17 00:00:00 2001 From: zch Date: Tue, 3 Dec 2024 10:16:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(baseBusbarInfo):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=AF=8D=E6=8E=92=E4=BF=A1=E6=81=AF=E5=92=8C=E6=8A=A5=E8=AD=A6?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为查询参数添加 objId 字段 - 新增是否拍照和是否快检的筛选条件 - 优化表格选择变化的处理逻辑 - 重置查询参数时初始化所有字段 --- .../src/views/base/baseBusbarInfo/index.vue | 80 +++++++++++++++++-- 1 file changed, 74 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue b/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue index 6d26644..cbac831 100644 --- a/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue +++ b/ruoyi-ui/src/views/base/baseBusbarInfo/index.vue @@ -51,6 +51,26 @@ @keyup.enter.native="handleQueryBusbar" /> + + + + + + + + + + 搜索 重置 @@ -312,7 +332,7 @@ - + @@ -382,7 +402,7 @@ - + @@ -510,6 +530,7 @@ export default { daterangeUpdatedTimeAlarm: [], // 查询参数 queryParams: { + objId: null, busbarCode: null, busbarAlias: null, cabinetCode: null, @@ -548,6 +569,7 @@ export default { queryParamsAlarm: { pageNum: 1, pageSize: 10, + objId: null, busbarCode: null, alarmAlias: null, alarmContent: null, @@ -659,15 +681,56 @@ export default { /** 重置按钮操作 */ resetQueryBusbar() { this.resetForm("queryFormBusbar"); + this.queryParamsBusbar = { + pageNum: 1, + pageSize: 10, + objId: null, + busbarCode: null, + busbarAlias: null, + cabinetCode: null, + busbarDist: null, + isChecked: null, + isEnd: null, + isFlag: null, + remark: null, + createdBy: null, + createdTime: null, + updatedBy: null, + updatedTime: null, + isPictures: null, + wPanPos: null, + wTiltPos: null, + wZoomPos: null, + isRotate: null + }; this.handleQueryBusbar(); }, resetQueryAlarm() { this.resetForm("queryFormAlarm"); + this.queryParamsAlarm = { + pageNum: 1, + pageSize: 10, + objId: null, + busbarCode: null, + alarmAlias: null, + alarmContent: null, + alarmType: null, + alarmValue: null, + judgMethod: null, + isFlag: null, + createdBy: null, + createdTime: null, + updatedBy: null, + updatedTime: null + }; this.handleQueryAlarm(); }, + /** 新增按钮操作 */ handleAddBusbar() { this.resetFormBusbar(); + this.resetForm("queryFormBusbar"); + this.formBusbar.objId = undefined; this.openBusbar = true; this.formBusbar.cabinetCode = this.selectedCabinetCode; // 设置电柜编号 this.titleBusbar = "添加母排信息"; @@ -679,7 +742,7 @@ export default { }, /** 修改按钮操作 */ handleUpdateBusbar(row) { - const id = row.objId || this.ids + const id = row.objId || this.idsBusbar getBaseBusbarInfo(id).then(response => { this.formBusbar = response.data; this.openBusbar = true; @@ -687,7 +750,7 @@ export default { }); }, handleUpdateAlarm(row) { - const id = row.objId || this.ids + const id = row.objId || this.idsAlarm getBaseAlarmInfo(id).then(response => { this.formAlarm = response.data; this.openAlarm = true; @@ -814,11 +877,16 @@ export default { /** 处理母排信息表格选择变化 */ handleSelectionChangeBusbar(selection) { - this.idsBusbar = selection.map(item => item.id); + this.idsBusbar = selection.map(item => item.objId); this.singleBusbar = selection.length !== 1; this.multipleBusbar = !selection.length; }, - + /** 处理报警信息表格选择变化 */ + handleSelectionChangeAlarm(selection) { + this.idsAlarm = selection.map(item => item.objId); + this.singleAlarm = selection.length !== 1; + this.multipleAlarm = !selection.length; + }, /** 获取电柜信息树结构 */ getTreeselect() {