Showing
1 changed file
with
11 additions
and
10 deletions
@@ -54,10 +54,9 @@ | @@ -54,10 +54,9 @@ | ||
54 | <Description | 54 | <Description |
55 | class="mt-8" | 55 | class="mt-8" |
56 | :column="1" | 56 | :column="1" |
57 | - :schema="schema" | ||
58 | :bordered="true" | 57 | :bordered="true" |
59 | :data="getPersonalDetailValue" | 58 | :data="getPersonalDetailValue" |
60 | - @register="registerDesc" | 59 | + :schema="schema" |
61 | /> | 60 | /> |
62 | </div> | 61 | </div> |
63 | <div | 62 | <div |
@@ -84,7 +83,7 @@ | @@ -84,7 +83,7 @@ | ||
84 | import { BasicModal, useModalInner } from '/@/components/Modal/index'; | 83 | import { BasicModal, useModalInner } from '/@/components/Modal/index'; |
85 | import { BasicForm, useForm } from '/@/components/Form/index'; | 84 | import { BasicForm, useForm } from '/@/components/Form/index'; |
86 | import { formSchema } from './config'; | 85 | import { formSchema } from './config'; |
87 | - import { Description, DescItem, useDescription } from '/@/components/Description/index'; | 86 | + import { Description, DescItem } from '/@/components/Description/index'; |
88 | import { uploadApi, personalPut } from '/@/api/personal/index'; | 87 | import { uploadApi, personalPut } from '/@/api/personal/index'; |
89 | import { useMessage } from '/@/hooks/web/useMessage'; | 88 | import { useMessage } from '/@/hooks/web/useMessage'; |
90 | import { USER_INFO_KEY } from '/@/enums/cacheEnum'; | 89 | import { USER_INFO_KEY } from '/@/enums/cacheEnum'; |
@@ -121,6 +120,14 @@ | @@ -121,6 +120,14 @@ | ||
121 | label: '创建时间:', | 120 | label: '创建时间:', |
122 | }, | 121 | }, |
123 | ]; | 122 | ]; |
123 | + const mockData: Recordable = { | ||
124 | + username: 'test', | ||
125 | + phoneNumber: 'VB', | ||
126 | + email: '123', | ||
127 | + realName: '15695909xxx', | ||
128 | + accountExpireTime: '190848757@qq.com', | ||
129 | + createTime: '厦门市思明区', | ||
130 | + }; | ||
124 | export default defineComponent({ | 131 | export default defineComponent({ |
125 | name: 'Index', | 132 | name: 'Index', |
126 | components: { BasicModal, BasicForm, Description, Upload, PlusOutlined, LoadingOutlined }, | 133 | components: { BasicModal, BasicForm, Description, Upload, PlusOutlined, LoadingOutlined }, |
@@ -136,12 +143,6 @@ | @@ -136,12 +143,6 @@ | ||
136 | const getData: any = ref({}); | 143 | const getData: any = ref({}); |
137 | const updataPersonlData: any = ref({}); | 144 | const updataPersonlData: any = ref({}); |
138 | const userStore = useUserStore(); | 145 | const userStore = useUserStore(); |
139 | - // const getUpdateUserInfo: any = ref({}); | ||
140 | - const [registerDesc] = useDescription({ | ||
141 | - title: '个人详情', | ||
142 | - schema: schema, | ||
143 | - }); | ||
144 | - | ||
145 | const peresonalPic = ref(); | 146 | const peresonalPic = ref(); |
146 | 147 | ||
147 | const customUploadqrcodePic = async ({ file }) => { | 148 | const customUploadqrcodePic = async ({ file }) => { |
@@ -242,11 +243,11 @@ | @@ -242,11 +243,11 @@ | ||
242 | compHeight, | 243 | compHeight, |
243 | handleSubmit, | 244 | handleSubmit, |
244 | getPersonalDetailValue, | 245 | getPersonalDetailValue, |
245 | - registerDesc, | ||
246 | schema, | 246 | schema, |
247 | registerModal, | 247 | registerModal, |
248 | registerForm, | 248 | registerForm, |
249 | loading, | 249 | loading, |
250 | + mockData | ||
250 | }; | 251 | }; |
251 | }, | 252 | }, |
252 | }); | 253 | }); |