diff --git a/src/views/manage/TeacherList.vue b/src/views/manage/TeacherList.vue
index 47d9c06c..55caf7f0 100644
--- a/src/views/manage/TeacherList.vue
+++ b/src/views/manage/TeacherList.vue
@@ -34,7 +34,7 @@
导出
-
+
@@ -49,19 +49,19 @@
-
{{scope.row.waitStatus=='0'?'在职': scope.row.waitStatus=='1' ? '离职' :''}}
-
{{scope.row.certStatus==0 ?'未认证': scope.row.certStatus==1 ? '已认证' :''}}
-
@@ -194,6 +194,9 @@
tlevelId:'',
name:'',
salaryId:'',
+ waitStatus:'',
+ status:'',
+ certStatus:'',
pageIndex: 1,
pageSize: 10,
},
@@ -301,10 +304,11 @@
// this.teacherDetailsId = '13BEBDBD-3D28-244D-648D-0CBD6796717C'
},
getTeachersystem() {
+ this.systemData=[];
teacherBoeApi.teacherSystem(this.userInfo.sysId).then(res=>{
if(res.status == 200) {
this.systemLevelTree=res.result;
- this.systemData=[];
+
res.result.forEach(item => {
this.teacherSystemids.push(item.teacher_system_id);
this.systemData.push({
@@ -312,6 +316,7 @@
name:item.system_name
})
});
+
this.loadData(1);
} else {
this.$message.error('教师体系数据获取失败!')
@@ -320,7 +325,7 @@
})
},
queryChangeSystem(val) {
- this.query.tLevelId = '';
+ this.query.tlevelId = '';
let array=[];
this.systemLevelTree.forEach(sl=>{
if(sl.teacher_system_id==val){
@@ -358,6 +363,9 @@
this.query.salaryId='',
this.query.pageIndex= 1,
this.query.pageSize= 10,
+ this.query.waitStatus='';
+ this.query.certStatus='';
+ this.query.status='';
this.$refs.teacherTable.clearFilter();
this.loadData(1);
},
@@ -380,16 +388,40 @@
this.coverImage = '';
this.dialogVisible=true
},
+ filterChange(e){
+ console.log(e,e.key,"测试");
+ if(e.waitStatus){
+ if(e.waitStatus.length==0 || e.waitStatus.length==2){
+ this.query.waitStatus='';
+ }
+ }
+ if(e.certStatus){
+ if(e.certStatus.length==0 || e.certStatus.length==2){
+ this.query.certStatus='';
+ }
+ }
+ if(e.status){
+ if(e.status.length==0 || e.status.length==2){
+ this.query.status='';
+ }
+ }
+ this.loadData(1);
+ },
filterWork(value,row){
+ this.query.waitStatus=value;
+ console.log(value,row.waitStatus,'waitStatus');
+ //this.loadData(1);
return row.waitStatus==value
},
filterCertification(value,row){
- // console.log(row.certificationStatus,value)
+ console.log(row.certificationStatus,value,"certStatus")
+ this.query.certStatus=value;
return row.certStatus==value
},
filterStatus(value,row){
- //console.log(row.status,value,"qwerqw");
- return row.status==value
+ console.log(row.status,value,"status");
+ this.query.status=value;
+ return row.status==value
},
shareItem(item){
this.shareShow=true;
@@ -589,6 +621,10 @@
this.levelData=array;
},
loadData(pageIndex) {
+ if(this.systemData.length==0){
+ this.$message({ type: "error", message: "您当前没有可管理的教师"});
+ return;
+ }
this.query.pageIndex = pageIndex;
this.query.tsystemIds = this.query.tsystemId || this.teacherSystemids.join();
teacherApi.page(this.query).then((res) => {