马来西亚光伏拓扑图配置

This commit is contained in:
huangjp
2026-02-27 09:13:55 +08:00
parent 4c3039ade7
commit b0a6891bce
4 changed files with 578 additions and 67 deletions

View File

@ -53,7 +53,7 @@
<runda215 v-else-if="topologyType === 12" ref="tuopu" />
<third v-else-if="topologyType === 13" ref="tuopu" />
<mdPviese v-else-if="topologyType === 14" ref="tuopu" />
<pv2first v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 3" ref="tuopu" />
<pv8FourthTopCenter v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 5" ref="tuopu" />
<standard v-else ref="tuopu" />
</view>
</view>
@ -124,7 +124,7 @@
import cixi from './components/topology/cixi'
import ceshiT from './components/topology/ceshiT.vue'
import ceshiL from './components/topology/ceshiL.vue'
import ceshiS from './components/topology/ceshiS.vue'
import pv8FourthTopCenter from './components/topology/pv8FourthTopCenter.vue'
import pv2first from './components/topology/pv2first.vue'
@ -155,7 +155,7 @@
components: {
ceshiT,
ceshiL,
ceshiS,
pv8FourthTopCenter,
pv2first,
myGrid,
stationDropdow,
@ -209,7 +209,8 @@
{name:'pv1AndStorage_261',value:1},
{name:'pv1AndStorage_sts_261',value:2},
{name:'pv2AndStorage_261',value:3},
{name:'pv2AndStorage_sts_261',value:4}
{name:'pv2AndStorage_sts_261',value:4},
{name:'pv8FourthTopCenter',value:5}
],
pvTopologyType:0,
society: [{
@ -300,6 +301,7 @@
if (val && val.id) {
this.stationId = val.id
this.userId = this.userData.userId
console.log('topologyType:',val);
this.topologyType = val.topologyType
// 重置加载状态,避免复用旧状态
this.componentsLoaded = false
@ -397,9 +399,11 @@
try {
const { data } = await this.$u.api.homePageData.GetHomePageComponents(this.stationId);
if (data && data.length > 0) {
console.log(data)
this.rightCenter = data[0]?.rightCenter;
const matchedItem = this.topCenterPvArr.find(item => item.name === data[0]?.topCenter);
this.pvTopologyType = matchedItem ? matchedItem.value : this.pvTopologyType;
console.log(this.pvTopologyType)
}
// 接口完成标记加载状态为true
this.componentsLoaded = true
@ -578,7 +582,7 @@
.loading-tip {
width: 650rpx;
height: 710rpx;
// height: 710rpx;
position: relative;
}
.top-right-box {