Merge remote-tracking branch 'origin/master'

This commit is contained in:
xusd 2024-11-01 15:20:27 +08:00
commit d72434b0dc
3 changed files with 23 additions and 13 deletions

View File

@ -71,4 +71,6 @@ public class EquipInfoRespVO {
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "运行状态")
private Integer runStatus;
} }

View File

@ -29,7 +29,8 @@ public interface EquipInfoMapper extends BaseMapperX<EquipInfoDO> {
.eqIfPresent(EquipInfoDO::getCustomerId, reqVO.getCustomerId()) .eqIfPresent(EquipInfoDO::getCustomerId, reqVO.getCustomerId())
.likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo()) .likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo())
.eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus()) .eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus())
.orderByDesc(EquipInfoDO::getCreateTime)); .groupBy(EquipInfoDO::getCustomerId, EquipInfoDO::getModelId)
);
} }
default List<EquipSelectionVO> selection(){ default List<EquipSelectionVO> selection(){

View File

@ -164,17 +164,22 @@
align="center" align="center"
prop="modelName" prop="modelName"
/> />
<el-table-column
label="机床名称"
align="center"
prop="equipName"
/>
<el-table-column <el-table-column
label="机床编号" label="机床编号"
align="center" align="center"
prop="equipNo" prop="equipNo"
/> />
<el-table-column <!-- <el-table-column
label="机床组件" label="机床组件"
align="center" align="center"
prop="componentName" prop="componentName"
/> /> -->
<el-table-column <!-- <el-table-column
label="报警等级" label="报警等级"
align="center" align="center"
prop="alarmLevel" prop="alarmLevel"
@ -185,8 +190,8 @@
:value="scope.row.alarmLevel" :value="scope.row.alarmLevel"
/> />
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <!-- <el-table-column
label="首次报警时间" label="首次报警时间"
align="center" align="center"
prop="firstAlarmTime" prop="firstAlarmTime"
@ -205,7 +210,7 @@
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.latestAlarmTime) }}</span> <span>{{ parseTime(scope.row.latestAlarmTime) }}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<!-- <el-table-column <!-- <el-table-column
label="状态" label="状态"
align="center" align="center"
@ -219,14 +224,14 @@
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column <el-table-column
label="状态" label="轴承状态"
align="center" align="center"
prop="equipAnalyseStatus" prop="status"
> >
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.TREND_ANALY_STATUS" :type="DICT_TYPE.TREND_ANALY_STATUS"
:value="scope.row.equipAnalyseStatus" :value="scope.row.status"
/> />
</template> </template>
</el-table-column> </el-table-column>
@ -279,6 +284,7 @@
<script> <script>
import * as EquipAlarmDataApi from "@/api/system/alarm/equipalarmdata"; import * as EquipAlarmDataApi from "@/api/system/alarm/equipalarmdata";
import EquipAlarmDataForm from "./EquipAlarmDataForm.vue"; import EquipAlarmDataForm from "./EquipAlarmDataForm.vue";
import * as EquipInfoApi from "@/api/system/equip/equipInfo";
import { import {
getEquipCascader, getEquipCascader,
getEquipSelection, getEquipSelection,
@ -339,9 +345,10 @@ export default {
async getList() { async getList() {
try { try {
this.loading = true; this.loading = true;
const res = await EquipAlarmDataApi.getEquipAlarmDataPage( // const res = await EquipAlarmDataApi.getEquipAlarmDataPage(
this.queryParams // this.queryParams
); // );
const res = await EquipInfoApi.getEquipInfoPage(this.queryParams);
await getEquipCascader().then((res) => { await getEquipCascader().then((res) => {
res.forEach((item) => { res.forEach((item) => {
if (item.children == null) { if (item.children == null) {