Commit ffd31f01 authored by zhengke's avatar zhengke

增加关联题库

parent d14eb459
......@@ -698,4 +698,15 @@ export function GetTrialLessonList(data) {
method: 'post',
data
});
}
/**
* 获取关联题库等级
*/
export function GetBankTypeList(data) {
return request({
url: '/Question/GetBankTypeList',
method: 'post',
data
});
}
\ No newline at end of file
......@@ -147,6 +147,13 @@
style="display:none" />
</div>
</div>
<div class="row wrap">
<div class="col-6">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.OpenBankLevelList" multiple
use-chips ref="LevelData" :options="LevelData" label="课程关联题库" class="col-6 q-pr-lg q-pb-lg"
emit-value map-options />
</div>
</div>
<div class="row wrap">
<div class="col-12 q-pr-lg q-pb-lg">
<q-input v-model="objOption.ContractInfo" filled type="textarea" placeholder="合同补充协议" />
......@@ -197,7 +204,8 @@
getCourseEmphasisEnumList
} from "../../api/course/index";
import {
getTeacherDropDownList
getTeacherDropDownList,
GetBankTypeList
} from "../../api/school/index";
import {
UploadSelfFile
......@@ -251,7 +259,8 @@
ScrollMinNum: 0, // 最小上课人数
ScrollMaxNum: 0, // 最大上课人数
CourseTimeId: 0, // 关联上课时段
ContractInfo: "" //合同补充协议
ContractInfo: "",//合同补充协议
OpenBankLevelList: []
},
CourseTimeList: [], //上课时段列表
CourseEmphasis: [], //数据临时存放
......@@ -270,7 +279,8 @@
modifyClassifyList: [], //修改时返回的分类列表
courseLevelList: [], //课程等级列表
courseSubjectList: [], //课程科目列表
keynoteList: [] //重点枚举列表
keynoteList: [], //重点枚举列表
LevelData:[]
};
},
created() {
......@@ -282,6 +292,7 @@
this.getCourseRateList();
this.getCourseEmphasisList(); //获取课程重点枚举列表
this.initObj();
this.getLevel();
},
computed: mapState({
//是否有编辑课时权限
......@@ -307,6 +318,15 @@
this.getCourseTimeList();
},
methods: {
//获取关联考试等级
getLevel(){
GetBankTypeList({}).then(res => {
if(res.Code==1){
console.log(res,'shuj');
this.LevelData = res.Data;
}
})
},
//根据系列改变获取所属科目
changeCourseSubject(Id) {
if (Id > 0) {
......@@ -480,6 +500,7 @@
this.objOption.ScrollMinNum = res.Data.ScrollMinNum;
this.objOption.ScrollMaxNum = res.Data.ScrollMaxNum;
this.objOption.CourseTimeId = res.Data.CourseTimeId;
this.objOption.OpenBankLevelList = res.Data.OpenBankLevelList;
this.CourseEmphasis = [];
setTimeout(() => {
//Todo 暂时不知道什么原因 偶尔会出现2个 所以加了一个延迟
......
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