File tree Expand file tree Collapse file tree 4 files changed +596
-3
lines changed Expand file tree Collapse file tree 4 files changed +596
-3
lines changed Original file line number Diff line number Diff line change
1
+ import request from '@/config/axios'
2
+
3
+ /** 统计数据类型 */
4
+ export interface IotStatisticsSummaryRespVO {
5
+ productCategoryCount : number
6
+ productCount : number
7
+ deviceCount : number
8
+ deviceMessageCount : number
9
+ productCategoryTodayCount : number
10
+ productTodayCount : number
11
+ deviceTodayCount : number
12
+ deviceMessageTodayCount : number
13
+ deviceOnlineCount : number
14
+ deviceOfflineCount : number
15
+ deviceInactiveCount : number
16
+ productCategoryDeviceCounts : Record < string , number >
17
+ }
18
+
19
+ /** 消息统计数据类型 */
20
+ export interface IotStatisticsDeviceMessageSummaryRespVO {
21
+ upstreamCounts : Record < number , number >
22
+ downstreamCounts : Record < number , number >
23
+ }
24
+
25
+ // IoT 数据统计 API
26
+ export const ProductCategoryApi = {
27
+ // 查询IoT基础数据统计
28
+ getIotStatisticsSummary : async ( ) => {
29
+ return await request . get < IotStatisticsSummaryRespVO > ( {
30
+ url : `/iot/statistics/get-summary`
31
+ } )
32
+ } ,
33
+
34
+ // 查询IoT上下行消息数据统计
35
+ getIotStatisticsDeviceMessageSummary : async ( params : {
36
+ startTime : number
37
+ endTime : number
38
+ } ) => {
39
+ return await request . get < IotStatisticsDeviceMessageSummaryRespVO > ( {
40
+ url : `/iot/statistics/get-log-summary` ,
41
+ params
42
+ } )
43
+ }
44
+ }
Original file line number Diff line number Diff line change 39
39
40
40
<script lang="ts" setup>
41
41
import { ref , computed } from ' vue'
42
- import Vue3Jsoneditor from ' v3-jsoneditor/src/Vue3Jsoneditor.vue'
42
+ // import Vue3Jsoneditor from 'v3-jsoneditor/src/Vue3Jsoneditor.vue'
43
43
44
44
const deviceConfig = ref ({
45
45
name: ' dyla1n'
Original file line number Diff line number Diff line change 26
26
:device =" device"
27
27
/>
28
28
</el-tab-pane >
29
- <el-tab-pane label =" 设备配置" name =" config" >
29
+ <!-- < el-tab-pane label="设备配置" name="config">
30
30
<DeviceDetailConfig />
31
- </el-tab-pane >
31
+ </el-tab-pane> -->
32
32
</el-tabs >
33
33
</el-col >
34
34
</template >
You can’t perform that action at this time.
0 commit comments