|
@@ -161,13 +161,13 @@ export default {
|
|
|
methods: {
|
|
|
//初始化数据
|
|
|
initDataFun() {
|
|
|
- this.getArticleTypeFun(); // 查询:文章分类-父类
|
|
|
// 工种类别
|
|
|
this.engineeringWorkList = [
|
|
|
{ name: '全部', id: '' },
|
|
|
...this.GET_ENGINEERING_WORK_LIST,
|
|
|
];
|
|
|
this.engineeringWorkChooseValue = this.engineeringWorkList[0].id;
|
|
|
+ this.getArticleTypeFun(); // 查询:文章分类-父类
|
|
|
this.getArticleListFun(); // 查询:文章列表数据
|
|
|
},
|
|
|
// 查询:文章分类-父类
|
|
@@ -196,10 +196,7 @@ export default {
|
|
|
)
|
|
|
)
|
|
|
.then((res) => {
|
|
|
- this.articleTypeChildrenList = [
|
|
|
- { name: '全部', id: '' },
|
|
|
- ...res.data,
|
|
|
- ];
|
|
|
+ this.articleTypeChildrenList = res.data;
|
|
|
this.checkedArticleTypeChildren = this.articleTypeChildrenList[0].id;
|
|
|
this.loading = false;
|
|
|
this.initPagination(); // 初始化分页参数
|
|
@@ -213,9 +210,10 @@ export default {
|
|
|
getArticleListFun() {
|
|
|
this.loading = true;
|
|
|
let params = {
|
|
|
- categoryId: this.articleArticleType, // 文章类型-父类ID
|
|
|
- categoryIdChildren: this.checkedArticleTypeChildren, // 文章类型-子类ID
|
|
|
- engineerType: this.engineeringWorkChooseValue, // 工种ID
|
|
|
+ // categoryId: this.articleArticleType, // 文章类型-父类ID
|
|
|
+ // categoryIdChildren: this.checkedArticleTypeChildren, // 文章类型-子类ID
|
|
|
+ categoryid: this.checkedArticleTypeChildren,
|
|
|
+ engineertypeid: this.engineeringWorkChooseValue, // 工种ID
|
|
|
page: this.pagination.current - 1,
|
|
|
size: this.pagination.pageSize,
|
|
|
};
|