Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
tea_resources_pc
Commits
827a0c08
Commit
827a0c08
authored
May 28, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
827d2bed
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
+27
-5
user.js
src/store/modules/user.js
+1
-1
dictCons.js
src/utils/dictCons.js
+2
-1
index.vue
src/views/courseResources/courseMall/index.vue
+24
-3
No files found.
src/store/modules/user.js
View file @
827a0c08
...
...
@@ -59,7 +59,7 @@ const user = {
state
.
businessId
=
businessId
},
SET_USERTYPE
:
(
state
,
userType
)
=>
{
state
.
userType
=
userType
state
.
userType
=
null
}
},
...
...
src/utils/dictCons.js
View file @
827a0c08
...
...
@@ -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'
}
src/views/courseResources/courseMall/index.vue
View file @
827a0c08
...
...
@@ -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
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment