Browse Source

chore: 调整页面样式

master
wangxiang 2 years ago
parent
commit
78b77a8b47
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 15
      src/views/system/user/sso/SsoModal.vue
  2. 39
      src/views/system/user/sso/sso.data.ts

15
src/views/system/user/sso/SsoModal.vue

@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
<template>
<BasicModal
v-bind="$attrs"
width="720px"
width="988px"
class="user-modal"
@ok="handleSubmit"
@register="registerModal"
>
@ -10,13 +11,13 @@ @@ -10,13 +11,13 @@
<BasicForm @register="registerForm"/>
</ACol>
<ACol :span="10">
<div class="change-avatar">
<div class="user-modal-avatar">
<CropperAvatar
:uploadApi="commonUpload"
:value="state.avatar"
btnText="更换头像"
:btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }"
:width="150"
:width="250"
@change="handleAvatarChange"
/>
</div>
@ -164,8 +165,10 @@ @@ -164,8 +165,10 @@
});
</script>
<style lang="less" scoped>
.change-avatar {
margin-top: 35px;
text-align: center;
.user-modal {
&-avatar {
margin-top: 45px;
text-align: center;
}
}
</style>

39
src/views/system/user/sso/sso.data.ts

@ -87,6 +87,12 @@ export const userFormSchema: FormSchema[] = [ @@ -87,6 +87,12 @@ export const userFormSchema: FormSchema[] = [
component: 'Input',
show: false
},
{
field: 'nickName',
label: '昵称',
component: 'Input',
required: true
},
{
field: 'userName',
label: '用户名',
@ -97,10 +103,16 @@ export const userFormSchema: FormSchema[] = [ @@ -97,10 +103,16 @@ export const userFormSchema: FormSchema[] = [
}
},
{
field: 'nickName',
label: '用户昵称',
component: 'Input',
field: 'sex',
label: '性别',
component: 'Select',
required: true,
componentProps: {
options: [
{ label: '男', value: '0' },
{ label: '女', value: '1' }
]
},
colProps: {
span: 12
}
@ -109,9 +121,6 @@ export const userFormSchema: FormSchema[] = [ @@ -109,9 +121,6 @@ export const userFormSchema: FormSchema[] = [
field: 'password',
label: '密码',
component: 'InputPassword',
colProps: {
span: 12
},
rules: [
{
required: true,
@ -162,30 +171,12 @@ export const userFormSchema: FormSchema[] = [ @@ -162,30 +171,12 @@ export const userFormSchema: FormSchema[] = [
}
]
},
{
field: 'sex',
label: '性别',
component: 'Select',
required: true,
componentProps: {
options: [
{ label: '男', value: '0' },
{ label: '女', value: '1' }
]
},
colProps: {
span: 12
}
},
{
field: 'remarks',
label: '备注',
component: 'InputTextArea',
componentProps: {
rows: 6
},
colProps: {
span: 24
}
}
];

Loading…
Cancel
Save