|
@@ -31,7 +31,7 @@
|
|
|
<el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- 专家问诊
|
|
|
+ <expdetail :detailinfo="expdetail"></expdetail>
|
|
|
</el-col>
|
|
|
</span>
|
|
|
<span v-else-if="column_name == '行业研究'">
|
|
@@ -39,7 +39,7 @@
|
|
|
<el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- 行业研究
|
|
|
+ <inddetail></inddetail>
|
|
|
</el-col>
|
|
|
</span>
|
|
|
<span v-else-if="column_name == '嘉宾访谈'">
|
|
@@ -47,7 +47,7 @@
|
|
|
<el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- 嘉宾访谈
|
|
|
+ <guidetail></guidetail>
|
|
|
</el-col>
|
|
|
</span>
|
|
|
<span v-else-if="column_name == '项目路演'">
|
|
@@ -55,7 +55,7 @@
|
|
|
<el-button type="primary" size="mini" @click="display = 'list'">返回</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
- 项目路演
|
|
|
+ <roadetail></roadetail>
|
|
|
</el-col>
|
|
|
</span>
|
|
|
</span>
|
|
@@ -68,10 +68,17 @@
|
|
|
|
|
|
<script>
|
|
|
import _ from 'lodash';
|
|
|
+// 列表
|
|
|
import exports from './list/export.vue';
|
|
|
import industry from './list/industry.vue';
|
|
|
import guidance from './list/guidance.vue';
|
|
|
import roadshow from './list/roadshow.vue';
|
|
|
+// 详情
|
|
|
+import expdetail from './detail/expdetail.vue';
|
|
|
+import inddetail from './detail/inddetail.vue';
|
|
|
+import guidetail from './detail/guidetail.vue';
|
|
|
+import roadetail from './detail/roadetail.vue';
|
|
|
+
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: column } = createNamespacedHelpers('column');
|
|
|
const { mapActions: news } = createNamespacedHelpers('news');
|
|
@@ -85,6 +92,10 @@ export default {
|
|
|
industry,
|
|
|
guidance,
|
|
|
roadshow,
|
|
|
+ expdetail,
|
|
|
+ inddetail,
|
|
|
+ guidetail,
|
|
|
+ roadetail,
|
|
|
},
|
|
|
data: function() {
|
|
|
return {
|
|
@@ -112,6 +123,8 @@ export default {
|
|
|
// 项目路演
|
|
|
roadshowList: [],
|
|
|
roadshowTotal: 0,
|
|
|
+ // 专家详情
|
|
|
+ expdetail: {},
|
|
|
};
|
|
|
},
|
|
|
async created() {
|
|
@@ -120,7 +133,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...column({ columnList: 'query', columnInfo: 'fetch' }),
|
|
|
- ...news({ newsList: 'query' }),
|
|
|
+ ...news({ newsList: 'query', newsFetch: 'fetch' }),
|
|
|
...newsguidance({ danceQuery: 'query' }),
|
|
|
...newsroadshow({ adshowQuery: 'query' }),
|
|
|
// 查询栏目,列表,详情
|
|
@@ -181,7 +194,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 查看详情
|
|
|
- async searchDetail(columnName, id) {},
|
|
|
+ async searchDetail(columnName, id) {
|
|
|
+ if (columnName == '专家问诊') {
|
|
|
+ let res = await this.newsFetch(id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `expdetail`, res.data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
// 点击查看详情
|
|
|
clickDetail({ column_name, id }) {
|
|
|
this.$set(this, `column_name`, column_name);
|