|
|
@ -78,7 +78,7 @@ |
|
|
|
<el-input v-model="formSchema.value" v-if="isDetail && formTypeDetail == 'InputString'" /> |
|
|
|
</template> |
|
|
|
</Form> |
|
|
|
<Tabs ref="tabRef" v-if="tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" :tabsList="[{ |
|
|
|
<Tabs ref="tabRef" v-if="formType=='create'&&tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" :tabsList="[{ |
|
|
|
label: '明细', |
|
|
|
prop: 'TableForm' |
|
|
|
},{ |
|
|
@ -135,7 +135,7 @@ |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div v-if="tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" v-show="tabSheet=='CollectionTable'"> |
|
|
|
<div v-if="formType=='create'&&tableAllSchemas&&tableAllSchemas.tableFormColumns.find(item=>item.field == 'itemCode')" v-show="tabSheet=='CollectionTable'"> |
|
|
|
<CollectionTable |
|
|
|
:tableFields="tableAllSchemas?tableAllSchemas.tableFormColumns:[]" |
|
|
|
:tableData="tableData" |
|
|
@ -380,14 +380,7 @@ if (props.basicFormWidth) { |
|
|
|
} else { |
|
|
|
dialogWidth.value = props.isBusiness ? '60%' : '40%' |
|
|
|
} |
|
|
|
const formHeight = ref({ |
|
|
|
height:'60vh' |
|
|
|
}) |
|
|
|
if(!props.tableAllSchemas){ |
|
|
|
formHeight.value = { |
|
|
|
height:'auto' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const collectionRef = ref() |
|
|
|
const updateFullscreen = (isFullscreen) => { |
|
|
|
formHeight.value.height = isFullscreen ? 'auto' : '60vh' |
|
|
@ -413,9 +406,22 @@ const routeName = ref('') |
|
|
|
const sureDisabled = ref(false) |
|
|
|
const tabSheet = ref('TableForm') |
|
|
|
routeName.value = route.name |
|
|
|
const formHeight = ref({ |
|
|
|
height:'60vh' |
|
|
|
}) |
|
|
|
const tabChange = (item) => { |
|
|
|
tabSheet.value = item.prop |
|
|
|
} |
|
|
|
|
|
|
|
if(!props.tableAllSchemas||formType.value!='create'){ |
|
|
|
formHeight.value = { |
|
|
|
height:'auto' |
|
|
|
} |
|
|
|
}else{ |
|
|
|
formHeight.value = { |
|
|
|
height:'60vh' |
|
|
|
} |
|
|
|
} |
|
|
|
// 列表-按钮 |
|
|
|
// const buttondata = [ |
|
|
|
// defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
@ -662,6 +668,15 @@ const open = async ( |
|
|
|
dialogTitle.value = t('action.' + type) |
|
|
|
} |
|
|
|
formType.value = type |
|
|
|
if(!props.tableAllSchemas||formType.value!='create'){ |
|
|
|
formHeight.value = { |
|
|
|
height:'auto' |
|
|
|
} |
|
|
|
}else{ |
|
|
|
formHeight.value = { |
|
|
|
height:'60vh' |
|
|
|
} |
|
|
|
} |
|
|
|
resetForm() |
|
|
|
count.value = 0 |
|
|
|
// 修改时,设置数据 |
|
|
|