Skip to content

Commit

Permalink
Merge pull request #184 from Aqr-K/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 14, 2024
2 parents 40fcf9d + 6a6100a commit 61bb96e
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/components/dialog/UserAddEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const userForm = ref<User>({
email: '',
is_active: false,
is_superuser: false,
avatar: '',
avatar: avatar1,
is_otp: false,
permissions: {},
settings: {
Expand Down Expand Up @@ -179,12 +179,22 @@ onMounted(() => {
</VCardText>
<VCardText>
<VForm @submit.prevent="() => {}" class="mt-3">
<VDivider class="my-10">
<span>用户基础设置</span>
</VDivider>
<VRow>
<VCol md="6" cols="12">
<VTextField v-model="userForm.name" density="comfortable" label="用户名" />
<VCol md="6" cols="12" v-if="props.oper === 'add'">
<VTextField v-model="userForm.name"
density="comfortable"
label="用户名"
/>
</VCol>
<VCol cols="12" md="6">
<VTextField v-model="userForm.email" density="comfortable" label="邮箱" type="email" />
<VTextField v-model="userForm.email"
density="comfortable"
label="邮箱"
type="email"
/>
</VCol>
<VCol cols="12" md="6">
<VTextField
Expand Down Expand Up @@ -219,6 +229,9 @@ onMounted(() => {
/>
</VCol>
</VRow>
<VDivider class="my-10">
<span>消息账号绑定</span>
</VDivider>
<VRow>
<VCol cols="12" md="6">
<VTextField v-model="userForm.settings.wechat_userid" density="comfortable" label="微信用户" />
Expand Down

0 comments on commit 61bb96e

Please sign in to comment.