后端

meeting.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div class="ll-content" v-loading="loading">
  3. <h1>{{meetingData.nameCn}}</h1>
  4. <div class="box">
  5. <img :src="imageNull" class="bgMeeting" />
  6. <el-form label-width="200px">
  7. <el-form-item label="会议名称" class="fz_30">{{meetingData.nameCn}}</el-form-item>
  8. <el-form-item label="会议时间">{{meetingData.startTime}}</el-form-item>
  9. <el-form-item label="举办地点">{{meetingData.address}}</el-form-item>
  10. <el-form-item label="涉及学科">
  11. <el-tag v-for="(item) in subjectsList" :key="item" style="margin-right:10px">{{item}}</el-tag>
  12. </el-form-item>
  13. <el-form-item label="涉及行业">
  14. <el-tag v-for="(item) in industries" :key="item" style="margin-right:10px">{{item}}</el-tag>
  15. </el-form-item>
  16. <el-form-item label="会议负责人">{{this.meetingData.serviceEmp}}</el-form-item>
  17. <el-form-item label="会议介绍">
  18. <div class="introduction">{{this.meetingData.introduction}}</div>
  19. </el-form-item>
  20. </el-form>
  21. <div class="code"></div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: "",
  28. data() {
  29. return {
  30. id: "", //会议id
  31. meetingData: {},
  32. subjectsList: [],
  33. industries: [],
  34. image: "",
  35. loading: false
  36. };
  37. },
  38. components: {},
  39. computed: {
  40. imageNull() {
  41. return this.image.includes(",")
  42. ? "http://121.42.53.174:9008/static" +
  43. this.image
  44. .split(",")
  45. .splice(0, 1)
  46. .join()
  47. : "http://121.42.53.174:9008/static" + this.image;
  48. }
  49. },
  50. beforeMount() {},
  51. created() {},
  52. activated() {
  53. this.getMeeting();
  54. },
  55. methods: {
  56. getMeeting() {
  57. this.loading = true;
  58. this.id = this.$route.params.id;
  59. if (this.id) {
  60. this.$http({
  61. url: this.$http.adornUrl(`/admin/meeting/info/${this.id}`),
  62. method: "get",
  63. params: this.$http.adornParams()
  64. }).then(res => {
  65. if (res.data && res.data.code === 0) {
  66. window.console.log(res.data.meeting);
  67. this.meetingData = res.data.meeting;
  68. this.industries = res.data.meeting.industries.split(",");
  69. this.image = res.data.meeting.titlePicture;
  70. this.subjectsList = res.data.meeting.subjects.split(",");
  71. this.loading = false;
  72. }
  73. });
  74. }
  75. }
  76. }
  77. };
  78. </script>
  79. <style scoped lang='scss'>
  80. .ll-content {
  81. height: 100%;
  82. width: 100%;
  83. .box {
  84. position: relative;
  85. height: 700px;
  86. width: 900px;
  87. margin: 0 auto;
  88. // border: 1px solid red;
  89. .bgMeeting {
  90. display: block;
  91. width: 630px;
  92. height: 300px;
  93. // background-color: red;
  94. margin: 0 auto;
  95. }
  96. .introduction {
  97. width: 300px;
  98. }
  99. }
  100. }
  101. </style>