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

View File

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