|
|
@ -136,7 +136,11 @@ export default { |
|
|
|
// 公告列表 |
|
|
|
// 公告列表 |
|
|
|
getNotice() { |
|
|
|
getNotice() { |
|
|
|
this.$post(`${this.api.queryAnnouncementByContestId}?pageNum=1&pageSize=1000&contestId=${this.form.id}`).then(({ data }) => { |
|
|
|
this.$post(`${this.api.queryAnnouncementByContestId}?pageNum=1&pageSize=1000&contestId=${this.form.id}`).then(({ data }) => { |
|
|
|
this.notices = data.records.filter(e => e.status) // 只显示已发布的(status 0草稿 1为已发布) |
|
|
|
const records = data.records.filter(e => e.status) // 只显示已发布的(status 0草稿 1为已发布) |
|
|
|
|
|
|
|
records.map(e => { |
|
|
|
|
|
|
|
e.announcementText = e.announcementText.replace(/<img.*?(?:>|\/>)/gi, '') |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.notices = records |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => {}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 预览附件 |
|
|
|
// 预览附件 |
|
|
|