diff --git a/src/views/notice/NoticeDetail.vue b/src/views/notice/NoticeDetail.vue index 73a4a87..9037955 100644 --- a/src/views/notice/NoticeDetail.vue +++ b/src/views/notice/NoticeDetail.vue @@ -19,10 +19,13 @@
-
- - 附件下载 - + +
+ 附件下载 + +
@@ -80,6 +83,7 @@ export default { readCount: 0, unreadCount: 0, noticeRange: 1, + fileList: [], // 表头 columns1: [ { @@ -138,12 +142,12 @@ export default { close () { this.$router.push({ path: '/notice/list', query: { noticeRange: this.noticeRange } }) }, - getDetail (id) { - noticeGet({ id: id }).then(res => { + async getDetail (id) { + await noticeGet({ id: id }).then(res => { this.model = res.data const fileArr = JSON.parse(res.data.file) if (fileArr.length > 0) { - this.path = fileArr[0].url + this.fileList = fileArr } }) }, @@ -182,4 +186,8 @@ export default { .article-body { margin-top: 15px; } +.down-class { + width: 50%; + margin-top: 20px; +}