This commit is contained in:
GGJ
2025-03-25 20:36:36 +08:00
parent 63c3544c68
commit 9ac4f65807
2 changed files with 18 additions and 3 deletions

View File

@@ -2090,6 +2090,7 @@ const add = () => {
AddProjectBO.value.devIndex = devId.value
addSubVoltage()
selectChanged(AddProjectBO.value.deviceParam[deviceIndex.value].subVoltageParam[busBarIndex.value].scale)
break
case 600:
AddProjectBO.value.projectIndex = projectId.value
@@ -2100,6 +2101,7 @@ const add = () => {
AddProjectBO.value.subvIndex = busBarId.value
addLine()
selectChanged(AddProjectBO.value.deviceParam[deviceIndex.value].subVoltageParam[busBarIndex.value].scale)
break
case 700:
AddProjectBO.value.projectIndex = projectId.value
@@ -2200,6 +2202,7 @@ const update = () => {
pageStatus.value = 3
// 使用 scrollTo 方法,并启用平滑滚动
const scrollBox: any = document.getElementById('scrollBox')
scrollBox.scrollTo({
top: scrollBox.scrollHeight, // 滚动到内容的最底部
behavior: 'smooth' // 启用平滑滚动动画
@@ -2485,6 +2488,14 @@ const addLine = () => {
)
lineIndex.value =
AddProjectBO.value.deviceParam[deviceIndex.value].subVoltageParam[busBarIndex.value].lineParam.length - 1 + ''
setTimeout(() => {
const scrollBox: any = document.getElementById('scrollBox')
// 使用 scrollTo 方法,并启用平滑滚动
scrollBox.scrollTo({
top: scrollBox.scrollHeight, // 滚动到内容的最底部
behavior: 'smooth' // 启用平滑滚动动画
})
}, 500)
}
const getNodeIndex = () => {
deviceIndex.value = '0'
@@ -2704,6 +2715,7 @@ const handleLineTabsEdit = (targetName: any, action: any) => {
addLine()
selectChanged(AddProjectBO.value.deviceParam[deviceIndex.value].subVoltageParam[busBarIndex.value].scale)
}
/**删除 */
if (action === 'remove') {

View File

@@ -156,8 +156,11 @@ onMounted(() => {
flex: 2; /* 占2份高度 */
}
}
:deep(.el-card__header) {
padding: 10px;
border-bottom: 1px solid #ebebeb;
:deep(.el-card) {
border-radius: 10px;
.el-card__header {
padding: 10px;
border-bottom: 1px solid #ebebeb;
}
}
</style>