Commit 78afa39c authored by zhengke's avatar zhengke

修改

parent 3b754d8a
...@@ -365,3 +365,14 @@ export function RemoveClassType(data) { ...@@ -365,3 +365,14 @@ export function RemoveClassType(data) {
}); });
} }
/**
* 获取班级类型下拉
*/
export function GetClassTypeList(data) {
return request({
url: '/Public/GetClassTypeList',
method: 'post',
data
});
}
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
class="col-6 q-pr-lg q-pb-lg" label="学习课时" /> class="col-6 q-pr-lg q-pb-lg" label="学习课时" />
</div> </div>
<div class="col-6"> <div class="col-6">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.ClassType" <q-select filled stack-label option-value="CTypeId" option-label="CTypeName" v-model="objOption.ClassType"
ref="CouseId" :options="classTypeList" label="班级类型" :dense="false" class="col-6 q-pr-lg q-pb-lg" ref="CouseId" :options="classTypeList" label="班级类型" :dense="false" class="col-6 q-pr-lg q-pb-lg"
emit-value map-options /> emit-value map-options />
</div> </div>
...@@ -299,6 +299,9 @@ ...@@ -299,6 +299,9 @@
import { import {
queryCourseDropdownList, queryCourseDropdownList,
} from '../../api/course/index' } from '../../api/course/index'
import {
GetClassTypeList
} from '../../api/system/index'
import { import {
getTeacherDropDownList, getTeacherDropDownList,
getSchoolDropdown, getSchoolDropdown,
...@@ -371,15 +374,7 @@ ...@@ -371,15 +374,7 @@
Id: 4 Id: 4
}], }],
//班级类型 //班级类型
classTypeList: [{ classTypeList: [],
Id: 1,
Name: "学生班"
},
{
Id: 2,
Name: "社会班"
},
],
//周几 //周几
weekList: [{ weekList: [{
label: '周一', label: '周一',
...@@ -422,6 +417,7 @@ ...@@ -422,6 +417,7 @@
this.CourseList(); this.CourseList();
this.getClassRoomList(); this.getClassRoomList();
this.GetTeacherList(); this.GetTeacherList();
this.GetClassTypeList();
}, },
mounted() { mounted() {
this.initObj() this.initObj()
...@@ -641,6 +637,14 @@ ...@@ -641,6 +637,14 @@
//删除学习时段 //删除学习时段
deletePlanTime(index) { deletePlanTime(index) {
this.DefaultPlanTimeList.splice(index, 1); this.DefaultPlanTimeList.splice(index, 1);
},
//获取班级类型下拉
GetClassTypeList(){
GetClassTypeList({}).then(res => {
if (res.Code == 1) {
this.classTypeList = res.Data;
}
})
} }
}, },
} }
......
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