Commit af9cc3b5 authored by zhengke's avatar zhengke

修改

parent 0020cb32
...@@ -112,6 +112,12 @@ ...@@ -112,6 +112,12 @@
label: '时间', label: '时间',
align: 'left' align: 'left'
}, },
{
name: 'LessonName',
label: '课程名称',
field: 'LessonName',
align: 'left'
},
{ {
name: 'RoomName', name: 'RoomName',
label: '教室', label: '教室',
......
...@@ -56,6 +56,10 @@ ...@@ -56,6 +56,10 @@
<q-select filled stack-label option-value="RoomId" dense option-label="RoomName" v-model="addMsg.ClassRoomId" <q-select filled stack-label option-value="RoomId" dense option-label="RoomName" v-model="addMsg.ClassRoomId"
ref="ClassRoomId" :options="ClassRoomList" label="关联教室" class="col-6 q-pb-lg q-pr-lg" ref="ClassRoomId" :options="ClassRoomList" label="关联教室" class="col-6 q-pb-lg q-pr-lg"
emit-value map-options /> emit-value map-options />
<q-select filled stack-label option-value="Id" dense option-label="LessonName" v-model="addMsg.TrialLessonId"
:options="TrialList" label="试听课程" class="col-6 q-pb-lg q-pr-lg"
emit-value map-options />
</div> </div>
<div class="row wrap justify-end q-pr-lg" style="margin-bottom:10px;"> <div class="row wrap justify-end q-pr-lg" style="margin-bottom:10px;">
<q-btn label="保存" color="accent q-mb-lg" size="md" @click="saveAppointForm()" /> <q-btn label="保存" color="accent q-mb-lg" size="md" @click="saveAppointForm()" />
...@@ -74,6 +78,7 @@ ...@@ -74,6 +78,7 @@
<div class="StuCom_Inner">{{tItem.ClassContent}}</div> <div class="StuCom_Inner">{{tItem.ClassContent}}</div>
</div> </div>
<div>主讲老师:{{tItem.TeacherName}}</div> <div>主讲老师:{{tItem.TeacherName}}</div>
<div>课程名称:{{tItem.TrialLessonId}}</div>
<div class="StuCom_Remark"> <div class="StuCom_Remark">
<span class="StuCom_Left">教室</span>{{tItem.RoomName}} <span class="StuCom_Left">教室</span>{{tItem.RoomName}}
</div> </div>
...@@ -107,7 +112,8 @@ ...@@ -107,7 +112,8 @@
import { import {
getTeacherDropDownList, getTeacherDropDownList,
queryClassRoomList queryClassRoomList,
GetTrialLessonList
} from "../../../api/school/index"; } from "../../../api/school/index";
import auditionForm from '../../schedul/audition-form' import auditionForm from '../../schedul/audition-form'
...@@ -137,6 +143,7 @@ ...@@ -137,6 +143,7 @@
TeacherId: 0, //教师编号 TeacherId: 0, //教师编号
ClassRoomId: 0, //教室编号 ClassRoomId: 0, //教室编号
ClassContent: "", //主讲内容 ClassContent: "", //主讲内容
TrialLessonId:''
}, },
qMsg: { qMsg: {
pageIndex: 1, pageIndex: 1,
...@@ -161,12 +168,14 @@ ...@@ -161,12 +168,14 @@
ClassRoomList: [], ClassRoomList: [],
dataList: [], dataList: [],
page_Count: 0, page_Count: 0,
isShowTeacher: false isShowTeacher: false,
TrialList:[] //试听课程下拉数据
} }
}, },
created() { created() {
this.getClassRoomList(); this.getClassRoomList();
this.GetTeacherList(); this.GetTeacherList();
this.GetTrialDrop();
if (this.saveObj) { if (this.saveObj) {
this.addMsg.Visitor_Id = this.saveObj.StuId; this.addMsg.Visitor_Id = this.saveObj.StuId;
this.qMsg.Visitor_Id = this.saveObj.StuId; this.qMsg.Visitor_Id = this.saveObj.StuId;
...@@ -176,6 +185,13 @@ ...@@ -176,6 +185,13 @@
this.getList(); this.getList();
}, },
methods: { methods: {
GetTrialDrop(){
GetTrialLessonList({}).then(res => {
if (res.Code == 1) {
this.TrialList = res.Data;
}
});
},
//保存 //保存
saveAppointForm() { saveAppointForm() {
if(this.addMsg.ClassDate==''){ if(this.addMsg.ClassDate==''){
......
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