|
|
@ -373,7 +373,7 @@ onMounted(async () => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<draggable :list="hiddenColumns" draggable=".item" group="form-inputs" @start="drag = true" @end="drag = false"> |
|
|
|
<Draggable :list="hiddenColumns" draggable=".item" group="form-inputs" @start="drag = true" @end="drag = false"> |
|
|
|
<template #item="{ element }"> |
|
|
|
<template #item="{ element }"> |
|
|
|
<a-card size="small" class="ma-0 pa-0 cursor-pointer item mb-2"> |
|
|
|
<a-card size="small" class="ma-0 pa-0 cursor-pointer item mb-2"> |
|
|
|
<div class="flex"> |
|
|
|
<div class="flex"> |
|
|
@ -382,12 +382,14 @@ onMounted(async () => { |
|
|
|
v-if="isVirtualCol(element)" |
|
|
|
v-if="isVirtualCol(element)" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
|
|
|
|
:hide-menu="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<SmartsheetHeaderCell |
|
|
|
<SmartsheetHeaderCell |
|
|
|
v-else |
|
|
|
v-else |
|
|
|
class="w-full" |
|
|
|
class="w-full" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
|
|
|
|
:hide-menu="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="flex flex-row"> |
|
|
|
<div class="flex flex-row"> |
|
|
@ -414,7 +416,7 @@ onMounted(async () => { |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-dropdown> |
|
|
|
</a-dropdown> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</draggable> |
|
|
|
</Draggable> |
|
|
|
</a-col> |
|
|
|
</a-col> |
|
|
|
<a-col v-if="formViewData" :span="isEditable ? 16 : 24" class="h-full overflow-auto scrollbar-thin-primary"> |
|
|
|
<a-col v-if="formViewData" :span="isEditable ? 16 : 24" class="h-full overflow-auto scrollbar-thin-primary"> |
|
|
|
<a-card class="h-full"> |
|
|
|
<a-card class="h-full"> |
|
|
@ -447,7 +449,7 @@ onMounted(async () => { |
|
|
|
@click="updateView" |
|
|
|
@click="updateView" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<draggable |
|
|
|
<Draggable |
|
|
|
ref="draggableRef" |
|
|
|
ref="draggableRef" |
|
|
|
:list="localColumns" |
|
|
|
:list="localColumns" |
|
|
|
item-key="fk_column_id" |
|
|
|
item-key="fk_column_id" |
|
|
@ -472,11 +474,13 @@ onMounted(async () => { |
|
|
|
v-if="isVirtualCol(element)" |
|
|
|
v-if="isVirtualCol(element)" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
|
|
|
|
:hide-menu="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<SmartsheetHeaderCell |
|
|
|
<SmartsheetHeaderCell |
|
|
|
v-else |
|
|
|
v-else |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:column="{ ...element, title: element.label || element.title }" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
:required="isRequired(element, element.required)" |
|
|
|
|
|
|
|
:hide-menu="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="isUIAllowed('editFormView') && !isRequired(element, element.required)" class="flex"> |
|
|
|
<div v-if="isUIAllowed('editFormView') && !isRequired(element, element.required)" class="flex"> |
|
|
@ -530,7 +534,7 @@ onMounted(async () => { |
|
|
|
Drag and drop fields here to add |
|
|
|
Drag and drop fields here to add |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</draggable> |
|
|
|
</Draggable> |
|
|
|
</a-form> |
|
|
|
</a-form> |
|
|
|
|
|
|
|
|
|
|
|
<div class="justify-center flex mt-5"> |
|
|
|
<div class="justify-center flex mt-5"> |
|
|
|