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() {