This commit is contained in:
陆光LG
2025-08-18 17:19:07 +08:00

View File

@@ -322,7 +322,8 @@
<!-- <el-skeleton :rows="5" animated v-if="pptxPointsList.length < 0 && isLoading" />
-->
</el-dialog>
<el-dialog v-model="dialogFormVisiblePptxInfos" :title="titles" width="300px">
<el-dialog v-model="dialogFormVisiblePptxInfos" :title="titles" width="300px" class="fixed-dialog-height">
<div class="dialog-scroll-content">
<el-tree
style="max-width: 600px"
:data="pptxPointsInfoList"
@@ -331,6 +332,7 @@
show-checkbox
@check-change="handleCheckChange"
/>
</div>
<template #footer>
<el-button type="primary" @click="submitPptxPoints"> </el-button>
<el-button @click="dialogFormVisiblePptxInfos = false"> </el-button>
@@ -469,7 +471,7 @@ const handleCheckChange = (data: any, _checked: boolean, _indeterminate: boolean
pptxPoints.slideIndex = textIndex.value
pptxPoints.function = data.functions
pptxPoints.examName = data.chineseName
pptxPoints.examCode = '111'
pptxPoints.examCode = 'ExamCodeTODO'
pptxPoints.method = data.parameter
pptxPointsInfosList.push(cloneDeep(pptxPoints))
}
@@ -502,6 +504,9 @@ const textIndex = ref()
// 打开
const handleNodelClick = async (row: any) => {
console.log(row)
if (!row.click) {
return
}
// 获取名称
chineseName.value = '【' + row.name + '】'
textIndex.value = row.index
@@ -959,4 +964,19 @@ const openPoints = async () => {
}
}
}
/* 固定 el-dialog 高度,内容超出可滚动 */
.fixed-dialog-height >>> .el-dialog {
height: 500px;
display: flex;
flex-direction: column;
}
.fixed-dialog-height >>> .el-dialog__body {
flex: 1;
overflow: hidden;
padding: 0 20px 20px 20px;
}
.dialog-scroll-content {
height: 400px;
overflow-y: auto;
}
</style>