|
|
@ -407,21 +407,22 @@ const sureDisabled = ref(false) |
|
|
|
const tabSheet = ref('TableForm') |
|
|
|
routeName.value = route.name |
|
|
|
const formHeight = ref({ |
|
|
|
height:'60vh' |
|
|
|
'max-height': '60vh' |
|
|
|
}) |
|
|
|
|
|
|
|
const tabChange = (item) => { |
|
|
|
tabSheet.value = item.prop |
|
|
|
} |
|
|
|
|
|
|
|
if(!props.tableAllSchemas||formType.value!='create'){ |
|
|
|
formHeight.value = { |
|
|
|
height:'auto' |
|
|
|
} |
|
|
|
}else{ |
|
|
|
formHeight.value = { |
|
|
|
height:'60vh' |
|
|
|
} |
|
|
|
} |
|
|
|
// if(!props.tableAllSchemas||formType.value!='create'){ |
|
|
|
// formHeight.value = { |
|
|
|
// height:'auto' |
|
|
|
// } |
|
|
|
// }else{ |
|
|
|
// formHeight.value = { |
|
|
|
// height:'60vh' |
|
|
|
// } |
|
|
|
// } |
|
|
|
// 列表-按钮 |
|
|
|
// const buttondata = [ |
|
|
|
// defaultButtons.mainListEditBtn(null), // 编辑 |
|
|
@ -668,15 +669,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' |
|
|
|
} |
|
|
|
} |
|
|
|
// if(!props.tableAllSchemas||formType.value!='create'){ |
|
|
|
// formHeight.value = { |
|
|
|
// height:'auto' |
|
|
|
// } |
|
|
|
// }else{ |
|
|
|
// formHeight.value = { |
|
|
|
// height:'60vh' |
|
|
|
// } |
|
|
|
// } |
|
|
|
resetForm() |
|
|
|
count.value = 0 |
|
|
|
// 修改时,设置数据 |
|
|
|