|
|
@ -57,6 +57,8 @@ export const UserModal = defineComponent({ |
|
|
|
onCancel={this.onModalCancel} |
|
|
|
onCancel={this.onModalCancel} |
|
|
|
confirmLoading={this.confirmLoading} |
|
|
|
confirmLoading={this.confirmLoading} |
|
|
|
onConfirm={this.onConfirm} |
|
|
|
onConfirm={this.onConfirm} |
|
|
|
|
|
|
|
confirmClassName='btn-submit' |
|
|
|
|
|
|
|
cancelClassName='btn-cancel' |
|
|
|
> |
|
|
|
> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
default: () => { |
|
|
|
default: () => { |
|
|
@ -78,6 +80,7 @@ export const UserModal = defineComponent({ |
|
|
|
> |
|
|
|
> |
|
|
|
<NFormItem label={t('security.user.username')} path='userName'> |
|
|
|
<NFormItem label={t('security.user.username')} path='userName'> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
|
|
|
|
class='input-username' |
|
|
|
inputProps={{ autocomplete: 'off' }} |
|
|
|
inputProps={{ autocomplete: 'off' }} |
|
|
|
v-model:value={this.formValues.userName} |
|
|
|
v-model:value={this.formValues.userName} |
|
|
|
/> |
|
|
|
/> |
|
|
@ -87,6 +90,7 @@ export const UserModal = defineComponent({ |
|
|
|
path='userPassword' |
|
|
|
path='userPassword' |
|
|
|
> |
|
|
|
> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
|
|
|
|
class='input-password' |
|
|
|
inputProps={{ autocomplete: 'off' }} |
|
|
|
inputProps={{ autocomplete: 'off' }} |
|
|
|
type='password' |
|
|
|
type='password' |
|
|
|
v-model:value={this.formValues.userPassword} |
|
|
|
v-model:value={this.formValues.userPassword} |
|
|
@ -97,27 +101,39 @@ export const UserModal = defineComponent({ |
|
|
|
path='tenantId' |
|
|
|
path='tenantId' |
|
|
|
> |
|
|
|
> |
|
|
|
<NSelect |
|
|
|
<NSelect |
|
|
|
|
|
|
|
class='select-tenant' |
|
|
|
options={this.tenants} |
|
|
|
options={this.tenants} |
|
|
|
v-model:value={this.formValues.tenantId} |
|
|
|
v-model:value={this.formValues.tenantId} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
<NFormItem label={t('security.user.queue')} path='queue'> |
|
|
|
<NFormItem label={t('security.user.queue')} path='queue'> |
|
|
|
<NSelect |
|
|
|
<NSelect |
|
|
|
|
|
|
|
class='select-queue' |
|
|
|
options={this.queues} |
|
|
|
options={this.queues} |
|
|
|
v-model:value={this.formValues.queue} |
|
|
|
v-model:value={this.formValues.queue} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
<NFormItem label={t('security.user.email')} path='email'> |
|
|
|
<NFormItem label={t('security.user.email')} path='email'> |
|
|
|
<NInput v-model:value={this.formValues.email} /> |
|
|
|
<NInput |
|
|
|
|
|
|
|
class='input-email' |
|
|
|
|
|
|
|
v-model:value={this.formValues.email} |
|
|
|
|
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
<NFormItem label={t('security.user.phone')} path='phone'> |
|
|
|
<NFormItem label={t('security.user.phone')} path='phone'> |
|
|
|
<NInput v-model:value={this.formValues.phone} /> |
|
|
|
<NInput |
|
|
|
|
|
|
|
class='input-phone' |
|
|
|
|
|
|
|
v-model:value={this.formValues.phone} |
|
|
|
|
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
<NFormItem label={t('security.user.state')} path='state'> |
|
|
|
<NFormItem label={t('security.user.state')} path='state'> |
|
|
|
<NRadioGroup v-model:value={this.formValues.state}> |
|
|
|
<NRadioGroup v-model:value={this.formValues.state}> |
|
|
|
<NSpace> |
|
|
|
<NSpace> |
|
|
|
<NRadio value={1}>启用</NRadio> |
|
|
|
<NRadio value={1} class='radio-state-enable'> |
|
|
|
<NRadio value={0}>停用</NRadio> |
|
|
|
启用 |
|
|
|
|
|
|
|
</NRadio> |
|
|
|
|
|
|
|
<NRadio value={0} class='radio-state-disable'> |
|
|
|
|
|
|
|
停用 |
|
|
|
|
|
|
|
</NRadio> |
|
|
|
</NSpace> |
|
|
|
</NSpace> |
|
|
|
</NRadioGroup> |
|
|
|
</NRadioGroup> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|