questionInfo.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div id="questionInfo">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <el-col :span="24" class="title textOver">
  6. {{ info.title }}
  7. </el-col>
  8. <el-col :span="24" class="other">
  9. <span>发布时间:{{ info.create_date || '暂无' }}</span>
  10. <span>信息来源:{{ info.origin || '暂无' }}</span>
  11. </el-col>
  12. <el-col :span="24" class="image">
  13. <el-image :src="info.img_path"></el-image>
  14. </el-col>
  15. <el-col :span="24" class="content">
  16. <p v-html="info.content"></p>
  17. </el-col>
  18. <el-col :span="24" class="link">
  19. <el-link :href="info.file_path" :underline="false">附件下载</el-link>
  20. </el-col>
  21. </el-col>
  22. </el-row>
  23. </div>
  24. </template>
  25. <script>
  26. import { mapState, createNamespacedHelpers } from 'vuex';
  27. export default {
  28. name: 'questionInfo',
  29. props: {
  30. info: { type: Object },
  31. },
  32. components: {},
  33. data: function() {
  34. return {};
  35. },
  36. created() {},
  37. methods: {},
  38. computed: {
  39. ...mapState(['user']),
  40. },
  41. watch: {},
  42. };
  43. </script>
  44. <style lang="less" scoped>
  45. .main {
  46. .title {
  47. font-size: 25px;
  48. padding: 15px 0;
  49. text-align: center;
  50. color: #005293;
  51. }
  52. .other {
  53. text-align: center;
  54. font-size: 18px;
  55. margin: 0 0 15px 0;
  56. span {
  57. padding: 0 10px;
  58. }
  59. }
  60. .image {
  61. text-align: center;
  62. height: 300px;
  63. margin: 0 0 15px 0;
  64. .el-image {
  65. width: 50%;
  66. height: 300px;
  67. overflow: hidden;
  68. }
  69. }
  70. .content {
  71. margin: 0 0 15px 0;
  72. }
  73. .link {
  74. margin: 0 0 15px 0;
  75. .el-link {
  76. font-size: 16px;
  77. }
  78. }
  79. }
  80. </style>