|
@@ -1,30 +1,6 @@
|
|
|
<template>
|
|
|
<div id="technical">
|
|
|
<el-col :span="24" class="main">
|
|
|
- <!-- <el-col :span="12" class="left">
|
|
|
- <el-col :span="24" class="downLeftTop">
|
|
|
- <el-image :src="downLeftTopImage"></el-image>
|
|
|
- <span class="topText">
|
|
|
- <span>专题研讨</span>
|
|
|
- <span
|
|
|
- ><p>S</p>
|
|
|
- <p>eminar</p></span
|
|
|
- >
|
|
|
- <span @click="turnToList('专题研讨')">更多</span>
|
|
|
- </span>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="infoLeft">
|
|
|
- <el-col class="infoLeftList" :span="24" v-for="(item, index) in zhuantiList" :key="index">
|
|
|
- <p>{{ item.publish_time }}</p>
|
|
|
- <p>
|
|
|
- <span @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 2, column_name: '专题研讨' } })" class="textOver">{{
|
|
|
- item.title
|
|
|
- }}</span>
|
|
|
- <span>{{ item.titlejj }}</span>
|
|
|
- </p>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- </el-col> -->
|
|
|
<el-col :span="12" class="left">
|
|
|
<el-col :span="24" class="downLeftTop">
|
|
|
<el-image :src="downLeftTopImage"></el-image>
|
|
@@ -39,7 +15,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="infoLeft">
|
|
|
<el-col :span="24" class="infoLeft">
|
|
|
- <el-col class="infoLeftList" :span="24" v-for="(item, index) in jishuList" :key="index">
|
|
|
+ <el-col class="infoLeftList" :span="24" v-for="(item, index) in zhuanjiaList" :key="index">
|
|
|
<p>{{ item.publish_time }}</p>
|
|
|
<p></p>
|
|
|
<p>
|
|
@@ -50,16 +26,6 @@
|
|
|
</p>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
-
|
|
|
- <!--
|
|
|
- <el-col class="infoRightList" :span="24" v-for="(item, index) in jishuList" :key="index">
|
|
|
- <p>
|
|
|
- <span class="textOver" @click="$router.push({ path: '/technical/list', query: { id: item.id, display: 3, column_name: '专家问诊' } })">{{
|
|
|
- item.title
|
|
|
- }}</span
|
|
|
- ><span class="textOver">{{ item.publish_time }}</span>
|
|
|
- </p>
|
|
|
- </el-col> -->
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="right">
|
|
@@ -144,6 +110,8 @@ import _ from 'lodash';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: column } = createNamespacedHelpers('column');
|
|
|
const { mapActions: news } = createNamespacedHelpers('news');
|
|
|
+const { mapActions: newsguidance } = createNamespacedHelpers('newsguidance');
|
|
|
+const { mapActions: newsroadshow } = createNamespacedHelpers('newsroadshow');
|
|
|
export default {
|
|
|
name: 'technical',
|
|
|
props: {},
|
|
@@ -151,10 +119,8 @@ export default {
|
|
|
data: () => ({
|
|
|
downLeftTopImage: require('@/assets/live/square_big.png'),
|
|
|
jishuImage: require('@/assets/live/main3.png'),
|
|
|
- zhuantiList: [],
|
|
|
- jishuList: [],
|
|
|
+ zhuanjiaList: [],
|
|
|
hangyeList: [],
|
|
|
- jiaoyuList: [],
|
|
|
zhidaolist: [],
|
|
|
luyanlist: [],
|
|
|
}),
|
|
@@ -173,6 +139,8 @@ export default {
|
|
|
methods: {
|
|
|
...column({ columnList: 'query', columnInfo: 'fetch' }),
|
|
|
...news({ newsList: 'query' }),
|
|
|
+ ...newsguidance({ danceQuery: 'query' }),
|
|
|
+ ...newsroadshow({ adshowQuery: 'query' }),
|
|
|
async searchInfo({ ...info } = {}) {
|
|
|
const res = await this.columnList({ ...info });
|
|
|
for (const val of res.data) {
|
|
@@ -180,20 +148,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async tpxwSearch({ column_id, column_name, site } = {}) {
|
|
|
- if (column_name == '专题研讨') {
|
|
|
- const res = await this.newsList({ skip: 0, limit: 5, column_id: column_id });
|
|
|
- if (this.$checkRes(res)) this.$set(this, `zhuantiList`, res.data);
|
|
|
- } else if (column_name == '专家问诊') {
|
|
|
+ if (column_name == '专家问诊') {
|
|
|
const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
|
|
|
- if (this.$checkRes(res)) this.$set(this, `jishuList`, res.data);
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `zhuanjiaList`, res.data);
|
|
|
} else if (column_name == '行业研究') {
|
|
|
const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
|
|
|
if (this.$checkRes(res)) this.$set(this, `hangyeList`, res.data);
|
|
|
} else if (column_name == '在线指导') {
|
|
|
- const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
|
|
|
+ const res = await this.danceQuery({ skip: 0, limit: 8, column_id: column_id });
|
|
|
if (this.$checkRes(res)) this.$set(this, `zhidaolist`, res.data);
|
|
|
} else if (column_name == '项目路演') {
|
|
|
- const res = await this.newsList({ skip: 0, limit: 5, column_id: column_id });
|
|
|
+ const res = await this.adshowQuery({ skip: 0, limit: 5, column_id: column_id });
|
|
|
if (this.$checkRes(res)) this.$set(this, `luyanlist`, res.data);
|
|
|
}
|
|
|
},
|