index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <a-card
  3. title="功能介绍"
  4. >
  5. <a-row :gutter="[8, 8]" justify="space-between" >
  6. <a-col :xs='24' :sm="24" :md='16' :lg="16" :xl="14" >
  7. 在物联网平台中,某一类具有相同能力或特征的设备的合集被称为一款产品。
  8. 如果您希望使用平台查看设备上报的数据信息,并对设备进行管理控制,就需要开发产品模型(Profile)。定义Profile,使平台理解该款设备支持的属性、命令等信息。根据产品的接入协议、数据格式等可能还需要您定义其他相关的内容 了解更多
  9. </a-col>
  10. <a-col :xs='24' :sm="24" :md='8' :lg="8" :xl="8" >
  11. <img style="width: 100%" :src="staticImg.productIntroduction" alt="">
  12. </a-col>
  13. </a-row>
  14. </a-card>
  15. <!-- 协议 -->
  16. <a-card
  17. style="margin-top: 20px"
  18. >
  19. <table-pro
  20. :request="CommonController.getTransport"
  21. :columns="columns"
  22. />
  23. </a-card>
  24. <!-- 资源 -->
  25. <a-card title="资源概览" style="margin-top: 20px">
  26. <a-row :gutter="[8, 8]" justify="space-between" >
  27. <a-col
  28. v-for="item in sourceList"
  29. :key="item.name"
  30. class="product-item"
  31. :xs='24' :sm="24" :md='7' :lg="7" :xl="7"
  32. >
  33. <span>{{item.name}}</span>
  34. <span>{{item.value}}</span>
  35. </a-col>
  36. </a-row>
  37. </a-card>
  38. </template>
  39. <script setup lang="ts" >
  40. import { CommonController } from '@/controller/index'
  41. import { useStaticImg } from '@/utils/static'
  42. const staticImg = useStaticImg()
  43. const columns = [
  44. {
  45. title: '接入协议(端口号)',
  46. dataIndex: 'port',
  47. key: 'port'
  48. },
  49. {
  50. title: '接入地址',
  51. dataIndex: 'address',
  52. key: 'address'
  53. },
  54. {
  55. title: '操作',
  56. key: 'action',
  57. list: [
  58. {
  59. name: '复制',
  60. use: 'copy',
  61. bindKey: 'address'
  62. }
  63. ]
  64. }
  65. ]
  66. const sourceList = [
  67. {
  68. name: '产品数',
  69. value: 13
  70. },
  71. {
  72. name: '联动规则',
  73. value: 26
  74. },
  75. {
  76. name: '转发规则',
  77. value: 7
  78. },
  79. {
  80. name: '设备总数',
  81. value: 99
  82. },
  83. {
  84. name: '在线设备总数',
  85. value: 23
  86. },
  87. {
  88. name: '激活设备总数',
  89. value: 88
  90. }
  91. ]
  92. </script>
  93. <style>
  94. .product-item {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. background-color: rgba(16,103,238,.04);
  99. height: 40px;
  100. padding: 0 18px !important;
  101. box-sizing: border-box;
  102. }
  103. </style>