
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
... | ... | @@ -271,8 +271,6 @@ |
271 | 271 |
titleBookName: "", |
272 | 272 |
|
273 | 273 |
images: [], |
274 |
- unit_id: "", |
|
275 |
- book_id: "", |
|
276 | 274 |
|
277 | 275 |
selectedImage: [ |
278 | 276 |
{ |
... | ... | @@ -333,6 +331,8 @@ |
333 | 331 |
if (this.$route.query.reCapture == "true") { |
334 | 332 |
this.openCameraModal(); |
335 | 333 |
} |
334 |
+ |
|
335 |
+ this.searchStdId(); |
|
336 | 336 |
}, |
337 | 337 |
|
338 | 338 |
//은진 |
... | ... | @@ -764,6 +764,29 @@ |
764 | 764 |
closeBtn() { |
765 | 765 |
this.searchOpen = false; |
766 | 766 |
}, |
767 |
+ |
|
768 |
+ // 유저 아이디를 unit 아이디를 통해 가져오기 |
|
769 |
+ searchStdId() { |
|
770 |
+ const userInfo = this.$store.getters.getUserInfo; |
|
771 |
+ axios({ |
|
772 |
+ url: "/userclass/searchStdId.json", |
|
773 |
+ method: "post", |
|
774 |
+ headers: { |
|
775 |
+ "Content-Type": "application/json; charset=UTF-8", |
|
776 |
+ }, |
|
777 |
+ data: { |
|
778 |
+ userId: userInfo.userId, |
|
779 |
+ unitId: this.unit_id, |
|
780 |
+ }, |
|
781 |
+ }) |
|
782 |
+ .then((response) => { |
|
783 |
+ this.$store.commit('setStdId', response.data); |
|
784 |
+ }) |
|
785 |
+ .catch((err) => { |
|
786 |
+ console.log("지문 에러 : ", err); |
|
787 |
+ }); |
|
788 |
+ }, |
|
789 |
+ |
|
767 | 790 |
}, |
768 | 791 |
components: { |
769 | 792 |
SvgIcon, |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?