From 2f6e3503ae12251c8b04e0c91a36ffb5f5ce8b08 Mon Sep 17 00:00:00 2001 From: MDSMO Date: Mon, 4 Aug 2025 15:26:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E5=B7=A5=E5=8F=91=E5=B8=83=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E5=92=8C=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=88=91=E7=9A=84=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=A8=A1=E5=9D=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/routine/NotificationManagement.js | 64 +++ src/views/Home/index-new-blue.vue | 385 +++++++++++++++++- .../routine/NotificationManagement/index.vue | 344 ++++++++++++++++ 3 files changed, 773 insertions(+), 20 deletions(-) create mode 100644 src/api/routine/NotificationManagement.js create mode 100644 src/views/routine/NotificationManagement/index.vue diff --git a/src/api/routine/NotificationManagement.js b/src/api/routine/NotificationManagement.js new file mode 100644 index 0000000..cfa3e7f --- /dev/null +++ b/src/api/routine/NotificationManagement.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' + +// 查询通知管理列表 +export function listNotificationManagement(query) { + return request({ + url: '/routine/NotificationManagement/my-sent', + method: 'get', + params: query + }) +} + +// 查询通知管理详细 +export function getNotificationManagement(id) { + return request({ + url: '/routine/NotificationManagement/' + id, + method: 'get' + }) +} + +// 新增通知管理 +export function addNotificationManagement(data) { + return request({ + url: '/routine/NotificationManagement/add', + method: 'post', + data: data + }) +} + +// 修改通知管理 +export function updateNotificationManagement(data) { + return request({ + url: '/routine/NotificationManagement/update', + method: 'post', + data: data + }) +} + +// 删除通知管理 +export function delNotificationManagement(id) { + return request({ + url: '/routine/NotificationManagement/' + id, + method: 'post' + }) +} + +// 获取年级列表 +export function getGradeList() { + return request({ + url: '/routine/NotificationManagement/gradeList', + method: 'get' + }) +} + +// 按年级发送通知 +export function sendNotificationByGrades(data) { + return request({ + url: '/routine/NotificationManagement/sendByGrades', + method: 'post', + data: data + }) +} + + + diff --git a/src/views/Home/index-new-blue.vue b/src/views/Home/index-new-blue.vue index 6274453..fd63cce 100644 --- a/src/views/Home/index-new-blue.vue +++ b/src/views/Home/index-new-blue.vue @@ -8,57 +8,57 @@
-
姓名:
+
姓名:
{{ user.nickName }}
-
用户名称:
+
用户名称:
{{ user.userName }}
-
手机号码:
+
手机号码:
{{ user.phonenumber }}
-
用户邮箱:
+
用户邮箱:
{{ user.email }}
-
所属角色:
+
所属角色:
{{ displayRole(roleGroup) }}
-
+
我的消息
-
更多 >
+
更多 >
-
+
{{ v.content }}
-
- +
-
+
公示栏
-
更多 >
+
更多 >
-
+
{{ v.submitterName }}--{{ v.projectName }} -- 审核通过
{{ formatTime(v.createTime) }}
@@ -236,8 +236,107 @@
+ + + +
+ + + + + + + + +
+ +

暂无消息数据

+
+
+
+ + + +
+ + + + + + + + + + + + +
+ +

暂无公示数据

+
+
+
+ + +
+
+
+

消息详情

+
+ {{ formatTime(currentMessageDetail.createTime) }} +
+ +
+
+
+
{{ currentMessageDetail.content || '暂无内容' }}
+
+
+
+
+ + +
+
+
+

公示详情

+
+ {{ formatTime(currentAnnouncementDetail.createTime) }} +
+ +
+
+
+
{{ currentAnnouncementDetail.projectName || '暂无项目名称' }} - {{ currentAnnouncementDetail.submitterName || '暂无提交人' }} - 审核通过
+
+
+
+
+ + \ No newline at end of file diff --git a/src/views/routine/NotificationManagement/index.vue b/src/views/routine/NotificationManagement/index.vue new file mode 100644 index 0000000..70fc32d --- /dev/null +++ b/src/views/routine/NotificationManagement/index.vue @@ -0,0 +1,344 @@ + + +