diff --git a/src/views/device/DashBoard/index.vue b/src/views/device/DashBoard/index.vue
index 09e1584a..122e5f4e 100644
--- a/src/views/device/DashBoard/index.vue
+++ b/src/views/device/DashBoard/index.vue
@@ -22,12 +22,8 @@
>
-
{
if (menuStore.hasMenu('device/Product')) {
productCount().then((res) => {
@@ -174,6 +173,9 @@ const getProductData = () => {
}
};
getProductData();
+/**
+ * 获取设备数量
+ */
const getDeviceData = () => {
if (menuStore.hasMenu('device/Instance')) {
deviceCount().then((res) => {
@@ -197,6 +199,9 @@ const getDeviceData = () => {
}
};
getDeviceData();
+/**
+ * 获取在线数量
+ */
const getOnline = () => {
dashboard([
{
@@ -222,7 +227,8 @@ const getOnline = () => {
const onlineYdata = y;
onlineYdata.reverse();
setOnlineChartOpition(x, onlineYdata);
- deviceFooter.value[0].value = y?.[1];
+ onlineFooter.value[0].value = y?.[1];
+ console.log(res.result);
}
});
};
diff --git a/src/views/device/Product/Save/index.vue b/src/views/device/Product/Save/index.vue
index 1fbf0a1d..69b5d9af 100644
--- a/src/views/device/Product/Save/index.vue
+++ b/src/views/device/Product/Save/index.vue
@@ -23,7 +23,7 @@
-
+