diff --git a/src/views/ems/record/recordIOTInstant/index.vue b/src/views/ems/record/recordIOTInstant/index.vue
index 1401017..76178ba 100644
--- a/src/views/ems/record/recordIOTInstant/index.vue
+++ b/src/views/ems/record/recordIOTInstant/index.vue
@@ -184,48 +184,38 @@
v-hasPermi="['ems/record:recordIotenvInstant:export']"
>导出
-
+
-
-
-
-
+
+
-
-
+
+
+
+
-
-
+
+
+
-
-
-
-
-
-
-
+
-
-
+
+
+
-
+
+
@@ -270,9 +260,9 @@
-
+
@@ -291,14 +281,14 @@
-->
-
+
{
- if (col.key >= 2 && col.key <= 5) { // 传感器数据列
- col.visible = false;
- }
- });
-
- if (!this.selectedNodeType) {
- // 如果没有选中类型,显示所有传感器列
- this.columns[2].visible = true; // 温度
- this.columns[3].visible = true; // 湿度
- this.columns[4].visible = true; // 照度
- this.columns[5].visible = true; // 噪声
- return;
- }
-
- // 根据type显示对应的传感器数据列
- switch (this.selectedNodeType) {
- case 5: // 温度传感器:只显示温度
- this.columns[2].visible = true; // 温度
- break;
- case 6: // 温湿度传感器:显示温度和湿度
- this.columns[2].visible = true; // 温度
- this.columns[3].visible = true; // 湿度
- break;
- case 7: // 噪声传感器:只显示噪声
- this.columns[5].visible = true; // 噪声
- break;
- default:
- // 其他类型显示所有
- this.columns[2].visible = true; // 温度
- this.columns[3].visible = true; // 湿度
- this.columns[4].visible = true; // 照度
- this.columns[5].visible = true; // 噪声
- }
-
- console.log('更新列显示:', this.selectedNodeType, this.columns.map(c => ({key: c.key, label: c.label, visible: c.visible})));
- },
-
}
};