NoticeDetails.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <div class="details-container">
  3. <div class="notice-header">
  4. <p class="title">
  5. <span class="content-title">关于开展2019年高新区智慧课堂第二次研讨活动的通知</span></p>
  6. <p class="sub">2019-04-11&nbsp;&nbsp;&nbsp;月月研讨&nbsp;&nbsp;&nbsp;点击量:0</p>
  7. </div>
  8. <div class="content" v-html="noticeContent">
  9. </div>
  10. <Button type="primary" @click="backList">返回列表</Button>
  11. </div>
  12. </template>
  13. <script>
  14. import noticeDetails from '@/static/noticeDetails.json'
  15. export default {
  16. components: {
  17. },
  18. data() {
  19. return {
  20. reviewAcList: [],
  21. attachmentsList: [],
  22. noticeContent: {}
  23. }
  24. },
  25. created() {
  26. //根据跳转参数获取通知详情
  27. //let noticeId = this.$route.query.id;
  28. //this.$get('http://ttkt.sxedu.org:70/webservice/bizNoticeItem.action?id=' + noticeId + '&nocache=1&_=1557315901157').then(res => {
  29. // console.log(res.data.noticeTypeName);
  30. //})
  31. this.noticeContent = noticeDetails.data.content;
  32. },
  33. methods: {
  34. backList() {
  35. this.$router.go(-1);
  36. }
  37. },
  38. mounted() {
  39. }
  40. }
  41. </script>
  42. <style scoped>
  43. html, body, #app {
  44. height: 100% !important;
  45. user-select: none;
  46. }
  47. .main-content {
  48. background: rgb(248,248,248) !important;
  49. }
  50. .center-row {
  51. display:flex;
  52. flex-direction:row;
  53. }
  54. .center-col {
  55. display:flex;
  56. flex-direction:column;
  57. }
  58. .details-container {
  59. position:relative;
  60. width: 1200px;
  61. margin: 100px auto;
  62. padding:36px 30px 30px;
  63. background:#fff;
  64. display: flex;
  65. flex-direction: column;
  66. }
  67. .notice-header {
  68. text-align:center;
  69. }
  70. .notice-header .content-title {
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. white-space: nowrap;
  74. width: 600px;
  75. display: inline-block;
  76. font-size: 20px;
  77. color: #222;
  78. }
  79. .notice-header .sub {
  80. font-size: 14px;
  81. color: #999;
  82. padding-top: 12px;
  83. padding-bottom: 10px;
  84. margin-bottom: 24px;
  85. border-bottom: 1px solid #f6f6f6;
  86. }
  87. .details-container .ivu-btn {
  88. width:150px;
  89. margin:10px auto;
  90. }
  91. </style>