123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <div class="ll-content" v-loading="loading">
- <h1>{{meetingData.nameCn}}</h1>
- <div class="box">
- <img :src="imageNull" class="bgMeeting" />
- <el-form label-width="200px">
- <el-form-item label="会议名称" class="fz_30">{{meetingData.nameCn}}</el-form-item>
- <el-form-item label="会议时间">{{meetingData.startTime}}</el-form-item>
- <el-form-item label="举办地点">{{meetingData.address}}</el-form-item>
- <el-form-item label="涉及学科">
- <el-tag v-for="(item) in subjectsList" :key="item" style="margin-right:10px">{{item}}</el-tag>
- </el-form-item>
- <el-form-item label="涉及行业">
- <el-tag v-for="(item) in industries" :key="item" style="margin-right:10px">{{item}}</el-tag>
- </el-form-item>
- <el-form-item label="会议负责人">{{this.meetingData.serviceEmp}}</el-form-item>
- <el-form-item label="会议介绍">
- <div class="introduction">{{this.meetingData.introduction}}</div>
- </el-form-item>
- </el-form>
- <div class="code"></div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "",
- data() {
- return {
- id: "",
- meetingData: {},
- subjectsList: [],
- industries: [],
- image: "",
- loading: false
- };
- },
- components: {},
- computed: {
- imageNull() {
- return this.image.includes(",")
- ? "http://121.42.53.174:9008/static" +
- this.image
- .split(",")
- .splice(0, 1)
- .join()
- : "http://121.42.53.174:9008/static" + this.image;
- }
- },
- beforeMount() {},
- created() {},
- activated() {
- this.getMeeting();
- },
- methods: {
- getMeeting() {
- this.loading = true;
- this.id = this.$route.params.id;
- if (this.id) {
- this.$http({
- url: this.$http.adornUrl(`/admin/meeting/info/${this.id}`),
- method: "get",
- params: this.$http.adornParams()
- }).then(res => {
- if (res.data && res.data.code === 0) {
- window.console.log(res.data.meeting);
- this.meetingData = res.data.meeting;
- this.industries = res.data.meeting.industries.split(",");
- this.image = res.data.meeting.titlePicture;
- this.subjectsList = res.data.meeting.subjects.split(",");
- this.loading = false;
- }
- });
- }
- }
- }
- };
- </script>
- <style scoped lang='scss'>
- .ll-content {
- height: 100%;
- width: 100%;
- .box {
- position: relative;
- height: 700px;
- width: 900px;
- margin: 0 auto;
- // border: 1px solid red;
- .bgMeeting {
- display: block;
- width: 630px;
- height: 300px;
- // background-color: red;
- margin: 0 auto;
- }
- .introduction {
- width: 300px;
- }
- }
- }
- </style>
|