|
@@ -18,7 +18,7 @@
|
|
<p>{{ item.publish_time }}</p>
|
|
<p>{{ item.publish_time }}</p>
|
|
<p>
|
|
<p>
|
|
<span @click="$router.push({ path: '/live/semDetail', query: { id: item.id } })" class="textOver">{{ item.title }}</span>
|
|
<span @click="$router.push({ path: '/live/semDetail', query: { id: item.id } })" class="textOver">{{ item.title }}</span>
|
|
- <span>{{ item.content }}</span>
|
|
|
|
|
|
+ <span>{{ item.titlejj }}</span>
|
|
</p>
|
|
</p>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -85,7 +85,7 @@
|
|
<p>{{ item.publish_time }}</p>
|
|
<p>{{ item.publish_time }}</p>
|
|
<p>
|
|
<p>
|
|
<span class="textOver" @click="$router.push({ path: '/live/eduDetail', query: { id: item.id } })">{{ item.title }}</span>
|
|
<span class="textOver" @click="$router.push({ path: '/live/eduDetail', query: { id: item.id } })">{{ item.title }}</span>
|
|
- <span>{{ item.content }}</span>
|
|
|
|
|
|
+ <span>{{ item.titlejj }}</span>
|
|
</p>
|
|
</p>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -97,6 +97,7 @@
|
|
<script>
|
|
<script>
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions: column } = createNamespacedHelpers('column');
|
|
const { mapActions: news } = createNamespacedHelpers('news');
|
|
const { mapActions: news } = createNamespacedHelpers('news');
|
|
export default {
|
|
export default {
|
|
name: 'technical',
|
|
name: 'technical',
|
|
@@ -123,16 +124,28 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
- ...news(['query']),
|
|
|
|
- async searchInfo() {
|
|
|
|
- let res = await this.query({ skip: 0, limit: 5, column_name: '专题研讨' });
|
|
|
|
- if (this.$checkRes(res)) this.$set(this, `zhuantiList`, res.data);
|
|
|
|
- res = await this.query({ skip: 0, limit: 8, column_name: '技术问答' });
|
|
|
|
- if (this.$checkRes(res)) this.$set(this, `jishuList`, res.data);
|
|
|
|
- res = await this.query({ skip: 0, limit: 8, column_name: '行业研究' });
|
|
|
|
- if (this.$checkRes(res)) this.$set(this, `hangyeList`, res.data);
|
|
|
|
- res = await this.query({ skip: 0, limit: 5, column_name: '教育培训' });
|
|
|
|
- if (this.$checkRes(res)) this.$set(this, `jiaoyuList`, res.data);
|
|
|
|
|
|
+ ...column({ columnList: 'query', columnInfo: 'fetch' }),
|
|
|
|
+ ...news({ newsList: 'query' }),
|
|
|
|
+ async searchInfo({ ...info } = {}) {
|
|
|
|
+ const res = await this.columnList({ ...info });
|
|
|
|
+ for (const val of res.data) {
|
|
|
|
+ this.tpxwSearch({ column_id: val.id, column_name: val.name, site: val.site });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ 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 == '专家问诊') {
|
|
|
|
+ const res = await this.newsList({ skip: 0, limit: 8, column_id: column_id });
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `jishuList`, 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: 5, column_id: column_id });
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `jiaoyuList`, res.data);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
turnToList(column_name) {
|
|
turnToList(column_name) {
|
|
this.$router.push({ path: '/technical/list', query: { column_name: column_name } });
|
|
this.$router.push({ path: '/technical/list', query: { column_name: column_name } });
|