diff --git a/src/views/iot/device/device/detail/DeviceDetailsThingModel.vue b/src/views/iot/device/device/detail/DeviceDetailsThingModel.vue
index 847221559..99698746d 100644
--- a/src/views/iot/device/device/detail/DeviceDetailsThingModel.vue
+++ b/src/views/iot/device/device/detail/DeviceDetailsThingModel.vue
@@ -12,7 +12,10 @@
/>
-
+
diff --git a/src/views/iot/device/device/detail/DeviceDetailsThingModelEvent.vue b/src/views/iot/device/device/detail/DeviceDetailsThingModelEvent.vue
index e3c302040..3555c7b36 100644
--- a/src/views/iot/device/device/detail/DeviceDetailsThingModelEvent.vue
+++ b/src/views/iot/device/device/detail/DeviceDetailsThingModelEvent.vue
@@ -54,21 +54,19 @@
-
+
- {{
- scope.row.request?.reportTime ? formatDate(new Date(scope.row.request.reportTime)) : '-'
- }}
+ {{ scope.row.request?.reportTime ? formatDate(scope.row.request.reportTime) : '-' }}
-
+
{{ scope.row.request?.identifier }}
-
+
{{ getEventName(scope.row.request?.identifier) }}
diff --git a/src/views/iot/device/device/detail/DeviceDetailsThingModelService.vue b/src/views/iot/device/device/detail/DeviceDetailsThingModelService.vue
index d9c4fe5d7..916d2dc15 100644
--- a/src/views/iot/device/device/detail/DeviceDetailsThingModelService.vue
+++ b/src/views/iot/device/device/detail/DeviceDetailsThingModelService.vue
@@ -1,13 +1,203 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.request?.reportTime ? formatDate(scope.row.request.reportTime) : '-' }}
+
+
+
+
+ {{ scope.row.reply?.reportTime ? formatDate(scope.row.reply.reportTime) : '-' }}
+
+
+
+
+
+ {{ scope.row.request?.identifier }}
+
+
+
+
+
+ {{ getServiceName(scope.row.request?.identifier) }}
+
+
+
+
+ {{ getCallType(scope.row.request?.identifier) }}
+
+
+
+ {{ parseParams(scope.row.request?.params) }}
+
+
+
+
+ {{
+ `{"code":${scope.row.reply.code},"msg":"${scope.row.reply.msg}","data":${scope.row.reply.data}\}`
+ }}
+
+ -
+
+
+
+
+
+
-
diff --git a/src/views/iot/utils/constants.ts b/src/views/iot/utils/constants.ts
index b31319f82..cfef0d93d 100644
--- a/src/views/iot/utils/constants.ts
+++ b/src/views/iot/utils/constants.ts
@@ -36,5 +36,12 @@ export const IotDeviceMessageMethodEnum = {
method: 'thing.event.post',
name: '事件上报',
upstream: true
+ },
+
+ // ========== 服务调用 ==========
+ SERVICE_INVOKE: {
+ method: 'thing.service.invoke',
+ name: '服务调用',
+ upstream: false
}
}