From a85c078cc802eb4b9341632db2316d8e0653f2f3 Mon Sep 17 00:00:00 2001 From: "aoli.qu" <408346101@qq.com> Date: Wed, 22 Dec 2021 18:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/notice/notice.js | 46 +++++++++++++++++++++++++++++++ src/views/notice/NoticeDetail.vue | 3 ++ 2 files changed, 49 insertions(+) create mode 100644 src/api/notice/notice.js diff --git a/src/api/notice/notice.js b/src/api/notice/notice.js new file mode 100644 index 0000000..fcfe551 --- /dev/null +++ b/src/api/notice/notice.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' + +const noticeApi = { + add: 'notice/addOrUpdate', + del: 'notice/del', + get: 'notice/get', + page: 'notice/pageList', + read: 'notice/read' +} + +export function noticeAdd (params) { + return request({ + url: noticeApi.add, + method: 'post', + data: params + }) +} +export function noticeDel (params) { + return request({ + url: noticeApi.del, + method: 'post', + params: params + }) +} +export function noticeGet (params) { + return request({ + url: noticeApi.get, + method: 'get', + params: params + }) +} +export function noticePage (params) { + return request({ + url: noticeApi.page, + method: 'post', + params: {pageSize: params.pageSize, pageNum: params.pageNum}, + data: params + }) +} +export function noticeRead (params) { + return request({ + url: noticeApi.read, + method: 'get', + params: params + }) +} diff --git a/src/views/notice/NoticeDetail.vue b/src/views/notice/NoticeDetail.vue index f80ed13..71422f7 100644 --- a/src/views/notice/NoticeDetail.vue +++ b/src/views/notice/NoticeDetail.vue @@ -1,5 +1,8 @@