Commit a1b748a2 authored by 黄奎's avatar 黄奎

页面修改

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