From 48940feeda0113619e282211f5373d370e7922f3 Mon Sep 17 00:00:00 2001
From: lld <15027638633@163.com>
Date: Thu, 26 Mar 2026 23:34:03 +0800
Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E9=80=9A=E7=9F=A5=E8=AF=A6?=
=?UTF-8?q?=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/news/subpages/sysNotice/index.vue | 93 +++++++++++++++++++++----
1 file changed, 78 insertions(+), 15 deletions(-)
diff --git a/pages/news/subpages/sysNotice/index.vue b/pages/news/subpages/sysNotice/index.vue
index 0542241..c973fa0 100644
--- a/pages/news/subpages/sysNotice/index.vue
+++ b/pages/news/subpages/sysNotice/index.vue
@@ -6,14 +6,14 @@
未读
已读
@@ -29,7 +29,7 @@
@@ -42,8 +42,8 @@
@@ -57,7 +57,23 @@ export default {
data() {
return {
currentTab: 0, // 0未读 1已读
- noticeList: [
+ authorList: [
+ {
+ name: '那只猪-图鸟人事部',
+ avatar: 'https://img.xiaoces.com/photos/profile.jpg'
+ },
+ {
+ name: '你的名字',
+ avatar: 'https://img.xiaoces.com/photos/logo200.png'
+ }
+ ],
+ dotColorList: [
+ '#e53935',
+ '#007bff',
+ '#4caf50',
+ '#ff9800'
+ ],
+ contentList: [
{
title: '2024年春节放假通知',
content: '各位同事:一年一度的春节又到啦,根据国家法定节假日规定,2024年春节放假安排如下:02月01日—...',
@@ -65,7 +81,28 @@ export default {
time: '2024-01-26 10:12',
dotColor: '#e53935',
dotInner: true, // 实心红点
- avatar: '/static/avatar1.png' // 替换为你的头像路径
+ isRead: 0,
+ avatar: 'https://img.xiaoces.com/photos/logo.png' // 替换为你的头像路径
+ },
+ {
+ title: '2024年春节放假通知',
+ content: '各位同事:一年一度的春节又到啦,根据国家法定节假日规定,2024年春节放假安排如下:02月01retrt345日—...',
+ author: '那只猪-图鸟人事部',
+ time: '2024-01-26 10:12',
+ dotColor: '#e53935',
+ dotInner: true, // 实心红点
+ isRead: 0,
+ avatar: 'https://img.xiaoces.com/photos/logo.png' // 替换为你的头像路径
+ },
+ {
+ title: '2024年春节放假通知',
+ content: '各位同事:一年一度的春节又到啦,根据国家法定节假日规定,2024年春45353535节放假安排如下:02月01日—...',
+ author: '那只猪-图鸟人事部',
+ time: '2024-01-26 10:12',
+ dotColor: '#e53935',
+ dotInner: true, // 实心红点
+ isRead: 0,
+ avatar: 'https://img.xiaoces.com/photos/logo.png' // 替换为你的头像路径
},
{
title: '关于年前请假审批流程通知',
@@ -74,7 +111,8 @@ export default {
time: '2024-01-20 14:02',
dotColor: '#007bff',
dotInner: false, // 空心蓝点
- avatar: '/static/avatar2.png'
+ isRead: 1,
+ avatar: 'https://img.xiaoces.com/photos/logo.png'
},
{
title: '图鸟OA系统更新通知',
@@ -83,7 +121,8 @@ export default {
time: '2024-01-12 09:56',
dotColor: '#4caf50',
dotInner: true, // 实心绿点
- avatar: '/static/avatar3.png'
+ isRead: 1,
+ avatar: 'https://img.xiaoces.com/photos/logo.png'
},
{
title: '凑数的文案,凑够一行超出隐藏,不喜勿喷',
@@ -92,7 +131,8 @@ export default {
time: '2024-01-06 17:59',
dotColor: '#007bff',
dotInner: false, // 空心蓝点
- avatar: '/static/avatar4.png'
+ isRead: 1,
+ avatar: 'https://img.xiaoces.com/photos/logo.png'
},
{
title: '2023年12月考勤统计核对表',
@@ -101,21 +141,39 @@ export default {
time: '',
dotColor: '#4caf50',
dotInner: true, // 实心绿点
- avatar: ''
+ isRead: 1,
+ avatar: 'https://img.xiaoces.com/photos/logo.png'
}
- ]
+ ],
+ noticeList: [],
}
- }
+ },
+ methods: {
+ switchTab(currentTab) {
+ this.currentTab = currentTab;
+ this.noticeList = this.contentList.filter(item =>
+ item.isRead===currentTab);
+ }
+ },
+ onShow() {
+ this.noticeList = this.contentList.filter(item =>
+ item.isRead===0);
+ },
}