lrf402788946 4 years ago
parent
commit
3c6504d40b

+ 1 - 1
src/views/train-plan/parts/lesson-table.vue

@@ -45,7 +45,7 @@
       </el-form-item>
       </el-form-item>
     </el-form>
     </el-form>
     <el-dialog title="选择教师" :visible.sync="dialog" :destroy-on-close="true" :append-to-body="true">
     <el-dialog title="选择教师" :visible.sync="dialog" :destroy-on-close="true" :append-to-body="true">
-      <teacher-select :schoolList="schoolList" :subjectList="subjectList" :subjectid="form.subid" @selTea="selTea"> </teacher-select>
+      <teacher-select :schoolList="schoolList" :subjectList="subjectList" :subjectid="form.subid" :date="form.date" @selTea="selTea"> </teacher-select>
     </el-dialog>
     </el-dialog>
   </div>
   </div>
 </template>
 </template>

+ 13 - 3
src/views/train-plan/parts/teacher.vue

@@ -29,6 +29,8 @@ export default {
     schoolList: { type: Array, default: () => [] },
     schoolList: { type: Array, default: () => [] },
     subjectList: { type: Array, default: () => [] },
     subjectList: { type: Array, default: () => [] },
     subjectid: { type: String, default: () => '' },
     subjectid: { type: String, default: () => '' },
+    date: { type: String },
+    termid: { type: String },
   },
   },
   components: { filterTable },
   components: { filterTable },
   data: function() {
   data: function() {
@@ -36,7 +38,7 @@ export default {
       teaTab: 'apply',
       teaTab: 'apply',
       teaFields: [
       teaFields: [
         { label: '姓名', prop: 'name', filter: 'input' },
         { label: '姓名', prop: 'name', filter: 'input' },
-        { label: '学校', prop: 'schname' },
+        { label: '工作地点', prop: 'jobaddress' },
         { label: '资料评分', prop: 'zlscore' },
         { label: '资料评分', prop: 'zlscore' },
         { label: '面试评分', prop: 'msscore' },
         { label: '面试评分', prop: 'msscore' },
       ],
       ],
@@ -63,7 +65,15 @@ export default {
       this.$set(this, `teacherList`, res.data);
       this.$set(this, `teacherList`, res.data);
     },
     },
     async toGetApplyList({ skip = 0, limit = 10, ...info } = {}) {
     async toGetApplyList({ skip = 0, limit = 10, ...info } = {}) {
-      let res = await this.getApplyTeacherList({ skip, limit, ...info, subid: this.subjectid, status: '4' });
+      let res = await this.getApplyTeacherList({
+        skip,
+        limit,
+        ...info,
+        subid: this.subjectid,
+        status: '4',
+        date: this.date,
+        termid: this.defaultOption.termid,
+      });
       this.$set(this, `applyTotal`, res.total);
       this.$set(this, `applyTotal`, res.total);
       this.$set(this, `applyList`, res.data);
       this.$set(this, `applyList`, res.data);
     },
     },
@@ -83,7 +93,7 @@ export default {
     },
     },
   },
   },
   computed: {
   computed: {
-    ...mapState(['user']),
+    ...mapState(['user', 'defaultOption']),
     pageTitle() {
     pageTitle() {
       return `${this.$route.meta.title}`;
       return `${this.$route.meta.title}`;
     },
     },