svg拓扑图修改为canvas拓扑图
This commit is contained in:
@ -54,6 +54,11 @@
|
||||
<third v-else-if="topologyType === 13" ref="tuopu" />
|
||||
<mdPviese v-else-if="topologyType === 14" ref="tuopu" />
|
||||
<pv8FourthTopCenter v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 5" ref="tuopu" />
|
||||
<pv2AndStorageSts v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 4" ref="tuopu" />
|
||||
<!-- <third v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 4" ref="tuopu" /> -->
|
||||
<!-- <cixi v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 3" ref="tuopu" /> -->
|
||||
<!-- <ceshiL v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 2" ref="tuopu" /> -->
|
||||
<!-- <cixi v-else-if="topologyType === 1 && inverterFlag === 1 && pvTopologyType === 1" ref="tuopu" /> -->
|
||||
<standard v-else ref="tuopu" />
|
||||
</view>
|
||||
</view>
|
||||
@ -122,7 +127,8 @@
|
||||
import Section from "@/components/section/index";
|
||||
import charts from "@/components/charts/index";
|
||||
import cixi from './components/topology/cixi'
|
||||
import ceshiT from './components/topology/ceshiT.vue'
|
||||
import pv2AndStorageSts from './components/topology/pv2AndStorageSts.vue'
|
||||
// import pv8FourthTopCenter from './components/topology/ceshiL.vue'
|
||||
import ceshiL from './components/topology/ceshiL.vue'
|
||||
import pv8FourthTopCenter from './components/topology/pv8FourthTopCenter.vue'
|
||||
|
||||
@ -153,7 +159,7 @@
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ceshiT,
|
||||
pv2AndStorageSts,
|
||||
ceshiL,
|
||||
pv8FourthTopCenter,
|
||||
pv2first,
|
||||
@ -301,7 +307,6 @@
|
||||
if (val && val.id) {
|
||||
this.stationId = val.id
|
||||
this.userId = this.userData.userId
|
||||
console.log('topologyType:',val);
|
||||
this.topologyType = val.topologyType
|
||||
// 重置加载状态,避免复用旧状态
|
||||
this.componentsLoaded = false
|
||||
@ -315,6 +320,9 @@
|
||||
if (this.$refs.deviceFire) {
|
||||
this.$refs.deviceFire.getData(this.stationId)
|
||||
}
|
||||
if (this.$refs.dischargeChart) {
|
||||
this.$refs.dischargeChart.getData()
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -399,11 +407,9 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user