|
|
@ -160,6 +160,8 @@ const DetailModal = defineComponent({ |
|
|
|
showAwsRegion, |
|
|
|
showAwsRegion, |
|
|
|
showConnectType, |
|
|
|
showConnectType, |
|
|
|
showPrincipal, |
|
|
|
showPrincipal, |
|
|
|
|
|
|
|
showMode, |
|
|
|
|
|
|
|
modeOptions, |
|
|
|
loading, |
|
|
|
loading, |
|
|
|
saving, |
|
|
|
saving, |
|
|
|
testing, |
|
|
|
testing, |
|
|
@ -279,6 +281,156 @@ const DetailModal = defineComponent({ |
|
|
|
placeholder={t('datasource.krb5_conf_tips')} |
|
|
|
placeholder={t('datasource.krb5_conf_tips')} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
{/* 验证条件选择 */} |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode} |
|
|
|
|
|
|
|
label={t('datasource.validation')} |
|
|
|
|
|
|
|
path='mode' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NSelect |
|
|
|
|
|
|
|
v-model={[detailForm.mode, 'value']} |
|
|
|
|
|
|
|
options={modeOptions} |
|
|
|
|
|
|
|
></NSelect> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
{/* SqlPassword */} |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'SqlPassword'} |
|
|
|
|
|
|
|
label={t('datasource.database_username')} |
|
|
|
|
|
|
|
path='userName' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.userName, 'value']} |
|
|
|
|
|
|
|
type='text' |
|
|
|
|
|
|
|
placeholder={t('datasource.database_username')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'SqlPassword'} |
|
|
|
|
|
|
|
label={t('datasource.database_password')} |
|
|
|
|
|
|
|
path='password' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.password, 'value']} |
|
|
|
|
|
|
|
type='password' |
|
|
|
|
|
|
|
placeholder={t('datasource.database_password')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
{/* ActiveDirectoryPassword */} |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'ActiveDirectoryPassword'} |
|
|
|
|
|
|
|
label={t('datasource.Azure_AD_username')} |
|
|
|
|
|
|
|
path='userName' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.userName, 'value']} |
|
|
|
|
|
|
|
type='text' |
|
|
|
|
|
|
|
placeholder={t('datasource.Azure_AD_username')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'ActiveDirectoryPassword'} |
|
|
|
|
|
|
|
label={t('datasource.Azure_AD_password')} |
|
|
|
|
|
|
|
path='password' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.password, 'value']} |
|
|
|
|
|
|
|
type='password' |
|
|
|
|
|
|
|
placeholder={t('datasource.Azure_AD_password')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
{/* ActiveDirectoryMSI */} |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'ActiveDirectoryMSI'} |
|
|
|
|
|
|
|
label={t('datasource.MSIClientId')} |
|
|
|
|
|
|
|
path='MSIClientId' |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.MSIClientId, 'value']} |
|
|
|
|
|
|
|
type='password' |
|
|
|
|
|
|
|
placeholder={t('datasource.MSIClientId')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
{/* ActiveDirectoryServicePrincipal */} |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'ActiveDirectoryServicePrincipal'} |
|
|
|
|
|
|
|
label={t('datasource.clientId')} |
|
|
|
|
|
|
|
path='userName' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.userName, 'value']} |
|
|
|
|
|
|
|
type='text' |
|
|
|
|
|
|
|
placeholder={t('datasource.clientId')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'ActiveDirectoryServicePrincipal'} |
|
|
|
|
|
|
|
label={t('datasource.clientSecret')} |
|
|
|
|
|
|
|
path='password' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.password, 'value']} |
|
|
|
|
|
|
|
type='password' |
|
|
|
|
|
|
|
placeholder={t('datasource.clientSecret')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
{/* accessToken */} |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'accessToken'} |
|
|
|
|
|
|
|
label={t('datasource.clientId')} |
|
|
|
|
|
|
|
path='userName' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.userName, 'value']} |
|
|
|
|
|
|
|
type='text' |
|
|
|
|
|
|
|
placeholder={t('datasource.clientId')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'accessToken'} |
|
|
|
|
|
|
|
label={t('datasource.clientSecret')} |
|
|
|
|
|
|
|
path='password' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.password, 'value']} |
|
|
|
|
|
|
|
type='password' |
|
|
|
|
|
|
|
placeholder={t('datasource.clientSecret')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={showMode && detailForm.mode === 'accessToken'} |
|
|
|
|
|
|
|
label={t('datasource.OAuth_token_endpoint')} |
|
|
|
|
|
|
|
path='endpoint' |
|
|
|
|
|
|
|
show-require-mark |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<NInput |
|
|
|
|
|
|
|
allowInput={this.trim} |
|
|
|
|
|
|
|
v-model={[detailForm.endpoint, 'value']} |
|
|
|
|
|
|
|
type='text' |
|
|
|
|
|
|
|
placeholder={t('datasource.OAuth_token_endpoint')} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</NFormItem> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<NFormItem |
|
|
|
<NFormItem |
|
|
|
v-show={showPrincipal} |
|
|
|
v-show={showPrincipal} |
|
|
|
label='keytab.username' |
|
|
|
label='keytab.username' |
|
|
@ -304,6 +456,7 @@ const DetailModal = defineComponent({ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
<NFormItem |
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={!showMode} |
|
|
|
label={t('datasource.user_name')} |
|
|
|
label={t('datasource.user_name')} |
|
|
|
path='userName' |
|
|
|
path='userName' |
|
|
|
show-require-mark |
|
|
|
show-require-mark |
|
|
@ -318,6 +471,7 @@ const DetailModal = defineComponent({ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</NFormItem> |
|
|
|
</NFormItem> |
|
|
|
<NFormItem |
|
|
|
<NFormItem |
|
|
|
|
|
|
|
v-show={!showMode} |
|
|
|
label={t('datasource.user_password')} |
|
|
|
label={t('datasource.user_password')} |
|
|
|
path='password' |
|
|
|
path='password' |
|
|
|
> |
|
|
|
> |
|
|
|