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