|
@@ -25,7 +25,7 @@
|
|
<el-col :span="24" class="leftTop">
|
|
<el-col :span="24" class="leftTop">
|
|
<span>|</span> <span>{{ menuName }}</span>
|
|
<span>|</span> <span>{{ menuName }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col class="infoRightList" :span="24" v-for="(item, index) in hangyeList" :key="index">
|
|
|
|
|
|
+ <el-col class="infoRightList" :span="24" v-for="(item, index) in jishuList" :key="index">
|
|
<p>
|
|
<p>
|
|
<span class="textOver" @click="clickjishu(item.id)">{{ item.title }}</span
|
|
<span class="textOver" @click="clickjishu(item.id)">{{ item.title }}</span
|
|
><span class="textOver">{{ item.publish_time }}</span>
|
|
><span class="textOver">{{ item.publish_time }}</span>
|
|
@@ -47,7 +47,7 @@
|
|
<el-col :span="24" class="leftTop">
|
|
<el-col :span="24" class="leftTop">
|
|
<span>|</span> <span>{{ menuName }}</span>
|
|
<span>|</span> <span>{{ menuName }}</span>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col class="infoLeftList" :span="24" v-for="(item, index) in zhuantiList" :key="index">
|
|
|
|
|
|
+ <el-col class="infoLeftList" :span="24" v-for="(item, index) in jiaoyuList" :key="index">
|
|
<p>{{ item.publish_time }}</p>
|
|
<p>{{ item.publish_time }}</p>
|
|
<p>
|
|
<p>
|
|
<span class="textOver" @click="clickjiaoyu(item.id)">{{ item.title }}</span>
|
|
<span class="textOver" @click="clickjiaoyu(item.id)">{{ item.title }}</span>
|
|
@@ -123,18 +123,17 @@ export default {
|
|
this.menuIndex = index;
|
|
this.menuIndex = index;
|
|
this.menuColor = 'rgb(254, 149, 14)';
|
|
this.menuColor = 'rgb(254, 149, 14)';
|
|
this.menuName = name;
|
|
this.menuName = name;
|
|
- console.log(name);
|
|
|
|
this.initList({ name });
|
|
this.initList({ name });
|
|
},
|
|
},
|
|
async initList({ name, skip = 0, limit = 10, ...info } = {}) {
|
|
async initList({ name, skip = 0, limit = 10, ...info } = {}) {
|
|
let res = [];
|
|
let res = [];
|
|
- console.log(name);
|
|
|
|
if (name == '专题研讨') {
|
|
if (name == '专题研讨') {
|
|
this.pageSize = 5;
|
|
this.pageSize = 5;
|
|
res = await this.query({ skip, limit, column_name: '专题研讨', ...info });
|
|
res = await this.query({ skip, limit, column_name: '专题研讨', ...info });
|
|
this.$set(this, `zhuantiList`, res.data);
|
|
this.$set(this, `zhuantiList`, res.data);
|
|
} else if (name == '技术问答') {
|
|
} else if (name == '技术问答') {
|
|
res = await this.query({ skip, limit, column_name: '技术问答', ...info });
|
|
res = await this.query({ skip, limit, column_name: '技术问答', ...info });
|
|
|
|
+ console.log(res);
|
|
this.$set(this, `jishuList`, res.data);
|
|
this.$set(this, `jishuList`, res.data);
|
|
} else if (name == '行业研究') {
|
|
} else if (name == '行业研究') {
|
|
res = await this.query({ skip, limit, column_name: '行业研究', ...info });
|
|
res = await this.query({ skip, limit, column_name: '行业研究', ...info });
|
|
@@ -144,13 +143,9 @@ export default {
|
|
res = await this.query({ skip, limit, column_name: '教育培训', ...info });
|
|
res = await this.query({ skip, limit, column_name: '教育培训', ...info });
|
|
this.$set(this, `jiaoyuList`, res.data);
|
|
this.$set(this, `jiaoyuList`, res.data);
|
|
}
|
|
}
|
|
- console.log(res);
|
|
|
|
-
|
|
|
|
this.$set(this, `pageTotal`, res.total);
|
|
this.$set(this, `pageTotal`, res.total);
|
|
},
|
|
},
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
- console.log(`当前页: ${val}`);
|
|
|
|
- console.log(this.menuName);
|
|
|
|
const name = this.menuName;
|
|
const name = this.menuName;
|
|
if (name == '专题研讨' || name == '教育培训') {
|
|
if (name == '专题研讨' || name == '教育培训') {
|
|
this.limit = 5;
|
|
this.limit = 5;
|