From ff4b627d870927fcf783dbe01fc447a52bc56a89 Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Sun, 29 Mar 2026 22:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=8B=89=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/warn/autolog.js | 44 ++++++++ pages.json | 24 ++--- pages/news/subpages/deviceCenter/index.vue | 8 +- pages/news/subpages/deviceLog/log.vue | 0 pages/news/subpages/eventCenter/index.vue | 117 ++++++++++++++++++++- pages/news/subpages/sysNotice/index.vue | 108 ++++++++++++++++++- pages/news/subpages/videoCenter/index.vue | 5 + 7 files changed, 282 insertions(+), 24 deletions(-) create mode 100644 api/warn/autolog.js create mode 100644 pages/news/subpages/deviceLog/log.vue diff --git a/api/warn/autolog.js b/api/warn/autolog.js new file mode 100644 index 0000000..00f0419 --- /dev/null +++ b/api/warn/autolog.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询自动模式日志列表 +export function listAutolog(query) { + return request({ + url: '/warn/autolog/list', + method: 'get', + params: query + }) +} + +// 查询自动模式日志详细 +export function getAutolog(id) { + return request({ + url: '/warn/autolog/' + id, + method: 'get' + }) +} + +// 新增自动模式日志 +export function addAutolog(data) { + return request({ + url: '/warn/autolog', + method: 'post', + data: data + }) +} + +// 修改自动模式日志 +export function updateAutolog(data) { + return request({ + url: '/warn/autolog', + method: 'put', + data: data + }) +} + +// 删除自动模式日志 +export function delAutolog(id) { + return request({ + url: '/warn/autolog/' + id, + method: 'delete' + }) +} diff --git a/pages.json b/pages.json index 7ec1c97..0c0397d 100644 --- a/pages.json +++ b/pages.json @@ -33,12 +33,12 @@ } } }, - { - "path": "pages/data/indexDemo", - "style": { - "navigationBarTitleText": "数据中心11" - } - }, +// { +// "path": "pages/data/indexDemo", +// "style": { +// "navigationBarTitleText": "数据中心11" +// } +// }, { "path": "pages/news/index", "style": { @@ -219,12 +219,12 @@ "selectedIconPath": "static/images/tabbar/data_.png", "text": "历史数据" }, - { - "pagePath": "pages/data/indexDemo", - "iconPath": "static/images/tabbar/data.png", - "selectedIconPath": "static/images/tabbar/data_.png", - "text": "历史数据" - }, +// { +// "pagePath": "pages/data/indexDemo", +// "iconPath": "static/images/tabbar/data.png", +// "selectedIconPath": "static/images/tabbar/data_.png", +// "text": "历史数据" +// }, { "pagePath": "pages/news/index", "iconPath": "static/images/tabbar/news.png", diff --git a/pages/news/subpages/deviceCenter/index.vue b/pages/news/subpages/deviceCenter/index.vue index 5ab9d71..4039c36 100644 --- a/pages/news/subpages/deviceCenter/index.vue +++ b/pages/news/subpages/deviceCenter/index.vue @@ -44,7 +44,7 @@ @@ -139,12 +139,11 @@ export default { } }, onShow() { + // 只允许查询七天以内消息默认展示今天 this.getSortDate(); }, methods: { - goTo(id) { - this.scrollId = id; - }, + // 判断两个时间是否是同一天同一分钟 isSameMinute(time1, time2) { const date1 = new Date(time1); @@ -219,6 +218,7 @@ export default { // 在数据更新后设置 scrollId this.$nextTick(() => { + // 更新数据的长度 this.scrollId = "item"+this.messageList[10].id; }); diff --git a/pages/news/subpages/deviceLog/log.vue b/pages/news/subpages/deviceLog/log.vue new file mode 100644 index 0000000..e69de29 diff --git a/pages/news/subpages/eventCenter/index.vue b/pages/news/subpages/eventCenter/index.vue index 31903e6..87f6d75 100644 --- a/pages/news/subpages/eventCenter/index.vue +++ b/pages/news/subpages/eventCenter/index.vue @@ -1,7 +1,10 @@