-
+
-
+
diff --git a/src/views/sluice/runManage/monitoring/sluice/manage/index.vue b/src/views/sluice/runManage/monitoring/sluice/manage/index.vue
index 79ce1f8..f3b55fd 100644
--- a/src/views/sluice/runManage/monitoring/sluice/manage/index.vue
+++ b/src/views/sluice/runManage/monitoring/sluice/manage/index.vue
@@ -19,6 +19,7 @@ export default {
xcWarnningType: [],
xcWarnningLevelType: [],
xcDeviceType: [],
+ xcDeviceStatus: [],
searchForm: {
type: -1,
warningLevel: '',
@@ -166,7 +167,12 @@ export default {
filterdeviceType (price) {
const data = that.xcDeviceType.filter((res) => res.dictValue == price)
return data[0] ? data[0].dictLabel : '/'
- }
+ },
+ // 过滤设备状态
+ filterStatus(price) {
+ const data = that.xcDeviceStatus.filter((res) => res.dictValue == price);
+ return data[0] ? data[0].dictLabel : "离线";
+ },
},
async mounted() {
// 获取预警类型
@@ -181,6 +187,10 @@ export default {
getDicts("xc_device_type").then((res) => {
this.xcDeviceType = res.data;
});
+ // 获取设备状态
+ getDicts("xc_device_status").then((res) => {
+ this.xcDeviceStatus = res.data;
+ });
// 获取列表数据
await this.getTableData();
},
@@ -251,6 +261,11 @@ export default {
{{ scope.row.warningLevel | filterwarnningLevel }}
+
+
+ {{ scope.row.status | filterStatus }}
+
+