|
|
@ -346,8 +346,8 @@ onMounted(async () => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="edit-base max-w-800px mx-auto bg-white relative flex flex-col justify-center gap-2 w-full p-8"> |
|
|
|
<div class="edit-base max-w-800px bg-white relative flex flex-col justify-start gap-2 w-full p-2"> |
|
|
|
<h1 class="prose-2xl font-bold self-center my-4">Edit Base</h1> |
|
|
|
<h1 class="prose-2xl font-bold self-start">Edit Base</h1> |
|
|
|
|
|
|
|
|
|
|
|
<a-form |
|
|
|
<a-form |
|
|
|
ref="form" |
|
|
|
ref="form" |
|
|
@ -465,15 +465,16 @@ onMounted(async () => { |
|
|
|
> |
|
|
|
> |
|
|
|
<a-input v-model:value="formState.dataSource.searchPath[0]" /> |
|
|
|
<a-input v-model:value="formState.dataSource.searchPath[0]" /> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<!-- Use Connection URL --> |
|
|
|
|
|
|
|
<div class="flex justify-end gap-2"> |
|
|
|
|
|
|
|
<a-button type="primary" class="nc-extdb-btn-import-url !rounded-md" @click.stop="importURLDlg = true"> |
|
|
|
|
|
|
|
{{ $t('activity.useConnectionUrl') }} |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
<a-collapse ghost expand-icon-position="right" class="!mt-6"> |
|
|
|
<a-collapse ghost expand-icon-position="right" class="!mt-6"> |
|
|
|
<a-collapse-panel key="1"> |
|
|
|
<a-collapse-panel key="1"> |
|
|
|
<template #header> |
|
|
|
<template #header> |
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
<div class="flex items-center gap-2"> |
|
|
|
<!-- Use Connection URL --> |
|
|
|
|
|
|
|
<a-button type="default" class="nc-extdb-btn-import-url" @click.stop="importURLDlg = true"> |
|
|
|
|
|
|
|
{{ $t('activity.useConnectionUrl') }} |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
<span>{{ $t('title.advancedParameters') }}</span> |
|
|
|
<span>{{ $t('title.advancedParameters') }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -572,7 +573,7 @@ onMounted(async () => { |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-end"> |
|
|
|
<div class="flex justify-end"> |
|
|
|
<a-button class="!shadow-md" @click="handleEditJSON()"> |
|
|
|
<a-button type="primary" class="!rounded-md" @click="handleEditJSON()"> |
|
|
|
<!-- Edit connection JSON --> |
|
|
|
<!-- Edit connection JSON --> |
|
|
|
{{ $t('activity.editConnJson') }} |
|
|
|
{{ $t('activity.editConnJson') }} |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
@ -581,13 +582,13 @@ onMounted(async () => { |
|
|
|
</a-collapse> |
|
|
|
</a-collapse> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<a-form-item class="flex justify-center !mt-5"> |
|
|
|
<a-form-item class="flex justify-end !mt-5"> |
|
|
|
<div class="flex justify-center gap-2"> |
|
|
|
<div class="flex justify-end gap-2"> |
|
|
|
<a-button type="primary" ghost class="nc-extdb-btn-test-connection" @click="testConnection"> |
|
|
|
<a-button type="text" class="nc-extdb-btn-test-connection" @click="testConnection"> |
|
|
|
{{ $t('activity.testDbConn') }} |
|
|
|
{{ $t('activity.testDbConn') }} |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
|
|
|
|
|
|
|
|
<a-button type="primary" :disabled="!testSuccess" class="nc-extdb-btn-submit !shadow" @click="editBase"> |
|
|
|
<a-button type="primary" :disabled="!testSuccess" class="nc-extdb-btn-submit !rounded-md" @click="editBase"> |
|
|
|
{{ $t('general.submit') }} |
|
|
|
{{ $t('general.submit') }} |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|