seimin 2 anni fa
parent
commit
a6ab3820c4
2 ha cambiato i file con 6 aggiunte e 12 eliminazioni
  1. 3 6
      src/views/my.vue
  2. 3 6
      src/views/supplementary.vue

+ 3 - 6
src/views/my.vue

@@ -303,12 +303,9 @@ export default {
303 303
                 area: {}
304 304
               };
305 305
             }
306
-            that.loginUser.branch = {id: selectedVal[0]};
307
-            that.loginUser.place.id = selectedVal[1];
308
-            that.loginUser.place.area.id = selectedVal[0];
309
-            that.loginUser.branch.hosName = selectedText[0];
310
-            that.loginUser.place.place = selectedText[1];
311
-            that.loginUser.place.area.area = selectedText[0];
306
+            that.loginUser.branch = {id: selectedVal[0], hosName:selectedText[0]};
307
+            that.loginUser.place = {id:selectedVal[2], place:selectedText[2]};
308
+            that.loginUser.place.area = {id:selectedVal[1], area: selectedText[1]};
312 309
             var loginUserStr = JSON.stringify(that.loginUser);
313 310
             localStorage.setItem("loginUser", loginUserStr);
314 311
             that.areaData = selectedText[0] + " " + selectedText[1] + " " + selectedText[2];

+ 3 - 6
src/views/supplementary.vue

@@ -254,12 +254,9 @@ export default {
254 254
                 area: {}
255 255
               };
256 256
             }
257
-            that.loginUser.branch = {id: selectedVal[0]};
258
-            that.loginUser.place.id = selectedVal[2];
259
-            that.loginUser.place.area.id = selectedVal[1];
260
-            that.loginUser.branch.hosName = selectedText[0];
261
-            that.loginUser.place.place = selectedText[2];
262
-            that.loginUser.place.area.area = selectedText[1];
257
+            that.loginUser.branch = {id: selectedVal[0], hosName:selectedText[0]};
258
+            that.loginUser.place = {id:selectedVal[2], place:selectedText[2]};
259
+            that.loginUser.place.area = {id:selectedVal[1], area: selectedText[1]};
263 260
             var loginUserStr = JSON.stringify(that.loginUser);
264 261
             localStorage.setItem("loginUser", loginUserStr);
265 262
             that.areaData = selectedText[0] + " " + selectedText[1] + " " + selectedText[2];