lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
875a3755a3
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/views/train-plan/bedroom.vue

+ 8 - 0
src/views/train-plan/bedroom.vue

@@ -133,7 +133,15 @@ export default {
         // 组织数据
         let arr = [];
         for (const key of keys) {
+          console.log(key);
+          if (key === undefined || key === `${undefined}`) {
+            let obj = { code: '未分寝' };
+            obj.list = group[`${key}`];
+            arr.push(obj);
+            continue;
+          }
           const bedroom = this.bedroomList.find(f => f._id == key);
+          console.log(bedroom);
           bedroom.list = group[key];
           arr.push(bedroom);
         }