diff --git a/src/api/modules/teacher.js b/src/api/modules/teacher.js
index 5a039cc0..33978bd0 100644
--- a/src/api/modules/teacher.js
+++ b/src/api/modules/teacher.js
@@ -23,6 +23,10 @@ const getInfoById = function(id) {
* pageIndex 起始页
* pageSize 每页条数
* name 姓名
+ * tlevelId级别
+ * salaryId发薪地
+ tsystemId这个应该是教师体系,他注释没有写明白
+
* } query
* @returns
*/
diff --git a/src/views/manage/TeacherList.vue b/src/views/manage/TeacherList.vue
index 5c4d29ea..867b66c5 100644
--- a/src/views/manage/TeacherList.vue
+++ b/src/views/manage/TeacherList.vue
@@ -3,20 +3,20 @@
-
-
+
+
-
-
+
+
-
+
-
-
+
+
@@ -74,9 +74,9 @@
background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
- :current-page="pageIndex"
+ :current-page="query.pageIndex"
:page-sizes="[10, 20, 30, 40]"
- :page-size="pageSize"
+ :page-size="query.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="count">
@@ -180,6 +180,14 @@
components:{imageUpload,teacherDetails},
data(){
return {
+ query:{
+ tSystemId:'',
+ tLevelId:'',
+ queryName:'',
+ salaryId:'',
+ pageIndex: 1,
+ pageSize: 10,
+ },
teacherDetailId:'',//新数据id
teacherDetailsId: '',// sid
showTeacherDetails:false,
@@ -239,6 +247,7 @@
systemLevelTree:[],
systemData:[],//体系数组{id,name}
levelData:[],//级别数组{id,name}
+ queryLevelData:[],
}
},
watch:{
@@ -282,8 +291,21 @@
}
})
},
+ queryChangeSystem(val) {
+ let array=[];
+ this.systemLevelTree.forEach(sl=>{
+ if(sl.teacher_system_id==val){
+ sl.teacher_level.forEach(lev=>{
+ array.push({
+ id:lev.teacher_level_id,
+ name:lev.level_name
+ })
+ })
+ }
+ });
+ this.queryLevelData=array;
+ },
changeSystem(val){
- //console.log(val,'val');
let array=[];
this.systemLevelTree.forEach(sl=>{
if(sl.teacher_system_id==val.id){
@@ -298,7 +320,13 @@
this.levelData=array;
},
reset (){
- this.queryName = '';
+ this.query.queryName = '';
+ this.query.tSystemId='',
+ this.query.tLevelId='',
+ this.query.queryName='',
+ this.query.salaryId='',
+ this.query.pageIndex= 1,
+ this.query.pageSize= 10,
this.$refs.teacherTable.clearFilter();
this.loadData(1);
},
@@ -493,13 +521,15 @@
})
},
loadData(pageIndex) {
- this.pageIndex = pageIndex;
+ this.query.pageIndex = pageIndex;
+ console.log(this.query,'this.query');
teacherApi
- .page({
- pageIndex: this.pageIndex,
- pageSize: this.pageSize,
- name: this.queryName ,
- })
+ .page(
+ this.query
+ // pageIndex: this.pageIndex,
+ // pageSize: this.pageSize,
+ // name: this.queryName,
+ )
.then((res) => {
if (res.status == 200) {
const result = res.result;
@@ -608,13 +638,13 @@
document.body.removeChild(eleLink);
},
handleSizeChange(val) {
- this.pageSize = val
- this.pageIndex = 1
- this.loadData(this.pageIndex)
+ this.query.pageSize = val
+ this.query.pageIndex = 1
+ this.loadData(this.query.pageIndex)
},
handleCurrentChange(val) {
- this.pageIndex = val
- this.loadData(this.pageIndex)
+ this.query.pageIndex = val
+ this.loadData(this.query.pageIndex)
},
}
}