seimin 1 gadu atpakaļ
vecāks
revīzija
3e26d7262c
1 mainītis faili ar 15 papildinājumiem un 10 dzēšanām
  1. 15 10
      src/views/Login.vue

+ 15 - 10
src/views/Login.vue

@@ -142,16 +142,21 @@ export default {
142 142
 
143 143
       Promise.all([promise1, promise2, promise3, promise4, promise5, promise6, promise7]).then((result) => {
144 144
           console.log(result);
145
-          // let [data1, data2, data3, data4, data5, data6, data7] = result.data;
146
-          return;
147
-          if(data1.status == 200 && data2.status == 200 && data3.status == 200 && data4.status == 200 && data5.status == 200 && data6.status == 200 && data7.status == 200){
148
-            var list1 = data1.list || [];
149
-            var list2 = data2.list || [];
150
-            var list3 = data3.list || [];
151
-            var list4 = data4.list || [];
152
-            var list5 = data5.list || [];
153
-            var list6 = data6.list || [];
154
-            var list7 = data7.list || [];
145
+          let data1 = result[0];
146
+          let data2 = result[1];
147
+          let data3 = result[2];
148
+          let data4 = result[3];
149
+          let data5 = result[4];
150
+          let data6 = result[5];
151
+          let data7 = result[6];
152
+          if(data1.data.status == 200 && data2.data.status == 200 && data3.data.status == 200 && data4.data.status == 200 && data5.data.status == 200 && data6.data.status == 200 && data7.data.status == 200){
153
+            var list1 = data1.data.list || [];
154
+            var list2 = data2.data.list || [];
155
+            var list3 = data3.data.list || [];
156
+            var list4 = data4.data.list || [];
157
+            var list5 = data5.data.list || [];
158
+            var list6 = data6.data.list || [];
159
+            var list7 = data7.data.list || [];
155 160
             if(list1.length && list2.length && list3.length && list4.length && list5.length && list6.length && list7.length){
156 161
               localStorage.setItem("repairMain", JSON.stringify(list1[0]));
157 162
               localStorage.setItem("incidentWithConsumable", list2[0].valueconfig);