diff --git a/src/views/iot/device/components/DeviceAttributeList.vue b/src/views/iot/device/components/DeviceAttributeList.vue
index 2b7ce2e3..8c55bc14 100644
--- a/src/views/iot/device/components/DeviceAttributeList.vue
+++ b/src/views/iot/device/components/DeviceAttributeList.vue
@@ -56,16 +56,20 @@ ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-to
-
+
- {{ scope.row.latestValue ?? '-' }}
+ {{ formatAddressValue(scope.row.addressValue) }}
+ label="最新采集时间"
+ align="center"
+ prop="latestCollectionTime"
+ :formatter="dateFormatter"
+ width="170px"
+ />
{{ scope.row.sort ?? '-' }}
@@ -126,6 +130,16 @@ const queryFormRef = ref()
const exportLoading = ref(false)
+const formatAddressValue = (value: unknown) => {
+ if (value === null || value === undefined) {
+ return '-'
+ }
+ if (typeof value === 'string' || typeof value === 'number') {
+ return value
+ }
+ return ''
+}
+
const selectedIds = ref([])
const handleSelectionChange = (rows: any[]) => {
selectedIds.value = rows?.map((row) => row.id).filter((id) => id !== undefined) ?? []