From 8fa3b8f0c34ece8c612960f7e6790a79ad4feb8f Mon Sep 17 00:00:00 2001
From: Kven <2955163637@qq.com>
Date: Tue, 14 Jan 2025 16:28:04 +0800
Subject: [PATCH] =?UTF-8?q?feat(bulletin-card):=20=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=85=AC=E5=91=8A=E9=80=9A=E7=9F=A5=E5=8D=A1=E7=89=87=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增公告通知卡片页面和相关组件
- 实现公告列表查询、筛选和分页功能
- 添加公告详情页面
- 优化公告卡片样式和布局
---
src/api/bulletins.ts | 8 +
src/router/routes/modules/user.ts | 11 +
.../components/bulletin-detail.vue | 148 ++++++++++++
.../bulletin-card/components/card-wrap.vue | 143 ++++++++++++
src/views/user/bulletin-card/index.vue | 210 ++++++++++++++++++
5 files changed, 520 insertions(+)
create mode 100644 src/views/user/bulletin-card/components/bulletin-detail.vue
create mode 100644 src/views/user/bulletin-card/components/card-wrap.vue
create mode 100644 src/views/user/bulletin-card/index.vue
diff --git a/src/api/bulletins.ts b/src/api/bulletins.ts
index fc1582a..0a04211 100644
--- a/src/api/bulletins.ts
+++ b/src/api/bulletins.ts
@@ -12,6 +12,14 @@ export interface BulletinsRecord {
current: number;
}
+export interface BulletinsList extends BulletinsRecord{
+ id?: number;
+ remark: string;
+ createBy: string;
+ content: string;
+ publishTime: string;
+ }
+
// 查看详情
export function queryBulletinsListAll(id: number) {
return axios.get(`/api/rest/bulletin/self/${id}`);
diff --git a/src/router/routes/modules/user.ts b/src/router/routes/modules/user.ts
index 9dd9894..192959f 100644
--- a/src/router/routes/modules/user.ts
+++ b/src/router/routes/modules/user.ts
@@ -44,6 +44,17 @@ const USER: AppRouteRecordRaw = {
permissions: ['*'],
},
},
+ {
+ path: 'bulletinCard',
+ name: 'BulletinCard',
+ component: () => import('@/views/user/bulletin-card/index.vue'),
+ meta: {
+ locale: '公告通知(卡片)',
+ title: '公告通知(卡片)',
+ requiresAuth: true,
+ permissions: ['*'],
+ },
+ },
{
path: 'messages',
name: 'Messages',
diff --git a/src/views/user/bulletin-card/components/bulletin-detail.vue b/src/views/user/bulletin-card/components/bulletin-detail.vue
new file mode 100644
index 0000000..32a4af0
--- /dev/null
+++ b/src/views/user/bulletin-card/components/bulletin-detail.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/user/bulletin-card/components/card-wrap.vue b/src/views/user/bulletin-card/components/card-wrap.vue
new file mode 100644
index 0000000..c3b7271
--- /dev/null
+++ b/src/views/user/bulletin-card/components/card-wrap.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+ {{ createBy }}
+
+
+ {{ dayjs(publishTime).format('YYYY-MM-DD HH:mm:ss') }}
+
+
+ {{ remark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/user/bulletin-card/index.vue b/src/views/user/bulletin-card/index.vue
new file mode 100644
index 0000000..a782c6f
--- /dev/null
+++ b/src/views/user/bulletin-card/index.vue
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file