detailForm.vue 1.5 KB

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