|
@@ -674,6 +674,7 @@ export default {
|
|
/**根据学段、年级、班级搜索 */
|
|
/**根据学段、年级、班级搜索 */
|
|
filterData: function () {
|
|
filterData: function () {
|
|
let data = this.students
|
|
let data = this.students
|
|
|
|
+ // 优先判断班级筛选条件
|
|
// 筛选没有关联班级的学生
|
|
// 筛选没有关联班级的学生
|
|
if (this.searchClassroom == 'noclass') {
|
|
if (this.searchClassroom == 'noclass') {
|
|
if (this.searchClassroom) {
|
|
if (this.searchClassroom) {
|
|
@@ -683,11 +684,21 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ this.tableFilterData = data
|
|
|
|
+ this.pointNum = this.basicCount
|
|
|
|
+ this.tableShowData = data.slice(0, this.basicCount)
|
|
|
|
+ return
|
|
|
|
+ } else if (this.searchClassroom) {
|
|
|
|
+ let id = this.searchClassroom
|
|
|
|
+ data = data.filter(function (item) {
|
|
|
|
+ return item.classId == id
|
|
|
|
+ })
|
|
this.tableFilterData = data
|
|
this.tableFilterData = data
|
|
this.pointNum = this.basicCount
|
|
this.pointNum = this.basicCount
|
|
this.tableShowData = data.slice(0, this.basicCount)
|
|
this.tableShowData = data.slice(0, this.basicCount)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
|
|
// 帳號資訊搜尋
|
|
// 帳號資訊搜尋
|
|
if (this.searchText) {
|
|
if (this.searchText) {
|
|
@@ -713,13 +724,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
- // 教室篩選
|
|
|
|
- if (this.searchClassroom) {
|
|
|
|
- let id = this.searchClassroom
|
|
|
|
- data = data.filter(function (item) {
|
|
|
|
- return item.classId == id
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
this.tableFilterData = data
|
|
this.tableFilterData = data
|
|
this.pointNum = this.basicCount
|
|
this.pointNum = this.basicCount
|
|
@@ -750,7 +755,7 @@ export default {
|
|
}
|
|
}
|
|
this.academicYear = curYear
|
|
this.academicYear = curYear
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
)
|
|
)
|
|
this.initData()
|
|
this.initData()
|