This commit is contained in:
2026-04-01 14:27:35 +08:00
parent 9272a0162a
commit f88e9bedc2
18 changed files with 2264 additions and 353 deletions

View File

@ -30,11 +30,11 @@
<span class="site-card-value">{{ formatSiteCardDate(item.runningTime) }}</span>
</div>
<div class="site-card-info-row">
<span class="site-card-label">装机功率(MW)</span>
<span class="site-card-label">装机功率(MWh)</span>
<span class="site-card-value">{{ formatSiteCardField(item.installPower) }}</span>
</div>
<div class="site-card-info-row">
<span class="site-card-label">装机容量(MW)</span>
<span class="site-card-label">装机容量(MWh)</span>
<span class="site-card-value">{{ formatSiteCardField(item.installCapacity) }}</span>
</div>
</div>
@ -67,6 +67,7 @@ export default {
loading: false,
singleSiteId: '',
singleSiteName: '',
singleSiteAddress: '',
singleSiteLocation: [],
allSites: [],
canScrollLeft: false,
@ -138,7 +139,7 @@ export default {
},
updateMapMarkers(){
this.$refs.mapChart && this.$refs.mapChart.setOption({
selected: {name:this.singleSiteName,value:this.singleSiteLocation},
selected: {name:this.singleSiteName,address:this.singleSiteAddress,value:this.singleSiteLocation},
sites:this.allSites
})
},
@ -147,6 +148,7 @@ export default {
this.singleSiteId = id
const currentSite = this.allSites.find(item => this.isSameSite(item.siteId, id)) || {}
this.singleSiteName = currentSite.siteName || ''
this.singleSiteAddress = currentSite.siteAddress || ''
this.singleSiteLocation = currentSite.siteLocation || []
if (!this.singleSiteLocation.length) {
this.singleSiteLocation = [currentSite.longitude, currentSite.latitude].filter(item => item !== undefined && item !== null)