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