From 3d0c74cc5d206e49b1b49b21493edccb8b5d8348 Mon Sep 17 00:00:00 2001 From: QuAoLi Date: Fri, 11 Mar 2022 17:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=B0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/notice/NoticeForm.vue | 11 +++++++++++ src/views/notice/NoticeList.vue | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/views/notice/NoticeForm.vue b/src/views/notice/NoticeForm.vue index 69d87fc..4ffa16e 100644 --- a/src/views/notice/NoticeForm.vue +++ b/src/views/notice/NoticeForm.vue @@ -79,6 +79,7 @@ 新闻资讯 公告详情 通知 + 必读文件 @@ -98,6 +99,13 @@ + + + + + + + @@ -153,6 +161,7 @@ export default { content: '' }, fileList: [], + fileList2: [], timeShow: true, classHourShow: true, rules: { @@ -189,6 +198,7 @@ export default { // form.publishTime = moment(form.publishTime) this.form = form this.fileList = JSON.parse(res.data.file) + this.fileList2 = JSON.parse(res.data.cover) }) }, save() { @@ -203,6 +213,7 @@ export default { form.isNowPublish = 0 } form.file = JSON.stringify(this.fileList) + form.cover = JSON.stringify(this.fileList2) noticeAdd(form).then(res => { if (res.code === 200) { this.$message.success('操作成功') diff --git a/src/views/notice/NoticeList.vue b/src/views/notice/NoticeList.vue index dc4c6c9..8f61e43 100644 --- a/src/views/notice/NoticeList.vue +++ b/src/views/notice/NoticeList.vue @@ -175,7 +175,8 @@ const typeMap = { 1: '新闻资讯', 2: '公告详情', - 3: '通知' + 3: '通知', + 4: '必读公告' } return typeMap[type] },