|
|
@ -61,9 +61,9 @@ const columns = $computed(() => { |
|
|
|
<a-form-item class="flex w-1/2 pb-2" :label="$t('labels.childTable')" v-bind="validateInfos.fk_relation_column_id"> |
|
|
|
<a-form-item class="flex w-1/2 pb-2" :label="$t('labels.childTable')" v-bind="validateInfos.fk_relation_column_id"> |
|
|
|
<a-select v-model:value="formState.fk_relation_column_id" size="small" @change="onDataTypeChange"> |
|
|
|
<a-select v-model:value="formState.fk_relation_column_id" size="small" @change="onDataTypeChange"> |
|
|
|
<a-select-option v-for="(table, index) in refTables" :key="index" :value="table.col.fk_column_id"> |
|
|
|
<a-select-option v-for="(table, index) in refTables" :key="index" :value="table.col.fk_column_id"> |
|
|
|
<div class="flex flex-row items-center"> |
|
|
|
<div class="flex flex-row items-center space-x-0.5"> |
|
|
|
<div class="font-weight-bold text-xs">{{ table.column.title }}</div> |
|
|
|
<div class="font-weight-bold text-xs">{{ table.column.title }}</div> |
|
|
|
<div class="text-[0.5rem]">({{ relationNames[table.col.type] }} {{ table.title || table.table_name }})</div> |
|
|
|
<div class="text-[0.45rem]">({{ relationNames[table.col.type] }} {{ table.title || table.table_name }})</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-select-option> |
|
|
|
</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-select> |
|
|
|