From ce7161efb3dc5a1433a932fc23db172e35861dc2 Mon Sep 17 00:00:00 2001 From: penny <2500338766@qq.com> Date: Thu, 23 Jun 2022 22:30:03 +0800 Subject: [PATCH] =?UTF-8?q?feature-img-1.0:=E6=96=B0=E5=A2=9E=E5=85=AC?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/img/notice.js | 55 +++++ src/views/img/notice/index.vue | 433 +++++++++++++++++++++++++++++++++ 2 files changed, 488 insertions(+) create mode 100644 src/api/img/notice.js create mode 100644 src/views/img/notice/index.vue 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 @@ + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + 新增 + + + 删除 + + + + + + + + + + + + {{scope.row.channel == '0' ? "通用" : scope.row.channel == '1' ? "抖音": scope.row.channel == '2' ? "快手": scope.row.channel == '3' ? "微信": ''}} + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + {{ parseTime(scope.row.updateTime) }} + + + + + 修改 + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 将文件拖到此处,或点击上传 + + 仅允许上传jpg,jpeg,png格式图片。 + + + + + + + + + + + + \ No newline at end of file