|
|
@ -1017,7 +1017,7 @@ const getPluralName = (name: string) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-select-option> |
|
|
|
</a-select-option> |
|
|
|
</NcSelect> |
|
|
|
</NcSelect> |
|
|
|
<!-- <div |
|
|
|
<div |
|
|
|
v-if="range.fk_to_column_id === null && isEeUI" |
|
|
|
v-if="range.fk_to_column_id === null && isEeUI" |
|
|
|
class="cursor-pointer flex items-center text-gray-800 gap-1" |
|
|
|
class="cursor-pointer flex items-center text-gray-800 gap-1" |
|
|
|
@click="range.fk_to_column_id = undefined" |
|
|
|
@click="range.fk_to_column_id = undefined" |
|
|
@ -1035,7 +1035,7 @@ const getPluralName = (name: string) => { |
|
|
|
v-model:value="range.fk_to_column_id" |
|
|
|
v-model:value="range.fk_to_column_id" |
|
|
|
:disabled="isMetaLoading" |
|
|
|
:disabled="isMetaLoading" |
|
|
|
:loading="isMetaLoading" |
|
|
|
:loading="isMetaLoading" |
|
|
|
:placeholder="$t('placenc-to-seleholder.notSelected')" |
|
|
|
:placeholder="$t('placeholder.notSelected')" |
|
|
|
class="!rounded-r-none ct" |
|
|
|
class="!rounded-r-none ct" |
|
|
|
> |
|
|
|
> |
|
|
|
<a-select-option |
|
|
|
<a-select-option |
|
|
@ -1043,7 +1043,9 @@ const getPluralName = (name: string) => { |
|
|
|
// If the fk_from_column_id of first range is Date, then all the other ranges should be Date |
|
|
|
// If the fk_from_column_id of first range is Date, then all the other ranges should be Date |
|
|
|
// If the fk_from_column_id of first range is DateTime, then all the other ranges should be DateTime |
|
|
|
// If the fk_from_column_id of first range is DateTime, then all the other ranges should be DateTime |
|
|
|
|
|
|
|
|
|
|
|
const firstRange = viewSelectFieldOptions.find((f) => f.value === form.calendar_range[0].fk_from_column_id) |
|
|
|
const firstRange = viewSelectFieldOptions.find( |
|
|
|
|
|
|
|
(f) => f.value === form.calendar_range[0].fk_from_column_id, |
|
|
|
|
|
|
|
) |
|
|
|
return firstRange?.uidt === f.uidt |
|
|
|
return firstRange?.uidt === f.uidt |
|
|
|
})" |
|
|
|
})" |
|
|
|
:key="id" |
|
|
|
:key="id" |
|
|
@ -1058,7 +1060,12 @@ const getPluralName = (name: string) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-select-option> |
|
|
|
</a-select-option> |
|
|
|
</NcSelect> |
|
|
|
</NcSelect> |
|
|
|
<NcButton class="!rounded-l-none !border-l-0" size="small" type="secondary" @click="range.fk_to_column_id = null"> |
|
|
|
<NcButton |
|
|
|
|
|
|
|
class="!rounded-l-none !border-l-0" |
|
|
|
|
|
|
|
size="small" |
|
|
|
|
|
|
|
type="secondary" |
|
|
|
|
|
|
|
@click="range.fk_to_column_id = null" |
|
|
|
|
|
|
|
> |
|
|
|
<component :is="iconMap.delete" class="h-4 w-4" /> |
|
|
|
<component :is="iconMap.delete" class="h-4 w-4" /> |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -1075,13 +1082,12 @@ const getPluralName = (name: string) => { |
|
|
|
<component :is="iconMap.close" /> |
|
|
|
<component :is="iconMap.close" /> |
|
|
|
</NcButton> |
|
|
|
</NcButton> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <NcButton class="mt-2" size="small" type="secondary" @click="addCalendarRange"> |
|
|
|
<!-- <NcButton class="mt-2" size="small" type="secondary" @click="addCalendarRange"> |
|
|
|
<component :is="iconMap.plus" /> |
|
|
|
<component :is="iconMap.plus" /> |
|
|
|
Add another date field |
|
|
|
Add another date field |
|
|
|
</NcButton> --> |
|
|
|
</NcButton> --> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="isCalendarReadonly(form.calendar_range)" |
|
|
|
v-if="isCalendarReadonly(form.calendar_range)" |
|
|
|