|
|
@@ -145,7 +145,8 @@ const monitorTable = ref();
|
|
|
const isRefresh = ref(true);
|
|
|
const treeNodeTitle = ref(''); // 选中的树形标题
|
|
|
const deviceList = ref<any[]>([]); // 设备列表
|
|
|
-const monitorList = ref({}); // 监测数据列表
|
|
|
+const monitorList = ref<Record<string, any[]>>({}); // 监测数据列表
|
|
|
+
|
|
|
// 当前展开的行key数组
|
|
|
const expandedRowKeys = ref([]);
|
|
|
const scroll = reactive({
|
|
|
@@ -351,6 +352,7 @@ async function refreshData(deviceId: string) {
|
|
|
const device = deviceList.value.find((d) => d.id === deviceId);
|
|
|
const result = await getDevMonitorListById({ devId: deviceId.toString() });
|
|
|
monitorList.value[deviceId] = Object.values(result.readData);
|
|
|
+ console.log(monitorList.value[deviceId], '123123');
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|