huangtao 4 years ago
parent
commit
f2baac260b

+ 6 - 8
src/views/articleManagement/articleList.vue

@@ -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,
       };

+ 1 - 1
src/views/examManagement/examManagementList.vue

@@ -253,7 +253,7 @@ export default {
         page: this.pagination.current - 1,
         size: this.pagination.pageSize,
         category: this.checkedExamType, // 考试类型
-        engineertype: this.engineeringWorkChooseValue, // 工种类别
+        engineertypeid: this.engineeringWorkChooseValue, // 工种类别
       };
       this.$_http
         .get(formateUrlParams(this.$_API.INTERFACE_GET_EXAMS, params))

+ 1 - 1
src/views/examManagement/examManualVolumeFormation.vue

@@ -901,7 +901,7 @@ export default {
         size: this.bank_pagination.pageSize,
         type: this.bank_checkedQuestionType,
         categoryid: this.bank_checkedQuestionTypeConditionChildren,
-        engineertype: this.bank_engineeringWorkChooseValue,
+        engineertypeid: this.bank_engineeringWorkChooseValue,
       };
       this.$_http
         .get(this.$_API.INTERFACE_GET_EXAMS_QUESTION_LIST, { params })

+ 1 - 1
src/views/examQuestionManagement/examQuestionList.vue

@@ -300,7 +300,7 @@ export default {
         size: this.pagination.pageSize,
         type: this.checkedExamQuestionType,
         categoryid: this.checkedQuestionConditionChildrenType,
-        engineertype: this.engineeringWorkChoose,
+        engineertypeid: this.engineeringWorkChoose,
       };
       this.$_http
         .get(this.$_API.INTERFACE_GET_EXAMS_QUESTION_LIST, { params })