NoticeDetail.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <style lang="scss" scoped>
  2. .el-row{
  3. margin-bottom:20px;
  4. }
  5. </style>
  6. <template>
  7. <section>
  8. <p><span>信息管理></span>消息详情</p>
  9. <div class="content">
  10. <el-row :gutter="10">
  11. <el-col :span="1">标 题:</el-col>
  12. <el-col :span="22">{{form.name}}</el-col>
  13. </el-row>
  14. <el-row :gutter="10">
  15. <el-col :span="1">内 容:</el-col>
  16. <el-col :span="22" v-html="form.content">{{form.content}}</el-col>
  17. </el-row>
  18. <el-row :gutter="10">
  19. <el-col :span="1">附 件:</el-col>
  20. <el-col :span="22">
  21. <a style="margin-right:20px;" v-for="(item,index) in form.fileurl" :key="index" :href="item.url" target="__blank">{{item.name}}</a>
  22. </el-col>
  23. </el-row>
  24. <el-row :gutter="10">
  25. <el-col :span="1">时 间:</el-col>
  26. <el-col :span="22">{{form.ctime}}</el-col>
  27. </el-row>
  28. </div>
  29. </section>
  30. </template>
  31. <script>
  32. export default {
  33. components: {
  34. },
  35. data() {
  36. return {
  37. form:{}
  38. }
  39. },
  40. methods:{
  41. getData(){
  42. let _this = this;
  43. let id = this.$route.query.id;
  44. this.$api.getNoticeInfo({id:id}).then(res=>{
  45. _this.form = res.data.data;
  46. })
  47. }
  48. },
  49. created() {
  50. this.getData();
  51. },
  52. };
  53. </script>