From a0d5a3b0fe7381f4cdb8d9603355ab8e32c66418 Mon Sep 17 00:00:00 2001 From: liweijie Date: Fri, 18 Sep 2026 10:50:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=AD=A6=E5=85=AC=E5=91=8A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=91=E5=B8=83=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/teachNotice.js | 18 ++++ frontend/src/views/teachNotice/index.vue | 103 ++++++++++++++++++++++- 2 files changed, 117 insertions(+), 4 deletions(-) diff --git a/frontend/src/api/teachNotice.js b/frontend/src/api/teachNotice.js index ff5c4800..35cd0580 100644 --- a/frontend/src/api/teachNotice.js +++ b/frontend/src/api/teachNotice.js @@ -44,4 +44,22 @@ export function delTeachNotice(Id) { method: 'post', params: { Id } }) +} + +// 发布或重新发布公告:{id, scopeType: ALL|ALL_TEACHERS|DEPARTMENTS, departmentIds?} +export function publishTeachNotice(data) { + return request({ + url: '/notice-announcement/publish', + method: 'post', + data: data + }) +} + +// 下架已发布公告 +export function downTeachNotice(id) { + return request({ + url: '/notice-announcement/down', + method: 'post', + data: { id } + }) } \ No newline at end of file diff --git a/frontend/src/views/teachNotice/index.vue b/frontend/src/views/teachNotice/index.vue index 5f6bc26e..42bce646 100644 --- a/frontend/src/views/teachNotice/index.vue +++ b/frontend/src/views/teachNotice/index.vue @@ -90,13 +90,22 @@ @click="handleView(scope.row)" >详情 修改 发布 + 关 闭 + + + + + + {{ publishRow.title }} + + + + 全校 + 全体教员 + 指定部别 + + + + + + + + + +