|
@@ -62,7 +62,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
query: {
|
|
|
- schoolId: 1,
|
|
|
+ schoolId: null,
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
@@ -156,6 +156,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
filterSchool() {
|
|
|
+ if (!this.query.schoolId) {
|
|
|
+ this.list = this.schools;
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.list = this.schools.filter(
|
|
|
(item) => item.id === this.query.schoolId
|
|
|
);
|