|
@@ -950,18 +950,23 @@ export default {
|
|
|
// this.studentList = res.data.concat(this.activeListStudent).filter(item=>{
|
|
|
// return res.data
|
|
|
// });
|
|
|
- let idarr1 = [];
|
|
|
- let idarr2 = [];
|
|
|
- let arr3 = res.data.concat(this.activeListStudent);
|
|
|
- for (let i in res.data) {
|
|
|
- idarr1.push(res.data[i].userId);
|
|
|
- }
|
|
|
- for (let j in this.activeListStudent) {
|
|
|
- idarr2.push(this.activeListStudent[j].userId);
|
|
|
+ if (this.activeType == 'SNAP') {
|
|
|
+ let idarr1 = [];
|
|
|
+ let idarr2 = [];
|
|
|
+ let arr3 = res.data.concat(this.activeListStudent);
|
|
|
+ for (let i in res.data) {
|
|
|
+ idarr1.push(res.data[i].userId);
|
|
|
+ }
|
|
|
+ for (let j in this.activeListStudent) {
|
|
|
+ idarr2.push(this.activeListStudent[j].userId);
|
|
|
+ }
|
|
|
+ this.studentList = arr3.filter(item => {
|
|
|
+ return idarr1.indexOf(item.userId) === -1 || (idarr2.indexOf(item.userId) === -1)
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.studentList = res.data;
|
|
|
}
|
|
|
- this.studentList = arr3.filter(item => {
|
|
|
- return idarr1.indexOf(item.userId) === -1 || (idarr2.indexOf(item.userId) === -1)
|
|
|
- })
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
|