|
|
@ -53,8 +53,6 @@ const refTables = computed(() => { |
|
|
|
const filterOption = (value: string, option: { key: string }) => option.key.toLowerCase().includes(value.toLowerCase()) |
|
|
|
const filterOption = (value: string, option: { key: string }) => option.key.toLowerCase().includes(value.toLowerCase()) |
|
|
|
|
|
|
|
|
|
|
|
const isLinks = computed(() => vModel.value.uidt === UITypes.Links && vModel.value.type !== RelationTypes.ONE_TO_ONE) |
|
|
|
const isLinks = computed(() => vModel.value.uidt === UITypes.Links && vModel.value.type !== RelationTypes.ONE_TO_ONE) |
|
|
|
|
|
|
|
|
|
|
|
const oneToOneEnabled = ref(false) |
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -62,9 +60,9 @@ const oneToOneEnabled = ref(false) |
|
|
|
<div class="border-2 p-6"> |
|
|
|
<div class="border-2 p-6"> |
|
|
|
<a-form-item v-bind="validateInfos.type" class="nc-ltar-relation-type"> |
|
|
|
<a-form-item v-bind="validateInfos.type" class="nc-ltar-relation-type"> |
|
|
|
<a-radio-group v-model:value="vModel.type" name="type" v-bind="validateInfos.type" class="!flex flex-col gap-2"> |
|
|
|
<a-radio-group v-model:value="vModel.type" name="type" v-bind="validateInfos.type" class="!flex flex-col gap-2"> |
|
|
|
<a-radio value="hm" @dblclick="oneToOneEnabled = !oneToOneEnabled">{{ $t('title.hasMany') }}</a-radio> |
|
|
|
<a-radio value="hm">{{ $t('title.hasMany') }}</a-radio> |
|
|
|
<a-radio value="mm">{{ $t('title.manyToMany') }}</a-radio> |
|
|
|
<a-radio value="mm">{{ $t('title.manyToMany') }}</a-radio> |
|
|
|
<a-radio v-if="oneToOneEnabled" value="oo">{{ $t('title.oneToOne') }}</a-radio> |
|
|
|
<a-radio value="oo">{{ $t('title.oneToOne') }}</a-radio> |
|
|
|
</a-radio-group> |
|
|
|
</a-radio-group> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
|
|