info-1.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div id="info-1">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="one">
  6. {{ info.title }}
  7. </el-col>
  8. <el-col :span="24" class="two">
  9. <span>
  10. 信息来源:<span>{{ info.origin }}</span>
  11. </span>
  12. <span>
  13. 发布时间:<span>{{ info.create_time }}</span>
  14. </span>
  15. </el-col>
  16. <el-col :span="24" class="thr">
  17. <p v-html="info.content"></p>
  18. </el-col>
  19. <el-col :span="24" class="four" v-if="info.file_url && info.file_url.length > 0">
  20. <el-col :span="24" class="four_1">附件</el-col>
  21. <el-col :span="24" class="four_2">
  22. <el-link :underline="false" :href="item.uri" target="_blank" v-for="(item, index) in info.file_url" :key="index">{{ item.name }}</el-link>
  23. </el-col>
  24. </el-col>
  25. </el-col>
  26. </el-row>
  27. </div>
  28. </template>
  29. <script>
  30. import { mapState, createNamespacedHelpers } from 'vuex';
  31. export default {
  32. name: 'info-1',
  33. props: {
  34. info: { type: Object },
  35. },
  36. components: {},
  37. data: function () {
  38. return {};
  39. },
  40. created() {},
  41. methods: {},
  42. computed: {
  43. ...mapState(['user']),
  44. },
  45. metaInfo() {
  46. return { title: this.$route.meta.title };
  47. },
  48. watch: {
  49. test: {
  50. deep: true,
  51. immediate: true,
  52. handler(val) {},
  53. },
  54. },
  55. };
  56. </script>
  57. <style lang="less" scoped>
  58. .main {
  59. .one {
  60. text-align: center;
  61. font-size: 20px;
  62. margin: 15px 0;
  63. }
  64. .two {
  65. text-align: center;
  66. margin: 0 0 15px 0;
  67. span {
  68. font-size: 14px;
  69. color: #858585;
  70. span {
  71. color: #000000;
  72. }
  73. }
  74. }
  75. .thr {
  76. margin: 0 0 15px 0;
  77. }
  78. .four {
  79. .four_1 {
  80. font-weight: bold;
  81. margin: 0 0 5px 0;
  82. }
  83. }
  84. }
  85. </style>