Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
2b3d2c85
Commit
2b3d2c85
authored
Sep 24, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
5ab3940f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
index.js
src/api/course/index.js
+13
-1
course-form.vue
src/components/course/course-form.vue
+15
-3
No files found.
src/api/course/index.js
View file @
2b3d2c85
...
...
@@ -216,7 +216,7 @@ export function saveChapter(data) {
}
/**
*
保存课程章节
*
获取课程日语等级列表
* @param {JSON参数} data
*/
export
function
getCourseRate
(
data
)
{
...
...
@@ -227,6 +227,18 @@ export function getCourseRate(data) {
})
}
/**
* 获取课程科目列表
* @param {JSON参数} data
*/
export
function
getCourseSubject
(
data
)
{
return
request
({
url
:
"/Course/GetCourseSubjectList"
,
method
:
'post'
,
data
})
}
/**
* 保存课程章节
* @param {JSON参数} data
...
...
src/components/course/course-form.vue
View file @
2b3d2c85
...
...
@@ -94,11 +94,14 @@
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.Course
Rate
"
ref=
"Course
Rate"
:options=
"courseLevelList"
label=
"课程等级
"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.Course
Subject
"
ref=
"Course
Subject"
:options=
"courseSubjectList"
label=
"所属科目
"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"objOption.CourseRate"
ref=
"CourseRate"
:options=
"courseLevelList"
label=
"课程等级"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
<div
class=
"text-caption q-my-md q-px-xs text-grey-6"
>
课程介绍
</div>
...
...
@@ -141,6 +144,7 @@
queryCourseInfo
,
querySaleplatList
,
getCourseRate
,
getCourseSubject
,
}
from
"../../api/course/index"
;
import
{
getTeacherDropDownList
...
...
@@ -185,6 +189,7 @@
ClassHours
:
0
,
CategoryList
:
[],
CourseRate
:
""
,
//课程等级
CourseSubject
:
""
,
//课程科目
},
optionTitle
:
""
,
defaultArray
:
[],
...
...
@@ -200,6 +205,7 @@
chooseGoodsClassify
:
[],
//选中的商品分类
modifyClassifyList
:
[],
//修改时返回的分类列表
courseLevelList
:
[],
//课程等级列表
courseSubjectList
:
[],
//课程科目列表
};
},
created
()
{
...
...
@@ -241,13 +247,18 @@
if
((
item
.
Id
>=
2
&&
item
.
Id
<=
6
)
||
item
.
Id
==
8
)
{
this
.
courseLevelList
.
push
({
Id
:
item
.
Id
,
Name
:
item
.
Name
.
replace
(
/课程/g
,
''
)
Name
:
item
.
Name
.
replace
(
/课程/g
,
''
)
})
}
})
}
}
})
getCourseSubject
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
courseSubjectList
=
res
.
Data
;
}
})
},
//获取教师下拉
GetTeacherList
()
{
...
...
@@ -330,6 +341,7 @@
this
.
objOption
.
Saleplat
=
res
.
Data
.
Saleplat
;
this
.
objOption
.
IsKCourse
=
res
.
Data
.
IsKCourse
;
this
.
objOption
.
CourseRate
=
res
.
Data
.
CourseRate
;
this
.
objOption
.
CourseSubject
=
res
.
Data
.
CourseSubject
;
if
(
res
.
Data
.
StepPriceList
&&
res
.
Data
.
StepPriceList
.
length
>
0
)
{
this
.
ladderPriceList
=
res
.
Data
.
StepPriceList
;
}
...
...
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