|
@@ -1399,7 +1399,7 @@ export default {
|
|
|
Authorization: getToken()
|
|
|
},
|
|
|
params: {
|
|
|
- rows: 100,
|
|
|
+ rows: 9999,
|
|
|
search: query,
|
|
|
organId: this.leftForm.classOrganId
|
|
|
},
|
|
@@ -1411,7 +1411,12 @@ export default {
|
|
|
this.remoteLoading = false
|
|
|
let result = res.data
|
|
|
if (result.code == 200) {
|
|
|
- Array.prototype.splice.apply(this.studentList, result.data.rows);
|
|
|
+ // Array.prototype.splice.apply(this.studentList, result.data.rows);
|
|
|
+ if (result.data.rows && result.data.rows.length > 0) {
|
|
|
+ result.data.rows.forEach(item => {
|
|
|
+ this.studentList.unshift(item)
|
|
|
+ })
|
|
|
+ }
|
|
|
// this.studentList = this.studentList.concat(result.data.rows);
|
|
|
this.unique(this.studentList, "userId");
|
|
|
}
|