Commit a1b748a2 authored by 黄奎's avatar 黄奎

页面修改

parent bc6ac4b9
......@@ -92,6 +92,7 @@
.TeacherNewClass:last-child {
margin-bottom: 0;
}
</style>
<template>
<div class="page-body">
......@@ -105,7 +106,7 @@
</div>
<div class="col-3" v-if="isShowBtn">
<q-select filled stack-label option-value="TId" @input="changeRecord()" option-label="TeacherName"
v-model="TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师" :dense="false" class="col-6"
v-model="msg.TeacherId" ref="Teacher_Id" :options="TeacherList" label="关联教师" :dense="false" class="col-6"
emit-value map-options />
</div>
</div>
......@@ -248,7 +249,6 @@
School_Id: 0,
ClassId: 0
},
TeacherId: 0,
dataList: [],
TeacherList: [], //关联老师下拉
pageCount: 0,
......@@ -294,22 +294,19 @@
}
},
created() {
},
mounted() {
this.TeacherId = this.setingObj.Teacher_Id;
this.msg.TeacherId = this.setingObj.Teacher_Id;
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
if (this.isShowMyBtn == 1) {
this.isShowBtn = false;
}
this.getRecord();
this.GetTeacherList();
},
mounted() {
this.getRecord();
},
methods: {
getRecord() {
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
this.msg.TeacherId = this.setingObj.Teacher_Id;
GetClassPlanLogPageList(this.msg).then(res => {
if (res.Code == 1) {
this.dataList = res.Data.PageData;
......@@ -318,9 +315,6 @@
})
},
changeRecord() {
this.msg.School_Id = this.setingObj.School_Id;
this.msg.ClassId = this.setingObj.ClassId;
this.msg.TeacherId = this.TeacherId;
GetClassPlanLogPageList(this.msg).then(res => {
if (res.Code == 1) {
this.dataList = res.Data.PageData;
......@@ -330,7 +324,7 @@
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
this.msg.PageIndex = val;
this.getRecord()
},
//获取教师下拉
......@@ -359,7 +353,9 @@
}
}
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
</style>
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