From 3754307b95bec6b1c84689fcbec4d0aee9acdcd4 Mon Sep 17 00:00:00 2001
From: douzhuo <17611323298@163.com>
Date: Sat, 23 Jul 2022 17:02:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9=E6=8C=87?=
=?UTF-8?q?=E6=B4=BE=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/page/index/top/index.vue | 19 ++++++--
.../Equipment/equipmentOnlineRecordList.vue | 13 +++---
src/views/msg/index.vue | 43 +++++++++++++------
vue.config.js | 4 +-
4 files changed, 52 insertions(+), 27 deletions(-)
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index 61fe2b9..863c695 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -140,9 +140,14 @@
-
-
-
+
+
+ {{ row.weekDate }} {{ row.title }}
+
+
+ {{ fomatDate(row.createTime) }} {{ row.title }}
+
+
@@ -318,6 +323,13 @@ export default {
this.info = getStore({ name: "userInfo" });
},
methods: {
+ fomatDate(date) {
+ if (!date) return "--";
+ let arr = date.split(" ");
+ let str = arr[0];
+ let result = str.split("-");
+ return `${result[1]}月${result[2]}日`;
+ },
handleClick() {},
// 获取升级消息列表
getMessage() {
@@ -327,6 +339,7 @@ export default {
num: 1, // 第几页
size: 5, // 条数
messageType: Number(this.activeName),
+ projectId: localStorage.getItem("houseId") || "",
};
this.$api.http
.messageList(paramsData)
diff --git a/src/views/Equipment/equipmentOnlineRecordList.vue b/src/views/Equipment/equipmentOnlineRecordList.vue
index 892809b..9b2f7ad 100644
--- a/src/views/Equipment/equipmentOnlineRecordList.vue
+++ b/src/views/Equipment/equipmentOnlineRecordList.vue
@@ -6,7 +6,7 @@
:class="{ activecllasscet: activeTotal == 0 }"
:style="{ background: activeTotal == 0 ? '#2671E2' : '#ffffff' }"
>
- 设备在线记录
+ 设备离线记录
-
在线时间:
+
离线时间:
-
+
-
+
-
-
- {{row.offlineTime||'--'}}
-
+
diff --git a/src/views/msg/index.vue b/src/views/msg/index.vue
index 9ac0c40..46eff3d 100644
--- a/src/views/msg/index.vue
+++ b/src/views/msg/index.vue
@@ -4,16 +4,24 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ row.weekDate }} {{ row.title }}
+
+
+ {{ fomatDate(row.createTime) }} {{ row.title }}
+
+
+
+
+
+
+
+
+