Commit 827a0c08 authored by 刘怀志's avatar 刘怀志

暂存

parent 827d2bed
......@@ -59,7 +59,7 @@ const user = {
state.businessId = businessId
},
SET_USERTYPE: (state, userType) => {
state.userType = userType
state.userType = null
}
},
......
......@@ -4,5 +4,6 @@ export default {
'JOB_CLASSIFY': 'job_classify', // 岗位分类
'CLASS_PLAN': 'class_plan', // 课程方案
'TEC_CLASSIFY': 'tec_classify', // 技术分类
'DIFFICULTY_GRADE': 'difficulty_grade' // 难度等级
'DIFFICULTY_GRADE': 'difficulty_grade', // 难度等级
'COURSE_TYPE': 'course_type'
}
......@@ -19,12 +19,19 @@
@tab-click="changeQueryTabs"
>
<el-tab-pane v-if="mallIdentityType === 'firm'" :label="enterpriseCourseName" name="0">
<screen
<!-- <screen
v-model="queryParams.tecClassify"
class="tabScreen"
title="技术分类"
:items="tecClassifyOptions"
@input="getCourseByPagination"
/>-->
<screen
v-model="queryParams.courseType"
class="tabScreen"
title="课程分类"
:items="courseTypeOptions"
@input="getCourseByPagination"
/>
</el-tab-pane>
<el-tab-pane v-if="mallIdentityType === 'firm'" :label="postName" name="1">
......@@ -46,12 +53,19 @@
<!-- />-->
<!-- </el-tab-pane>-->
<el-tab-pane v-if="mallIdentityType === 'college'" :label="courseName" name="0">
<screen
<!-- <screen
v-model="queryParams.tecClassify"
class="tabScreen"
title="技术分类"
:items="tecClassifyOptions"
@input="getCourseByPagination"
/>-->
<screen
v-model="queryParams.courseType"
class="tabScreen"
title="课程分类"
:items="courseTypeOptions"
@input="getCourseByPagination"
/>
</el-tab-pane>
<el-tab-pane v-if="mallIdentityType === 'college'" :label="cultureName" name="3">
......@@ -249,6 +263,8 @@ export default {
enterpriseOptions: [], // 企业课程方案
// 技术分类字典数据
tecClassifyOptions: [],
// 课程分类数据字典
courseTypeOptions: [],
// 岗位分类字典数据
jobClassifyOptions: [],
// 难度等级字典数据
......@@ -260,7 +276,7 @@ export default {
// 默认课程图片
defaultCourseUrl: require('@/assets/image/defaultPicture.png'),
// 进入商城前用户选择的身份类型
mallIdentityType: '',
mallIdentityType: this.$route.query.mallIdentityType,
// 只看免费
onlyFree: false,
// 只看已购
......@@ -277,6 +293,8 @@ export default {
entQualityLesson: this.mallIdentityType === 'firm' ? '1' : null,
// 院校精品课(0 : 否 ; 1 : 是)
schoolQualityLesson: this.mallIdentityType === 'college' ? '1' : null,
// 企业课程分类
courseType: '',
// 课程名称
lessonName: '',
// 难度等级
......@@ -357,6 +375,9 @@ export default {
this.getDicts(dictCons['TEC_CLASSIFY']).then(response => {
this.tecClassifyOptions = response.data
})
this.getDicts(dictCons['COURSE_TYPE']).then(response => {
this.courseTypeOptions = response.data
})
this.getDicts(dictCons['JOB_CLASSIFY']).then(response => {
this.jobClassifyOptions = response.data
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment