diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java index 8c8a98f..7ba154f 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/equip/vo/EquipInfoPageReqVO.java @@ -19,6 +19,9 @@ public class EquipInfoPageReqVO extends PageParam { @Schema(description = "机床设备编号") private String equipNo; + @Schema(description = "机床设备名称") + private String equipName; + @Schema(description = "机床状态") private Integer status; diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/alarm/EquipAlarmDataMapper.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/alarm/EquipAlarmDataMapper.java index a834873..497fdeb 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/alarm/EquipAlarmDataMapper.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/alarm/EquipAlarmDataMapper.java @@ -116,6 +116,7 @@ public interface EquipAlarmDataMapper extends BaseMapperX { .leftJoin(ComponentInfoDO.class, ComponentInfoDO::getComponentId, EquipAlarmDataDO::getComponentId) .eq(EquipAlarmDataDO::getEquipId, equipId) .eq(EquipAlarmDataDO::getAlarmType, alarmType) + .eq(EquipAlarmDataDO::getStatus, 0) ); } diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/equip/EquipInfoMapper.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/equip/EquipInfoMapper.java index 3681afa..10588be 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/equip/EquipInfoMapper.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/dal/mysql/equip/EquipInfoMapper.java @@ -27,6 +27,7 @@ public interface EquipInfoMapper extends BaseMapperX { return selectPage(reqVO, new LambdaQueryWrapperX() .eqIfPresent(EquipInfoDO::getModelId, reqVO.getModelId()) .eqIfPresent(EquipInfoDO::getCustomerId, reqVO.getCustomerId()) + .likeIfPresent(EquipInfoDO::getEquipName, reqVO.getEquipName()) .likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo()) .eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus()) .groupBy(EquipInfoDO::getCustomerId, EquipInfoDO::getModelId) diff --git a/imt-ui/src/assets/icons/svg/maintenance.svg b/imt-ui/src/assets/icons/svg/maintenance.svg index 5233716..3724a9c 100644 --- a/imt-ui/src/assets/icons/svg/maintenance.svg +++ b/imt-ui/src/assets/icons/svg/maintenance.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/imt-ui/src/views/system/alarm/alarmdata/index.vue b/imt-ui/src/views/system/alarm/alarmdata/index.vue index 2d8c36d..f7ced1b 100644 --- a/imt-ui/src/views/system/alarm/alarmdata/index.vue +++ b/imt-ui/src/views/system/alarm/alarmdata/index.vue @@ -369,7 +369,6 @@ @click="handelPatrolPlan" > 点检方案提交 - - - - - {{ detailForm.customerName }} - - - - - {{ detailForm.modelName }} - - - - - {{ detailForm.equipNo }} - - - - - {{ detailForm.nameKey }} - - - - - {{ detailForm.content }} - - - - - {{ detailForm.alarmValue }} - - - - - {{ parseTime(detailForm.firstAlarmTime) }} - - - - - {{ parseTime(detailForm.lastAlarmTime) }} - - - - -
- - - + + + + + {{ detailForm.customerName }} + + + + + {{ detailForm.modelName }} + + + + + {{ detailForm.equipNo }} + + + + + {{ detailForm.nameKey }} + + + + + {{ detailForm.content }} + + + + + {{ detailForm.alarmValue }} + + + + + {{ parseTime(detailForm.firstAlarmTime) }} + + + + + {{ parseTime(detailForm.lastAlarmTime) }} + + + + +
+ + + + @@ -526,9 +527,18 @@ style="height:500px" >
- - - + + +
@@ -629,9 +639,9 @@ export default { datetimeRange: [], showOrderSubmit: false, cardOptions: [], - showPatrolPlanSubmit:false, - showExclusivePatrolPlanSubmit:false, - showMaintanenceSubmit:false, + showPatrolPlanSubmit: false, + showExclusivePatrolPlanSubmit: false, + showMaintanenceSubmit: false, inspectionId: null, }; }, @@ -651,22 +661,24 @@ export default { this.showExclusivePatrolPlanSubmit = false; this.showMaintanenceSubmit = false; this.inspectionId = null; - if (flag === "0"){ + if (flag === "0") { this.$store.dispatch("tagsView/delView", this.$router.currentRoute); //跳转到前一个页面 this.$router.push("/alarm/equipalarm"); - }else { - inspectionInfoApi.isSubmitInspection(this.$route.query.equipAlarmId).then(res=>{ - if (res.data === null){ - this.showPatrolPlanSubmit = true; - }else if (res.data.status === 1 && !res.data.isExclusive){ - this.inspectionId = res.data.inspectionId; - this.showExclusivePatrolPlanSubmit = true; - }else if (res.data.status === 1 && res.data.isExclusive){ - this.inspectionId = res.data.inspectionId; - this.showMaintanenceSubmit =true; - } - }) + } else { + inspectionInfoApi + .isSubmitInspection(this.$route.query.equipAlarmId) + .then((res) => { + if (res.data === null) { + this.showPatrolPlanSubmit = true; + } else if (res.data.status === 1 && !res.data.isExclusive) { + this.inspectionId = res.data.inspectionId; + this.showExclusivePatrolPlanSubmit = true; + } else if (res.data.status === 1 && res.data.isExclusive) { + this.inspectionId = res.data.inspectionId; + this.showMaintanenceSubmit = true; + } + }); } }, cardChange(e) { @@ -790,7 +802,7 @@ export default { /** * 定制化点检方案提交 */ - handelExclusivePatrolPlan(){ + handelExclusivePatrolPlan() { this.$refs.submitExclusivePatrolPlanForm.open(this.inspectionId); }, /** diff --git a/imt-ui/src/views/system/alarm/alarmrules/index.vue b/imt-ui/src/views/system/alarm/alarmrules/index.vue index a953897..f49028d 100644 --- a/imt-ui/src/views/system/alarm/alarmrules/index.vue +++ b/imt-ui/src/views/system/alarm/alarmrules/index.vue @@ -502,90 +502,110 @@ width="40%" :close-on-click-modal="false" > - - - - {{ detailForm.customerName }} - - - - - {{ detailForm.equipNo }} - - - - - {{ detailForm.alarmName }} - - - - - {{ detailForm.alarmInfoUnit }} - - - - - {{ detailForm.referenceCon }} - - - - - {{ detailForm.referenceName }} - - - - - {{ detailForm.alertUpperBound }} - - - - - {{ detailForm.alertLowerBound }} - - - - -
- - - - {{ detailForm.remark }} - - + + + + + + {{ detailForm.customerName }} + + + + + {{ detailForm.equipNo }} + + + + + + + {{ detailForm.alarmName }} + + + + + {{ detailForm.alarmInfoUnit }} + + + + + + {{ detailForm.referenceCon }} + + + + + {{ detailForm.referenceName }} + + + + + + {{ detailForm.alertUpperBound }} + + + + + {{ detailForm.alertLowerBound }} + + + + + +
+ + + + + {{ detailForm.remark }} + + +
@@ -769,3 +789,4 @@ export default { }, }; + diff --git a/imt-ui/src/views/system/alarm/equiptrendalarm/index.vue b/imt-ui/src/views/system/alarm/equiptrendalarm/index.vue index bb95e75..4ed90c3 100644 --- a/imt-ui/src/views/system/alarm/equiptrendalarm/index.vue +++ b/imt-ui/src/views/system/alarm/equiptrendalarm/index.vue @@ -11,6 +11,54 @@ style="text-align:right" > + + + + + + + + + + + + + - @@ -71,7 +119,7 @@ end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" /> - +
-->