教师管理同步接口

This commit is contained in:
zhaofang
2022-06-06 11:04:50 +08:00
parent f9242c3576
commit e3d0f03e18
3 changed files with 61 additions and 8 deletions

View File

@@ -182,6 +182,7 @@
return {
query:{
tSystemId:'',
tSystemIds:'',
tLevelId:'',
queryName:'',
salaryId:'',
@@ -248,6 +249,7 @@
systemData:[],//体系数组{id,name}
levelData:[],//级别数组{id,name}
queryLevelData:[],
teacherSystemids:[]
}
},
watch:{
@@ -257,9 +259,9 @@
}
}
},
mounted() {
this.loadData(1);
this.getTeachersystem();
mounted() {
this.getTeachersystem();
},
computed: {
...mapGetters(['userInfo'])
@@ -281,13 +283,16 @@
this.systemLevelTree=res.result;
this.systemData=[];
res.result.forEach(item => {
this.teacherSystemids.push(item.teacher_system_id);
this.systemData.push({
id:item.teacher_system_id,
name:item.system_name
})
});
this.loadData(1);
} else {
this.$message.error('教师体系数据获取失败!')
this.loadData(1);
}
})
},
@@ -522,7 +527,7 @@
},
loadData(pageIndex) {
this.query.pageIndex = pageIndex;
console.log(this.query,'this.query');
this.query.tSystemIds = this.query.tSystemId || this.teacherSystemids.join();
teacherApi
.page(
this.query