1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
| <template>
| <a-modal
| title="通知公告详情"
| :width="1000"
| :confirmLoading="confirmLoading"
| :visible="visible"
| :footer="null"
| @cancel="handleCancel">
| <a-spin :spinning="confirmLoading">
| <div style="text-align: center;font-size: 30px">{{ this.contentRecord.title }}</div>
| <br>
| <div style="text-align: right;font-size: 10px">
| <span>(发布人:{{ this.contentRecord.publicUserName }})</span>
| <span>发布时间:{{ this.contentRecord.publicTime }} </span>
| </div>
| <a-divider style="margin-top: 5px" />
| <div>
| <label v-html="this.contentRecord.content"></label>
| </div>
| </a-spin>
| </a-modal>
| </template>
| <script>
| import {
| sysNoticeDetail
| } from '@/api/modular/system/noticeManage'
|
| export default {
| name: 'DetailForm',
| components: {},
| data() {
| return {
| visible: false,
| confirmLoading: false,
| contentRecord: {}
| }
| },
| methods: {
| // 初始化方法
| detail(record) {
| this.confirmLoading = true
| this.visible = true
| this.sysNoticeDetail(record.id)
| },
| /**
| * 查看详情
| */
| sysNoticeDetail(id) {
| sysNoticeDetail({
| id: id
| }).then((res) => {
| this.confirmLoading = false
| this.contentRecord = res.data
| })
| },
| handleCancel() {
| this.visible = false
| this.contentRecord = {}
| }
| }
| }
| </script>
|
|