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 }} + + + + 全校 + 全体教员 + 指定部别 + + + + + + + + + +