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]
},