diff --git a/src/views/ems/record/recordIOTInstant/index.vue b/src/views/ems/record/recordIOTInstant/index.vue
index d0bb5bc..2850cc1 100644
--- a/src/views/ems/record/recordIOTInstant/index.vue
+++ b/src/views/ems/record/recordIOTInstant/index.vue
@@ -222,6 +222,13 @@
+
+
+
+
+
+
+
@@ -364,6 +371,12 @@ export default {
}
};
},
+ computed: {
+ // 计算是否已选择设备
+ hasSelectedDevice() {
+ return this.queryParams.monitorId || (this.queryParams.monitorIds && this.queryParams.monitorIds.length > 0);
+ }
+ },
created() {
//时间范围从昨天8:00:00到今天8:00:00
const nowDate = new Date();
@@ -464,6 +477,13 @@ export default {
getList() {
this.loading = true;
+ // 检查是否已选择设备,未选择时不查询数据
+ if (!this.hasSelectedDevice) {
+ this.recordIotenvInstantList = [];
+ this.total = 0;
+ this.loading = false;
+ return;
+ }
if (null != this.daterangeCollectTime && '' != this.daterangeCollectTime) {
this.queryParams.params['beginCollectTime'] = this.daterangeCollectTime[0]
@@ -484,13 +504,6 @@ export default {
this.recordIotenvInstantList = response.rows;
this.total = response.total;
this.loading = false;
-
- // 调试信息:检查返回的数据
- console.log('查询结果:', response.rows);
- console.log('当前选中节点类型:', this.selectedNodeType);
- if (response.rows && response.rows.length > 0) {
- console.log('第一条记录的时间字段:', response.rows[0].recodeTime);
- }
});
},
// 取消按钮
@@ -610,3 +623,17 @@ export default {
}
};
+
+
diff --git a/src/views/ems/report/currentIOTCurve/index.vue b/src/views/ems/report/currentIOTCurve/index.vue
index 27bd537..eb98242 100644
--- a/src/views/ems/report/currentIOTCurve/index.vue
+++ b/src/views/ems/report/currentIOTCurve/index.vue
@@ -313,6 +313,8 @@ export default {
let query = JSON.parse(JSON.stringify(this.queryParams))
const {data} = await getRecordIotenvInstantList(query)
+ console.log('数据条数:', data.length);
+
// 根据设备类型创建对应的图表配置
this.createChartByType(data);
},
diff --git a/src/views/system/menu/原本的.vue b/src/views/system/menu/原本的.vue
new file mode 100644
index 0000000..4a48e18
--- /dev/null
+++ b/src/views/system/menu/原本的.vue
@@ -0,0 +1,452 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 新增
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 目录
+ 菜单
+ 按钮
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是否外链
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+ 路由地址
+
+
+
+
+
+
+
+
+
+
+ 组件路径
+
+
+
+
+
+
+
+
+
+
+
+ 权限字符
+
+
+
+
+
+
+
+
+
+
+ 路由参数
+
+
+
+
+
+
+
+
+
+ 是否缓存
+
+
+ 缓存
+ 不缓存
+
+
+
+
+
+
+
+
+
+ 显示状态
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+ 菜单状态
+
+
+ {{dict.label}}
+
+
+
+
+
+
+
+
+
+
+