|
|
@ -92,7 +92,12 @@ const renameTable = async () => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<a-modal v-model:visible="dialogShow" title="Rename Table" @keydown.esc="dialogShow = false" @finish="renameTable"> |
|
|
|
<a-modal |
|
|
|
|
|
|
|
v-model:visible="dialogShow" |
|
|
|
|
|
|
|
:title="$t('activity.renameTable')" |
|
|
|
|
|
|
|
@keydown.esc="dialogShow = false" |
|
|
|
|
|
|
|
@finish="renameTable" |
|
|
|
|
|
|
|
> |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button> |
|
|
|
<a-button key="back" @click="dialogShow = false">{{ $t('general.cancel') }}</a-button> |
|
|
|
<a-button key="submit" type="primary" :loading="loading" @click="renameTable">{{ $t('general.submit') }}</a-button> |
|
|
|
<a-button key="submit" type="primary" :loading="loading" @click="renameTable">{{ $t('general.submit') }}</a-button> |
|
|
@ -100,9 +105,15 @@ const renameTable = async () => { |
|
|
|
<div class="pl-10 pr-10 pt-5"> |
|
|
|
<div class="pl-10 pr-10 pt-5"> |
|
|
|
<a-form :model="formState" name="create-new-table-form"> |
|
|
|
<a-form :model="formState" name="create-new-table-form"> |
|
|
|
<!-- hint="Enter table name" --> |
|
|
|
<!-- hint="Enter table name" --> |
|
|
|
<div class="mb-2">Table Name</div> |
|
|
|
<div class="mb-2">{{ $t('msg.info.enterTableName') }}</div> |
|
|
|
<a-form-item v-bind="validateInfos.title"> |
|
|
|
<a-form-item v-bind="validateInfos.title"> |
|
|
|
<a-input ref="inputEl" v-model:value="formState.title" hide-details :placeholder="$t('msg.info.enterTableName')" /> |
|
|
|
<a-input |
|
|
|
|
|
|
|
ref="inputEl" |
|
|
|
|
|
|
|
v-model:value="formState.title" |
|
|
|
|
|
|
|
hide-details |
|
|
|
|
|
|
|
:placeholder="$t('msg.info.enterTableName')" |
|
|
|
|
|
|
|
@keydown.enter="renameTable" |
|
|
|
|
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|