设备信息分页查询查询顺序和轴承状态展示

This commit is contained in:
zhangjunwen 2024-11-01 14:43:16 +08:00
parent 738d691042
commit 16e282a20a

View File

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