Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
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-web
Commits
6760e1ba
Commit
6760e1ba
authored
Jun 27, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程添加课程维度字段
parent
ef694137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
index.vue
src/views/courseInformation/courseManagement/info/index.vue
+40
-0
No files found.
src/views/courseInformation/courseManagement/info/index.vue
View file @
6760e1ba
...
...
@@ -106,6 +106,23 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"课程维度:"
prop=
"enterpriseCourseDimensions"
>
<el-select
v-model=
"form.enterpriseCourseDimensions"
:disabled=
"form.lessonType === '0'"
multiple
class=
"normalSelct"
>
<el-option
v-for=
"(items,index) in enterpriseCourseDimensionsOptions"
:key=
"index"
:label=
"items.dictLabel"
:value=
"items.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
class=
"border-border"
:gutter=
"100"
>
<el-col
:span=
"24"
>
...
...
@@ -348,9 +365,12 @@ export default {
valueOptions
:
[],
courseDirection
:
[],
courseTypeOptions
:
[],
enterpriseCourseDimensionsOptions
:
[],
coursePlanOptions
:
[],
coursePlanOptionsC
:
[],
form
:
{
// 课程维度
enterpriseCourseDimensions
:
''
,
// 课程名称
lessonName
:
''
,
// 一句话介绍
...
...
@@ -422,6 +442,7 @@ export default {
this
.
form
.
jobClassify
=
''
this
.
form
.
tecClassify
=
''
this
.
form
.
courseType
=
''
this
.
form
.
enterpriseCourseDimensions
=
''
},
lessonTypeSchoolChange
()
{
this
.
form
.
classPlanSchool
=
[]
...
...
@@ -435,6 +456,7 @@ export default {
this
.
getJobClassification
()
this
.
getCourseDirection
()
this
.
getcourseTypeOptions
()
this
.
getenterpriseCourseDimensionsOptions
()
this
.
getTeacher
()
this
.
getCoursePlanC
()
},
...
...
@@ -480,6 +502,12 @@ export default {
this
.
courseTypeOptions
=
res
.
data
})
},
// 获取课程维度
getenterpriseCourseDimensionsOptions
()
{
getDict
(
'course_dimensions'
).
then
(
res
=>
{
this
.
enterpriseCourseDimensionsOptions
=
res
.
data
})
},
// 保存
submit
()
{
console
.
log
(
'form'
,
this
.
form
)
...
...
@@ -532,6 +560,11 @@ export default {
}
else
{
this
.
form
.
courseType
=
this
.
form
.
courseType
.
split
(
','
)
}
if
(
praseStrEmpty
(
this
.
form
.
enterpriseCourseDimensions
)
===
''
)
{
this
.
form
.
enterpriseCourseDimensions
=
[]
}
else
{
this
.
form
.
enterpriseCourseDimensions
=
this
.
form
.
enterpriseCourseDimensions
.
split
(
','
)
}
if
(
praseStrEmpty
(
this
.
form
.
classPlanSchool
)
===
''
)
{
// 把字符串转换成数组
this
.
form
.
classPlanSchool
=
[]
...
...
@@ -571,6 +604,9 @@ export default {
if
(
form
.
courseType
.
length
>
0
)
{
form
.
courseType
=
form
.
courseType
.
join
(
','
)
}
if
(
form
.
enterpriseCourseDimensions
.
length
>
0
)
{
form
.
enterpriseCourseDimensions
=
form
.
enterpriseCourseDimensions
.
join
(
','
)
}
if
(
form
.
courseTypeC
.
length
>
0
)
{
form
.
courseTypeC
=
form
.
courseTypeC
.
join
(
','
)
}
...
...
@@ -614,6 +650,7 @@ export default {
lessonType
:
this
.
form
.
lessonType
,
lessonTypeSchool
:
this
.
form
.
lessonTypeSchool
,
courseType
:
this
.
form
.
courseType
,
enterpriseCourseDimensions
:
this
.
form
.
enterpriseCourseDimensions
,
courseTypeC
:
this
.
form
.
courseTypeC
,
qualityLesson
:
this
.
form
.
qualityLesson
}
...
...
@@ -635,6 +672,9 @@ export default {
if
(
form
.
courseType
.
length
>
0
)
{
form
.
courseType
=
form
.
courseType
.
join
(
','
)
}
if
(
form
.
enterpriseCourseDimensions
.
length
>
0
)
{
form
.
enterpriseCourseDimensions
=
form
.
enterpriseCourseDimensions
.
join
(
','
)
}
if
(
form
.
courseTypeC
.
length
>
0
)
{
form
.
courseTypeC
=
form
.
courseTypeC
.
join
(
','
)
}
...
...
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