This commit is contained in:
sjl
2025-09-04 09:08:45 +08:00
parent f251ad3fe6
commit caa81cc872
6 changed files with 46 additions and 35 deletions

View File

@@ -205,6 +205,10 @@ const column: any = ref([
{
title: '冲击负荷类型',
field: 'inpactloadtypeId'
},
{
title: '启动方式',
field: 'inpactloadStartup',
},
{
title: '数量',
@@ -253,6 +257,8 @@ const windfarmCapacityLabel = computed(() => {
}
})
const filteredColumn = computed(() => {
// const windfarmValue = form.value.isWindfarm;
// if (windfarmValue === '01') {
@@ -385,20 +391,19 @@ watch(() => props.nodeId, async (newId) => {
})
// 冲击性负荷
const startupOptions = ref<Array<{ label: string; value: string }>>([])
await shockList({ assessId: props.nodeId }).then(async (res: { data: never[] }) => {
form.value.impact = res.data
// 冲击负荷类型
const loadRes = await loadList({})
// 处理冲击负荷类型名称
// 处理冲击负荷类型名称
form.value.impact = form.value.impact.map((impactItem: any) => {
const found = loadRes.data.find((item: any) => item.inpactloadtypeId == impactItem.inpactloadtypeId)
if (found) {
return {
...impactItem,
inpactloadtypeId: found.inpactloadtypeName
inpactloadtypeId: found.inpactloadtypeName,
inpactloadStartup: found.inpactloadStartup
}
}
return impactItem
@@ -415,10 +420,15 @@ watch(() => props.nodeId, async (newId) => {
inpactloadlowScale: LowVoltage?.name || loadItem.inpactloadlowScale
}
})
})
}
)
}
// 等待 DOM 更新后延迟触发