|
|
@ -139,6 +139,8 @@ const TokenModal = defineComponent({ |
|
|
|
confirmDisabled={ |
|
|
|
confirmDisabled={ |
|
|
|
!this.model.userId || !this.model.expireTime || !this.model.token |
|
|
|
!this.model.userId || !this.model.expireTime || !this.model.token |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
confirmClassName='btn-submit' |
|
|
|
|
|
|
|
cancelClassName='btn-cancel' |
|
|
|
> |
|
|
|
> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
default: () => ( |
|
|
|
default: () => ( |
|
|
@ -163,6 +165,7 @@ const TokenModal = defineComponent({ |
|
|
|
'GENERAL_USER' && ( |
|
|
|
'GENERAL_USER' && ( |
|
|
|
<NFormItem label={t('security.token.user')} path='userId'> |
|
|
|
<NFormItem label={t('security.token.user')} path='userId'> |
|
|
|
<NSelect |
|
|
|
<NSelect |
|
|
|
|
|
|
|
class='username' |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
placeholder={t('security.token.user_tips')} |
|
|
|
placeholder={t('security.token.user_tips')} |
|
|
|
options={this.model.generalOptions} |
|
|
|
options={this.model.generalOptions} |
|
|
@ -173,12 +176,14 @@ const TokenModal = defineComponent({ |
|
|
|
<NFormItem label={t('security.token.token')} path='token'> |
|
|
|
<NFormItem label={t('security.token.token')} path='token'> |
|
|
|
<NSpace> |
|
|
|
<NSpace> |
|
|
|
<NInput |
|
|
|
<NInput |
|
|
|
|
|
|
|
class='token' |
|
|
|
style={{ width: '504px' }} |
|
|
|
style={{ width: '504px' }} |
|
|
|
disabled |
|
|
|
disabled |
|
|
|
placeholder={t('security.token.token_tips')} |
|
|
|
placeholder={t('security.token.token_tips')} |
|
|
|
v-model={[this.model.token, 'value']} |
|
|
|
v-model={[this.model.token, 'value']} |
|
|
|
/> |
|
|
|
/> |
|
|
|
<NButton |
|
|
|
<NButton |
|
|
|
|
|
|
|
class='btn-generate-token' |
|
|
|
strong |
|
|
|
strong |
|
|
|
secondary |
|
|
|
secondary |
|
|
|
circle |
|
|
|
circle |
|
|
|