Commit 2b3d2c85 authored by 吴春's avatar 吴春

页面修改

parent 5ab3940f
......@@ -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
......
......@@ -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.CourseRate"
ref="CourseRate" :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.CourseSubject"
ref="CourseSubject" :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;
}
......
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