1
|
1
|
<template>
|
2
|
2
|
<BasicModal
|
3
|
|
- width="82vw"
|
|
3
|
+ width="80%"
|
4
|
4
|
:height="compHeight"
|
5
|
5
|
v-bind="$attrs"
|
6
|
6
|
@register="registerModal"
|
7
|
7
|
@ok="handleSubmit"
|
|
8
|
+ title="个人信息"
|
8
|
9
|
:draggable="false"
|
9
|
|
- class="basic-modal"
|
10
|
|
- className="{styles.headSetPop}"
|
|
10
|
+ wrap-class-name="personal-info-modal"
|
11
|
11
|
>
|
12
|
|
- <div
|
13
|
|
- style="
|
14
|
|
- height: 62vh;
|
15
|
|
- width: 120vw;
|
16
|
|
- display: flex;
|
17
|
|
- flex-direction: row;
|
18
|
|
- align-items: center;
|
19
|
|
- justify-content: space-between;
|
20
|
|
- "
|
21
|
|
- >
|
22
|
|
- <div style="width: 29vw; height: 62vh; border: 1px solid #e9edf6; box-shadow: 0 0 5px -5px">
|
23
|
|
- <div style="width: 29vw; height: 4vh; border: 1px solid #e9edf6"
|
24
|
|
- ><p style="font-size: 17px; margin-top: 7px; margin-left: 10px">个人信息</p></div
|
25
|
|
- >
|
26
|
|
- <div class="change-avatar" style="text-align: center">
|
27
|
|
- <div class="mb-2" style="font-weight: 700">个人头像</div>
|
28
|
|
- <div style="display: flex; align-items: center; justify-content: center">
|
29
|
|
- <div>
|
30
|
|
- <Upload
|
31
|
|
- name="avatar"
|
32
|
|
- list-type="picture-card"
|
33
|
|
- class="avatar-uploader"
|
34
|
|
- :show-upload-list="false"
|
35
|
|
- :customRequest="customUploadqrcodePic"
|
36
|
|
- :before-upload="beforeUploadqrcodePic"
|
37
|
|
- >
|
38
|
|
- <img
|
39
|
|
- style="border-radius: 50%; height: 8.75rem; width: 10rem"
|
40
|
|
- v-if="peresonalPic || headerImg"
|
41
|
|
- :src="peresonalPic || headerImg"
|
42
|
|
- alt="avatar"
|
43
|
|
- />
|
44
|
|
- <div v-else>
|
45
|
|
- <div>
|
46
|
|
- <LoadingOutlined style="font-size: 30px" v-if="loading" />
|
47
|
|
- <PlusOutlined v-else style="font-size: 30px" />
|
48
|
|
- </div>
|
|
12
|
+ <div class="flex">
|
|
13
|
+ <div class="flex flex-col w-1/2 border border-gray-200">
|
|
14
|
+ <div class="text-center cursor-pointer">
|
|
15
|
+ <div class="text-left text-lg border-gray-200 p-2 border">个人头像</div>
|
|
16
|
+ <div class="flex items-center justify-center mt-4">
|
|
17
|
+ <Upload
|
|
18
|
+ name="avatar"
|
|
19
|
+ list-type="picture-card"
|
|
20
|
+ class="round !flex justify-center items-center"
|
|
21
|
+ :show-upload-list="false"
|
|
22
|
+ :customRequest="customUploadqrcodePic"
|
|
23
|
+ :before-upload="beforeUploadqrcodePic"
|
|
24
|
+ >
|
|
25
|
+ <img
|
|
26
|
+ class="round"
|
|
27
|
+ v-if="peresonalPic || headerImg"
|
|
28
|
+ :src="peresonalPic || headerImg"
|
|
29
|
+ alt="avatar"
|
|
30
|
+ />
|
|
31
|
+ <div v-else>
|
|
32
|
+ <div>
|
|
33
|
+ <LoadingOutlined class="text-3xl" v-if="loading" />
|
|
34
|
+ <PlusOutlined v-else class="text-3xl" />
|
49
|
35
|
</div>
|
50
|
|
- </Upload>
|
51
|
|
- </div>
|
|
36
|
+ </div>
|
|
37
|
+ </Upload>
|
52
|
38
|
</div>
|
53
|
39
|
</div>
|
|
40
|
+
|
54
|
41
|
<Description
|
55
|
|
- class="mt-8"
|
|
42
|
+ class="mt-8 p-4"
|
56
|
43
|
:column="1"
|
57
|
44
|
:bordered="true"
|
58
|
45
|
:data="getPersonalDetailValue"
|
59
|
46
|
:schema="schema"
|
60
|
47
|
/>
|
61
|
48
|
</div>
|
62
|
|
- <div
|
63
|
|
- style="
|
64
|
|
- width: 90vw;
|
65
|
|
- height: 60vh;
|
66
|
|
- border: 1px solid #e9edf6;
|
67
|
|
- margin-top: -15px;
|
68
|
|
- box-shadow: 0 0 5px -5px;
|
69
|
|
- "
|
70
|
|
- >
|
71
|
|
- <div style="height: 4vh; border: 1px solid #e9edf6"
|
72
|
|
- ><p style="font-size: 17px; margin-top: 7px; margin-left: 20px">基本资料</p></div
|
73
|
|
- >
|
74
|
|
- <div style="margin-left: 20px">
|
|
49
|
+ <div class="ml-4 border border-gray-200">
|
|
50
|
+ <div class="text-lg p-2 border border-gray-200"> 基本资料 </div>
|
|
51
|
+ <div class="ml-5">
|
75
|
52
|
<BasicForm @register="registerForm" />
|
76
|
53
|
</div>
|
77
|
54
|
</div>
|
...
|
...
|
@@ -192,7 +169,7 @@ |
192
|
169
|
phoneNumber: updataPersonlData.value.phoneNumber,
|
193
|
170
|
email: updataPersonlData.value.email,
|
194
|
171
|
});
|
195
|
|
- getPersonalDetailValue.value = updataPersonlData.value;
|
|
172
|
+ getPersonalDetailValue.value = userInfo;
|
196
|
173
|
} else {
|
197
|
174
|
if (userInfo) {
|
198
|
175
|
getPersonalDetailValue.value = userInfo;
|
...
|
...
|
@@ -255,18 +232,14 @@ |
255
|
232
|
});
|
256
|
233
|
</script>
|
257
|
234
|
<style scoped lang="less">
|
258
|
|
- .change-avatar {
|
259
|
|
- :deep .ant-upload-select-picture-card {
|
260
|
|
- border-radius: 50%;
|
261
|
|
- width: 10rem;
|
262
|
|
- height: 10rem;
|
263
|
|
- overflow: hidden;
|
264
|
|
- cursor: pointer;
|
265
|
|
- transition: border-color 0.3s ease;
|
266
|
|
- }
|
|
235
|
+ .round {
|
|
236
|
+ border-radius: 50%;
|
267
|
237
|
}
|
268
|
238
|
|
269
|
|
- .headSetPop :global(.ant-modal-header) {
|
270
|
|
- padding: 27px 0 !important;
|
|
239
|
+ .personal-info-modal:global(.ant-upload.ant-upload-select-picture-card) {
|
|
240
|
+ border-radius: 50%;
|
|
241
|
+ width: 140px;
|
|
242
|
+ height: 140px;
|
|
243
|
+ margin: 0 !important;
|
271
|
244
|
}
|
272
|
245
|
</style> |
...
|
...
|
|