|
|
@@ -28,15 +28,15 @@
|
|
|
<div class="gray font_size14 typeName">学习阶段:</div>
|
|
|
<div class="flex_1 gap10">
|
|
|
<div class="font_size14 typeItem" :class="{'active':searchFom.studyStage === ''}"
|
|
|
- @click="searchFom.studyStage === '';getList('init');"
|
|
|
+ @click="searchFom.studyStage = '';getList('init');"
|
|
|
:key="-1">
|
|
|
全部
|
|
|
</div>
|
|
|
<div class="font_size14 typeItem"
|
|
|
- v-for="item in bus_study_stage" :key="item.studyStage"
|
|
|
- :class="{'active':searchFom.studyStage === item.studyStage}"
|
|
|
- @click="searchFom.categoryId2 = item.categoryId;searchFom.categoryId3 = '';categoryListTree2=[]; getList('init');getCategoryListTreeFn2();">
|
|
|
- {{item.categoryName}}
|
|
|
+ v-for="item in bus_study_stage" :key="item.dictValue"
|
|
|
+ :class="{'active':searchFom.studyStage === item.dictValue}"
|
|
|
+ @click="searchFom.studyStage = item.dictValue;getList('init');">
|
|
|
+ {{item.dictLabel}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -44,15 +44,15 @@
|
|
|
<div class="gray font_size14 typeName">教程分类:</div>
|
|
|
<div class="flex_1 gap10">
|
|
|
<div class="font_size14 typeItem" :class="{'active':searchFom.courseCategory === ''}"
|
|
|
- @click="searchFom.courseCategory === '';getList('init');"
|
|
|
+ @click="searchFom.courseCategory = '';getList('init');"
|
|
|
:key="-1">
|
|
|
全部
|
|
|
</div>
|
|
|
<div class="font_size14 typeItem"
|
|
|
- v-for="item in bus_course_category" :key="item.courseCategory"
|
|
|
- :class="{'active':searchFom.courseCategory === item.courseCategory}"
|
|
|
- @click="getList('init');">
|
|
|
- {{item.categoryName}}
|
|
|
+ v-for="item in bus_course_category" :key="item.dictValue"
|
|
|
+ :class="{'active':searchFom.courseCategory === item.dictValue}"
|
|
|
+ @click="searchFom.courseCategory = item.dictValue;getList('init');">
|
|
|
+ {{item.dictLabel}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -65,10 +65,10 @@
|
|
|
全部
|
|
|
</div>
|
|
|
<div class="font_size14 typeItem"
|
|
|
- v-for="item in bus_skill_tag" :key="item.skillTag"
|
|
|
- :class="{'active':searchFom.skillTag === item.skillTag}"
|
|
|
- @click="searchFom.skillTag = item.skillTag; getList('init');">
|
|
|
- {{item.categoryName}}
|
|
|
+ v-for="item in bus_skill_tag" :key="item.dictValue"
|
|
|
+ :class="{'active':searchFom.skillTag === item.dictValue}"
|
|
|
+ @click="searchFom.skillTag = item.dictValue; getList('init');">
|
|
|
+ {{item.dictLabel}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -124,7 +124,8 @@
|
|
|
import Pagination from '@/components/Pagination.vue'
|
|
|
|
|
|
import { getCategoryListTree } from '@/api/category.js'
|
|
|
- import { getCourseList, getDictType } from '@/api/course.js'
|
|
|
+ import { getCourseList } from '@/api/course.js'
|
|
|
+ import { getDictType } from '@/api/common.js'
|
|
|
|
|
|
import { isLogin } from '@/utils/util.js'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
@@ -215,14 +216,24 @@
|
|
|
})
|
|
|
};
|
|
|
|
|
|
- //// 获取课程标签
|
|
|
-//学习阶段 bus_study_stage
|
|
|
-//教程分类 bus_course_category
|
|
|
-//技能标签 bus_skill_tag
|
|
|
+ // 获取课程标签
|
|
|
+ //学习阶段 bus_study_stage
|
|
|
+ //教程分类 bus_course_category
|
|
|
+ //技能标签 bus_skill_tag
|
|
|
const getDictTypeFn = (dictType) => {
|
|
|
getDictType({dictType}).then(res => {
|
|
|
console.log(res)
|
|
|
- [dictType].value = res.rows || [];
|
|
|
+ switch (dictType) {
|
|
|
+ case 'bus_study_stage':
|
|
|
+ bus_study_stage.value = res.rows || [];
|
|
|
+ break;
|
|
|
+ case 'bus_course_category':
|
|
|
+ bus_course_category.value = res.rows || [];
|
|
|
+ break;
|
|
|
+ case 'bus_skill_tag':
|
|
|
+ bus_skill_tag.value = res.rows || [];
|
|
|
+ break;
|
|
|
+ }
|
|
|
})
|
|
|
};
|
|
|
|