|
|
@ -66,6 +66,11 @@ function onCancel() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function onSubmit() { |
|
|
|
|
|
|
|
await addOrUpdate(reloadMetaAndData) |
|
|
|
|
|
|
|
advancedOptions.value = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// create column meta if it's a new column |
|
|
|
// create column meta if it's a new column |
|
|
|
watchEffect(() => { |
|
|
|
watchEffect(() => { |
|
|
|
if (!isEdit.value) { |
|
|
|
if (!isEdit.value) { |
|
|
@ -171,17 +176,7 @@ watch( |
|
|
|
<!-- Cancel --> |
|
|
|
<!-- Cancel --> |
|
|
|
{{ $t('general.cancel') }} |
|
|
|
{{ $t('general.cancel') }} |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|
<a-button |
|
|
|
<a-button html-type="submit" type="primary" size="small" @click="onSubmit"> |
|
|
|
html-type="submit" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
@click=" |
|
|
|
|
|
|
|
() => { |
|
|
|
|
|
|
|
addOrUpdate(reloadMetaAndData) |
|
|
|
|
|
|
|
advancedOptions = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<!-- Save --> |
|
|
|
<!-- Save --> |
|
|
|
{{ $t('general.save') }} |
|
|
|
{{ $t('general.save') }} |
|
|
|
</a-button> |
|
|
|
</a-button> |
|
|
|