diff --git a/src/api/iot/device/device/index.ts b/src/api/iot/device/device/index.ts index 99968e264..cb145bc43 100644 --- a/src/api/iot/device/device/index.ts +++ b/src/api/iot/device/device/index.ts @@ -130,12 +130,12 @@ export const DeviceApi = { // 获取设备属性最新数据 getLatestDeviceProperties: async (params: any) => { - return await request.get({ url: `/iot/device/property/latest`, params }) + return await request.get({ url: `/iot/device/property/get-latest`, params }) }, // 获取设备属性历史数据 - getHistoryDevicePropertyPage: async (params: any) => { - return await request.get({ url: `/iot/device/property/history-page`, params }) + getHistoryDevicePropertyList: async (params: any) => { + return await request.get({ url: `/iot/device/property/history-list`, params }) }, // 获取设备认证信息 diff --git a/src/plugins/echarts/index.ts b/src/plugins/echarts/index.ts index 18d05aabf..3a402dea6 100644 --- a/src/plugins/echarts/index.ts +++ b/src/plugins/echarts/index.ts @@ -13,6 +13,7 @@ import { import { AriaComponent, + DataZoomComponent, GridComponent, LegendComponent, ParallelComponent, @@ -30,6 +31,7 @@ echarts.use([ TitleComponent, TooltipComponent, ToolboxComponent, + DataZoomComponent, GridComponent, PolarComponent, AriaComponent, diff --git a/src/views/iot/device/device/detail/DeviceDataDetail.vue b/src/views/iot/device/device/detail/DeviceDataDetail.vue index ced2a8a4a..c9c6140c8 100644 --- a/src/views/iot/device/device/detail/DeviceDataDetail.vue +++ b/src/views/iot/device/device/detail/DeviceDataDetail.vue @@ -1,6 +1,6 @@ - + - + - - - - 搜索 - + + + + + + + + + - - + - - - - - - + + + 暂无数据 + + + + + + + + + {{ formatDate(new Date(scope.row.updateTime)) }} + + + + + diff --git a/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue b/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue index 6c00aee85..3525899c5 100644 --- a/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue +++ b/src/views/iot/device/device/detail/DeviceDetailsThingModelProperty.vue @@ -213,7 +213,7 @@ watch(autoRefresh, (newValue) => { if (newValue) { autoRefreshTimer = setInterval(() => { getList() - }, 5000) // 每5秒刷新一次 + }, 5000) // 每 5 秒刷新一次 } else { clearInterval(autoRefreshTimer) autoRefreshTimer = null