
--- client/views/pages/admin/user/UserSelectList.vue
+++ client/views/pages/admin/user/UserSelectList.vue
... | ... | @@ -31,7 +31,8 @@ |
31 | 31 |
<td>{{ user.user_id }}</td> |
32 | 32 |
<td>{{ user.user_nm }}</td> |
33 | 33 |
<td>{{ user.user_eml }}</td> |
34 |
- <td><button class="red-btn" v-if="user.create_account_approval === 'N'" |
|
34 |
+ <td><button class="red-btn" |
|
35 |
+ v-if="user.create_account_approval === 'N'" |
|
35 | 36 |
@click="confirmCheck(user.user_id)">승인</button> |
36 | 37 |
<span v-else class="approve">승인 완료</span> |
37 | 38 |
</td> |
... | ... | @@ -48,17 +49,21 @@ |
48 | 49 |
<th>기업명</th> |
49 | 50 |
<th>담당자명</th> |
50 | 51 |
<th>이메일</th> |
51 |
- <th>포인트</th> |
|
52 | 52 |
<th>승인</th> |
53 | 53 |
</tr> |
54 | 54 |
</thead> |
55 | 55 |
<tbody> |
56 | 56 |
<tr v-for="(company, index) in companyList" :key="index"> |
57 | 57 |
<td v-show="company.use_yn === 'Y'">{{ companyIdx - index }}</td> |
58 |
- <td v-show="company.use_yn === 'Y'">{{ company.company_id }}</td> |
|
58 |
+ <td v-show="company.use_yn === 'Y'">{{ company.user_id }}</td> |
|
59 | 59 |
<td v-show="company.use_yn === 'Y'">{{ company.company_nm }}</td> |
60 |
- <!-- <td>{{ company.name }}</td> --> |
|
61 |
- <td v-show="company.use_yn === 'Y'">{{ company.company_point }}</td> |
|
60 |
+ <td v-show="company.use_yn === 'Y'">{{ company.user_nm }}</td> |
|
61 |
+ <td v-show="company.use_yn === 'Y'">{{ company.user_eml }}</td> |
|
62 |
+ <td v-show="company.use_yn === 'Y'"><button class="red-btn" |
|
63 |
+ v-if="company.create_account_approval === 'N'" |
|
64 |
+ @click="confirmCheck(user.user_id)">승인</button> |
|
65 |
+ <span v-else class="approve">승인 완료</span> |
|
66 |
+ </td> |
|
62 | 67 |
</tr> |
63 | 68 |
</tbody> |
64 | 69 |
</table> |
... | ... | @@ -402,7 +407,7 @@ |
402 | 407 |
}, |
403 | 408 |
data: vm.managerListSearch |
404 | 409 |
}).then(function (response) { |
405 |
- //console.log("companySelectList - response : ", response.data); |
|
410 |
+ console.log("companySelectList - response : ", response.data); |
|
406 | 411 |
vm.companyListCount = response.data.companyListCount; |
407 | 412 |
vm.companyList = response.data.companyList; |
408 | 413 |
vm.companyIdx = vm.companyListCount - (vm.companyListSearch.currentPage - 1) * vm.companyListSearch.perPage; |
... | ... | @@ -444,7 +449,7 @@ |
444 | 449 |
|
445 | 450 |
//상세조회 페이지로 이동 |
446 | 451 |
userSelectOnePage: function (user) { |
447 |
- this.$router.push({ path: '/adm/userSelectOne.page', query: { 'user_id': user.user_id} }); |
|
452 |
+ this.$router.push({ path: '/adm/userSelectOne.page', query: { 'user_id': user.user_id } }); |
|
448 | 453 |
}, |
449 | 454 |
}, |
450 | 455 |
watch: { |
--- client/views/pages/admin/user/UserSelectOne.vue
+++ client/views/pages/admin/user/UserSelectOne.vue
... | ... | @@ -8,25 +8,81 @@ |
8 | 8 |
</div> |
9 | 9 |
</div> |
10 | 10 |
<div class="content-wrap"> |
11 |
- |
|
11 |
+ |
|
12 | 12 |
</div> |
13 | 13 |
</div> |
14 | 14 |
|
15 | 15 |
</div> |
16 | 16 |
</template> |
17 | 17 |
<script> |
18 |
+import axios from 'axios'; |
|
19 |
+import { useRoute } from 'vue-router'; |
|
20 |
+ |
|
18 | 21 |
export default { |
19 | 22 |
data() { |
20 | 23 |
return { |
21 |
- currentTab: 0, |
|
22 |
- tabMenu: ['일반회원', '기업회원', '관리자'] |
|
24 |
+ user: { |
|
25 |
+ approval_dt: |
|
26 |
+ |
|
27 |
+approval_mngr_id |
|
28 |
+: |
|
29 |
+null |
|
30 |
+company_id |
|
31 |
+: |
|
32 |
+null |
|
33 |
+create_account_approval |
|
34 |
+: |
|
35 |
+"Y" |
|
36 |
+use_yn |
|
37 |
+: |
|
38 |
+"Y" |
|
39 |
+user_auth |
|
40 |
+: |
|
41 |
+"company" |
|
42 |
+user_eml |
|
43 |
+: |
|
44 |
+"klmzzz1623w@naver.com" |
|
45 |
+user_id |
|
46 |
+: |
|
47 |
+"aowetj" |
|
48 |
+user_nm |
|
49 |
+: |
|
50 |
+"리리리" |
|
51 |
+user_pw |
|
52 |
+: |
|
53 |
+"e9ba7b4f21a00c5c64957af969df852c3f18258e11a235ff8c216ed5beb993fd" |
|
54 |
+user_reg_dt |
|
55 |
+: |
|
56 |
+"2023-11-06 15:04:00" |
|
57 |
+ }, |
|
58 |
+ route: useRoute(), |
|
23 | 59 |
}; |
24 | 60 |
}, |
25 |
- methods: {}, |
|
61 |
+ methods: { |
|
62 |
+ userSelectOne: function () { |
|
63 |
+ const vm = this; |
|
64 |
+ axios({ |
|
65 |
+ url: '/user/userSelectOne.json', |
|
66 |
+ method: 'post', |
|
67 |
+ hearder: { |
|
68 |
+ 'Content-Type': "application/json; charset=UTF-8", |
|
69 |
+ }, |
|
70 |
+ data: { 'user_id': vm.route.query.user_id } |
|
71 |
+ }).then(function (response) { |
|
72 |
+ //console.log("response-",response.data); |
|
73 |
+ vm.user = response.data |
|
74 |
+ }).catch(function (error) { |
|
75 |
+ console.log("error - ", error) |
|
76 |
+ alert("사용자 상세보기 오류, 관리자에게 문의하세요."); |
|
77 |
+ }) |
|
78 |
+ }, |
|
79 |
+ }, |
|
26 | 80 |
watch: {}, |
27 | 81 |
computed: {}, |
28 | 82 |
components: {}, |
29 |
- mounted() { }, |
|
83 |
+ mounted() { |
|
84 |
+ this.userSelectOne(); |
|
85 |
+ }, |
|
30 | 86 |
}; |
31 | 87 |
</script> |
32 |
-<style scoped></style>> |
|
88 |
+<style scoped></style> |
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?