|
@ -7,7 +7,7 @@ |
|
|
:vLoading="formLoading" |
|
|
:vLoading="formLoading" |
|
|
@updateFullscreen="updateFullscreen" |
|
|
@updateFullscreen="updateFullscreen" |
|
|
> |
|
|
> |
|
|
<div style="overflow-y: auto" :style="{ 'max-height': formHeight }"> |
|
|
<div style="overflow-y: auto" :style="formHeight"> |
|
|
<Form |
|
|
<Form |
|
|
ref="formRef" |
|
|
ref="formRef" |
|
|
:rules="rules" |
|
|
:rules="rules" |
|
@ -79,7 +79,6 @@ |
|
|
<TableForm |
|
|
<TableForm |
|
|
ref="tableFormRef" |
|
|
ref="tableFormRef" |
|
|
class="w-[100%]" |
|
|
class="w-[100%]" |
|
|
:maxHeight="490" |
|
|
|
|
|
:tableFields="tableAllSchemas.tableFormColumns" |
|
|
:tableFields="tableAllSchemas.tableFormColumns" |
|
|
:tableData="tableData" |
|
|
:tableData="tableData" |
|
|
:tableFormRules="tableFormRules" |
|
|
:tableFormRules="tableFormRules" |
|
@ -351,9 +350,14 @@ if (props.basicFormWidth) { |
|
|
} else { |
|
|
} else { |
|
|
dialogWidth.value = props.isBusiness ? '60%' : '40%' |
|
|
dialogWidth.value = props.isBusiness ? '60%' : '40%' |
|
|
} |
|
|
} |
|
|
const formHeight = ref('60vh') |
|
|
const formHeight = ref({ |
|
|
|
|
|
height:'60vh' |
|
|
|
|
|
}) |
|
|
const updateFullscreen = (isFullscreen) => { |
|
|
const updateFullscreen = (isFullscreen) => { |
|
|
formHeight.value = isFullscreen ? 'auto' : '60vh' |
|
|
formHeight.value.height = isFullscreen ? 'auto' : '60vh' |
|
|
|
|
|
nextTick(()=>{ |
|
|
|
|
|
tableFormRef.value.reloadFullscreen(isFullscreen) |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|
const dialogVisible = ref(false) // 弹窗的是否展示 |
|
|