diff --git a/src/api/img/notice.js b/src/api/img/notice.js new file mode 100644 index 0000000..ec284be --- /dev/null +++ b/src/api/img/notice.js @@ -0,0 +1,55 @@ +import request from '@/utils/request' + +// 查询公告分页列表 +export function listNotice(data) { + return request({ + url: '/img/img/notice/page', + method: 'post', + data: data + }) +} + +// 新增公告 +export function addNotice(data) { + return request({ + url: '/img/img/notice/insert', + method: 'post' , + data: data + }) +} + +// 修改公告 +export function editNotice(data) { + return request({ + url: '/img/img/notice/update', + method: 'post' , + data: data + }) +} + +// 删除公告 +export function delNotice(ids) { + return request({ + url: '/img/img/notice/delete/' + ids, + method: 'delete' + }) +} + +// 获取公告详情 +export function getNoticeDetails(id) { + return request({ + url: '/img/img/notice/details/' + id, + method: 'get' + }) +} + +// 变更类型显示状态 +export function changeStatus(data) { + return request({ + url: '/img/img/notice/changeStatus', + method: 'post' , + data: data + }) +} + + diff --git a/src/views/img/notice/index.vue b/src/views/img/notice/index.vue new file mode 100644 index 0000000..232b49c --- /dev/null +++ b/src/views/img/notice/index.vue @@ -0,0 +1,433 @@ + + + \ No newline at end of file