فهرست منبع

[Fix 0000]数据中心设备监测页面bug修复

bobo04052021@163.com 4 ماه پیش
والد
کامیت
76c1d2c77e
3فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. BIN
      dist0104.zip
  2. 3 1
      src/views/vent/dataCenter/deviceCenter/index.vue
  3. 1 1
      src/views/vent/dataCenter/stationCenter/index.vue

BIN
dist0104.zip


+ 3 - 1
src/views/vent/dataCenter/deviceCenter/index.vue

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

+ 1 - 1
src/views/vent/dataCenter/stationCenter/index.vue

@@ -106,7 +106,7 @@ const cardList = ref<any[]>(); //分站列表
 const deviceList = ref<any[]>([]);
 const deviceList = ref<any[]>([]);
 const openNum = ref(0);
 const openNum = ref(0);
 const clsoeNum = ref(0);
 const clsoeNum = ref(0);
-const monitorList = ref({}); // 监测数据列表
+const monitorList = ref<Record<string, any[]>>({}); // 监测数据列表
 const expandedRowKeys = ref([]);
 const expandedRowKeys = ref([]);
 const selectedIndex = ref(0);
 const selectedIndex = ref(0);
 // // 分页参数
 // // 分页参数