inleft
2022-02-09 9bcb19959eeb9da9bde2561e7278f6d0a55eb151
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
63
64
65
66
67
68
69
70
71
72
73
74
75
<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 = false
        this.visible = true
        this.contentRecord = record
      },
 
      /**
       * 查看详情
       */
      sysNoticeDetail (id) {
        sysNoticeDetail({ id: id }).then((res) => {
          this.confirmLoading = false
          this.contentRecord = res.data
        })
      },
 
      handleCancel () {
        this.visible = false
      }
    }
  }
</script>
<style>
  .subButton{
    float: right;
  }
  .subForm-item{
    margin-bottom: 0px;
  }
</style>