feat: 提交首页

This commit is contained in:
pengqiao1993
2025-10-29 17:31:26 +08:00
parent 4199ceee48
commit 9258bcc0a9
46 changed files with 15838 additions and 1630 deletions

View File

@ -17,7 +17,7 @@
<view class="icon device" />
<view class="title"> {{ this.$t("homePage.home.device") }} </view>
</view>
<view class="box" @click="changeMenu('earnings')">
<view class="box" @click="changeMenu('earningSelect')">
<view class="icon earning" />
<view class="title"> {{ this.$t("homePage.home.earning") }} </view>
</view>
@ -51,6 +51,10 @@
<standard v-else ref="tuopu" />
</view>
<view class="box">
<Section title="测试" />
<ceshi-t />
</view>
<view v-if="topologyType === 9" class="box">
<Section :title="$t('homePage.home.deviceMonitor')" />
@ -87,12 +91,23 @@
<zzhbStationData v-else-if="topologyType === 6" />
<commonStationData v-else />
</view>
<view class="box">
<Section title="光伏KPI" />
<view class="">
<my-grid imgHeight="40rpx" imgWidth="40rpx" :list="lightArr" />
</view>
</view>
<view class="box" v-if="topologyType !== 9">
<Section :title="$t('homePage.home.environmentalData')" />
<environmentalControlPosition v-if="rightCenter === 'dispositionRightCenter'" />
<environmentalControl v-else />
</view>
<view class="box">
<Section title="社会贡献" />
<view class="">
<my-grid :col="3" imgHeight="72rpx" imgWidth="82rpx" :list="society" />
</view>
</view>
</view>
@ -101,10 +116,12 @@
</template>
<script>
import myGrid from './components/grid/index.vue'
import stationDropdow from '@/components/station-dropdow/index'
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 weishanhu from './components/topology/weishanhu.vue'
import sanmenxia from './components/topology/sanmenxia.vue'
import lingchao from './components/topology/lingchao.vue'
@ -130,6 +147,8 @@
export default {
components: {
ceshiT,
myGrid,
stationDropdow,
Section,
environmentalControlPosition,
@ -168,7 +187,46 @@
messageList: [],
timer: null,
tuopuTimer: null,
rightCenter: null
rightCenter: null,
society: [{
label: '充放电数据',
value: '85.00',
image: require('@/static/aidex/images/ll01.png'),
},
{
label: 'CO2减排(吨)',
value: '85.00',
image: require('@/static/aidex/images/ll02.png'),
},
{
label: '等效植树(万棵)',
value: '85.00',
image: require('@/static/aidex/images/ll03.png'),
},
],
lightArr: [{
label: '装机总容量(kWh)',
value: '85.00',
image: require('@/static/aidex/images/ll05.png'),
},
{
label: '当前功率(kW)',
value: '85.00',
image: require('@/static/aidex/images/ll06.png'),
},
{
label: '日发电量(kWh)',
value: '85.00',
image: require('@/static/aidex/images/ll07.png'),
showMark: true
},
{
label: '总发电量(MWh)',
value: '85.00',
image: require('@/static/aidex/images/ll07.png'),
showMark: true
},
]
};
},
computed: {
@ -274,8 +332,8 @@
const {
data
} = await this.$u.api.homePageData.GetHomePageComponents(this.stationId)
if(data && data.length > 0){
this.rightCenter = data[0]?.rightCenter
if (data && data.length > 0) {
this.rightCenter = data[0]?.rightCenter
}
},
openTimer() {