lrf402788946 4 lat temu
rodzic
commit
53b4dc5b40
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/views/leave/index.vue

+ 2 - 0
src/views/leave/index.vue

@@ -87,7 +87,9 @@ export default {
       const res = await this.query({ skip, limit, ...info, schid: this.user.code });
       const res = await this.query({ skip, limit, ...info, schid: this.user.code });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         let studs = await this.allRequest({ method: 'fetch', data: _.uniq(res.data.map(i => i.studentid)) });
         let studs = await this.allRequest({ method: 'fetch', data: _.uniq(res.data.map(i => i.studentid)) });
+        console.log(studs);
         res.data.map(i => {
         res.data.map(i => {
+          console.log(i.studentid);
           let student = studs.find(f => f.id === i.studentid);
           let student = studs.find(f => f.id === i.studentid);
           if (student) i.name = student.name;
           if (student) i.name = student.name;
           i.time = `${i.starttime} 至 ${i.endtime}`;
           i.time = `${i.starttime} 至 ${i.endtime}`;