mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 23:36:44 +08:00
教师管理同步接口
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user