Commit c58b32a5 authored by zhengke's avatar zhengke

xiugai

parent ce4ebd3c
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
<q-select filled option-value="TId" option-label="TeacherName" class="q-pr-lg" v-model="statusMsg.Teacher_Id" <q-select filled option-value="TId" option-label="TeacherName" class="q-pr-lg" v-model="statusMsg.Teacher_Id"
:options="TeacherList" emit-value map-options label="带班老师" /> :options="TeacherList" emit-value map-options label="带班老师" />
</div> </div>
<div class="col-12" v-if="setingObj.ClassRoomId==0&&statusMsg.ClassStatus==2">
<q-select filled stack-label option-value="RoomId" option-label="RoomName" v-model="statusMsg.ClassRoomId"
ref="ClassRoomId" :options="ClassRoomList" label="关联教室" :dense="false" class="col-6 q-pb-lg" emit-value
map-options />
</div>
</div> </div>
<q-separator /> <q-separator />
<q-card-actions align="right" class="bg-white"> <q-card-actions align="right" class="bg-white">
...@@ -33,7 +38,8 @@ ...@@ -33,7 +38,8 @@
saveClassStatus, //修改班级状态 saveClassStatus, //修改班级状态
} from '../../api/course/class' } from '../../api/course/class'
import { import {
getTeacherDropDownList getTeacherDropDownList,
queryClassRoomList,
} from '../../api/school/index'; } from '../../api/school/index';
export default { export default {
...@@ -50,10 +56,12 @@ ...@@ -50,10 +56,12 @@
statusMsg: { statusMsg: {
ClassId: 0, ClassId: 0,
ClassStatus: 0, ClassStatus: 0,
Teacher_Id: 0 Teacher_Id: 0,
ClassRoomId: 0
}, },
classStatusList: [], classStatusList: [],
TeacherList: [], TeacherList: [],
ClassRoomList: []
} }
}, },
created() { created() {
...@@ -68,6 +76,7 @@ ...@@ -68,6 +76,7 @@
this.getClassStatus(); this.getClassStatus();
this.GetTeacherList(); this.GetTeacherList();
this.getClassRoomList();
}, },
methods: { methods: {
//获取班级状态列表 //获取班级状态列表
...@@ -84,6 +93,14 @@ ...@@ -84,6 +93,14 @@
} }
}).catch(() => {}) }).catch(() => {})
}, },
//获取教室下拉
getClassRoomList() {
queryClassRoomList({}).then(res => {
if (res.Code == 1) {
this.ClassRoomList = res.Data;
}
})
},
//获取教师下拉 //获取教师下拉
GetTeacherList() { GetTeacherList() {
getTeacherDropDownList({}).then(res => { getTeacherDropDownList({}).then(res => {
...@@ -133,14 +150,14 @@ ...@@ -133,14 +150,14 @@
ok: "查看名单", ok: "查看名单",
cancel: "我知道了", cancel: "我知道了",
}).onOk(() => { }).onOk(() => {
this.OpenNewUrl('/stuMan/unfinishedStudent',{ this.OpenNewUrl('/stuMan/unfinishedStudent', {
ClassId:this.statusMsg.ClassId ClassId: this.statusMsg.ClassId
}) })
}).onCancel(() => { }).onCancel(() => {
}); });
} }
if(ClassStatus==2 && res.Data){ if (ClassStatus == 2 && res.Data) {
this.$q.notify({ this.$q.notify({
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
......
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