|
@@ -94,7 +94,7 @@
|
|
|
{{ 4.8 }}
|
|
|
</span>
|
|
|
<span class="text-5xl font-bold text-gray-700" style="color: indianred">
|
|
|
- {{ 10 }}
|
|
|
+ {{ safe }}
|
|
|
</span>
|
|
|
</div>
|
|
|
|
|
@@ -253,7 +253,7 @@ const messageStats = ref<IotStatisticsDeviceMessageSummaryRespVO>({
|
|
|
upstreamCounts: {},
|
|
|
downstreamCounts: {}
|
|
|
})
|
|
|
-
|
|
|
+const safe = ref()
|
|
|
/** 获取统计数据 */
|
|
|
const getStats = async () => {
|
|
|
// 获取基础统计数据
|
|
@@ -281,6 +281,9 @@ const getStats = async () => {
|
|
|
typeData.value = res
|
|
|
initCharts()
|
|
|
})
|
|
|
+ IotStatApi.getSafeCount().then((res) => {
|
|
|
+ safe.value = res
|
|
|
+ })
|
|
|
// IotStatApi.getInspectTodayStatus().then((res) => {
|
|
|
// todayStatus.value = res
|
|
|
// debugger
|