|
|
@ -61,10 +61,8 @@ const formState = ref<ProjectCreateForm>({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
sslUse: SSLUsage.No, |
|
|
|
sslUse: SSLUsage.No, |
|
|
|
extraParameters: [], |
|
|
|
extraParameters: [], |
|
|
|
meta: { |
|
|
|
is_schema_readonly: true, |
|
|
|
[SourceRestriction.META_READONLY]: true, |
|
|
|
is_data_readonly: false, |
|
|
|
[SourceRestriction.DATA_READONLY]: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const customFormState = ref<ProjectCreateForm>({ |
|
|
|
const customFormState = ref<ProjectCreateForm>({ |
|
|
@ -76,10 +74,8 @@ const customFormState = ref<ProjectCreateForm>({ |
|
|
|
}, |
|
|
|
}, |
|
|
|
sslUse: SSLUsage.No, |
|
|
|
sslUse: SSLUsage.No, |
|
|
|
extraParameters: [], |
|
|
|
extraParameters: [], |
|
|
|
meta: { |
|
|
|
is_schema_readonly: true, |
|
|
|
[SourceRestriction.META_READONLY]: true, |
|
|
|
is_data_readonly: false, |
|
|
|
[SourceRestriction.DATA_READONLY]: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const validators = computed(() => { |
|
|
|
const validators = computed(() => { |
|
|
@ -237,7 +233,8 @@ const editBase = async () => { |
|
|
|
config, |
|
|
|
config, |
|
|
|
inflection_column: formState.value.inflection.inflectionColumn, |
|
|
|
inflection_column: formState.value.inflection.inflectionColumn, |
|
|
|
inflection_table: formState.value.inflection.inflectionTable, |
|
|
|
inflection_table: formState.value.inflection.inflectionTable, |
|
|
|
meta: formState.value.meta || {}, |
|
|
|
is_schema_readonly: formState.value.is_schema_readonly, |
|
|
|
|
|
|
|
is_data_readonly: formState.value.is_data_readonly, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
$e('a:source:edit:extdb') |
|
|
|
$e('a:source:edit:extdb') |
|
|
@ -349,7 +346,8 @@ onMounted(async () => { |
|
|
|
}, |
|
|
|
}, |
|
|
|
extraParameters: tempParameters, |
|
|
|
extraParameters: tempParameters, |
|
|
|
sslUse: SSLUsage.No, |
|
|
|
sslUse: SSLUsage.No, |
|
|
|
meta: activeBase.meta || {}, |
|
|
|
is_schema_readonly: activeBase.is_schema_readonly, |
|
|
|
|
|
|
|
is_data_readonly: activeBase.is_data_readonly, |
|
|
|
} |
|
|
|
} |
|
|
|
updateSSLUse() |
|
|
|
updateSSLUse() |
|
|
|
} |
|
|
|
} |
|
|
@ -369,18 +367,16 @@ watch( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const allowMetaWrite = computed({ |
|
|
|
const allowMetaWrite = computed({ |
|
|
|
get: () => !formState.value.meta[SourceRestriction.META_READONLY], |
|
|
|
get: () => !formState.value.is_schema_readonly, |
|
|
|
set: (v) => { |
|
|
|
set: (v) => { |
|
|
|
formState.value.meta = formState.value.meta || {} |
|
|
|
formState.value.is_schema_readonly = !v |
|
|
|
formState.value.meta[SourceRestriction.META_READONLY] = !v |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const allowDataWrite = computed({ |
|
|
|
const allowDataWrite = computed({ |
|
|
|
get: () => !formState.value.meta[SourceRestriction.DATA_READONLY], |
|
|
|
get: () => !formState.value.is_data_readonly, |
|
|
|
set: (v) => { |
|
|
|
set: (v) => { |
|
|
|
formState.value.meta = formState.value.meta || {} |
|
|
|
formState.value.is_data_readonly = !v |
|
|
|
formState.value.meta[SourceRestriction.DATA_READONLY] = !v |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|