lrf402788946 5 years ago
parent
commit
f3b1d8850d
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/plan/lesson-plan.vue

+ 4 - 4
src/views/plan/lesson-plan.vue

@@ -106,7 +106,7 @@
               <el-input v-model="applyTeacherListPag.name" size="mini" placeholder="请输入要查询的教师姓名"></el-input>
             </el-form-item>
             <el-form-item>
-              <el-button type="primary" size="mini" @click="changePage(null, 'teacher')">查询</el-button>
+              <el-button type="primary" size="mini" @click="changePage(null, 'apply')">查询</el-button>
             </el-form-item>
           </el-form>
           <data-table style="padding:10px" :fields="teaFields" :data="applyTeacherList" :opera="teaOpera" @seletTea="setTea" :height="300"></data-table>
@@ -284,7 +284,7 @@ export default {
     toChooseTeacher() {
       if (this.form.subid) {
         this.dialog = true;
-        this.toGetTeacherList({ query: { status: '4' } });
+        this.toGetTeacherList();
       } else this.$message.warning('请选择所授科目');
     },
     setTea({ data }) {
@@ -353,9 +353,10 @@ export default {
       }
     },
     //教师列表请求
-    async toGetTeacherList({ query, type }) {
+    async toGetTeacherList({ query, type } = {}) {
       query.subid = this.form.subid;
       query.termid = this.form.termid;
+      query.status = '4';
       let setTeacher = async query => {
         let res = await this.getTeacherList(query);
         if (this.$checkRes(res)) {
@@ -409,7 +410,6 @@ export default {
       let tzxl = this.locationList.find(f => f.id === tcc.kzjhlocationid);
       let yc = this.locationList.find(f => f.id === tcc.yclocationid);
       let object = { term, class: classes, start: this.start, end: this.end, lessons: tcc.lessons, headteacher, lyTeacher, js, kbys, tzxl, yc };
-      console.log(object);
       this.$set(this, `previews`, object);
       this.views = 'table';
     },