|  |  |  | 
|---|
|  |  |  | <div class="main_app"> | 
|---|
|  |  |  | <img src="@/assets/images/bg_main_app.png" class="main_bg" alt="" /> | 
|---|
|  |  |  | <div class="main_header"> | 
|---|
|  |  |  | <img src="@/assets/images/maintitle@2x.png" class="main_header_bg" alt="" /> | 
|---|
|  |  |  | <img src="@/assets/images/maintitle.gif" class="main_header_bg" alt="" /> | 
|---|
|  |  |  | <div class="title">安泰智慧物流园区-绿色低碳运营</div> | 
|---|
|  |  |  | <div class="time_wrap"> | 
|---|
|  |  |  | <span class="date">{{ date }}</span> | 
|---|
|  |  |  | 
|---|
|  |  |  | <div class="com_header"> | 
|---|
|  |  |  | <div class="title"> | 
|---|
|  |  |  | <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> | 
|---|
|  |  |  | <div>本年累计循环烟箱</div> | 
|---|
|  |  |  | <div>本年安徽中烟累计循环烟箱</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | <img src="@/assets/images/nenghao_ic1.png" class="co2" alt=""> | 
|---|
|  |  |  | <div> | 
|---|
|  |  |  | <div class="name">本年累计循环烟箱</div> | 
|---|
|  |  |  | <div><span class="num" v-if="data1.smokeBoxTotal || data1.smokeBoxTotal == 0">{{ | 
|---|
|  |  |  | <div><span class="num" style="color: #68cfb2;" v-if="data1.smokeBoxTotal || data1.smokeBoxTotal == 0">{{ | 
|---|
|  |  |  | data1.smokeBoxTotal.toLocaleString() | 
|---|
|  |  |  | }}</span><span>只</span></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | <span class="val" | 
|---|
|  |  |  | v-if="data1.electricityQuantity.totalNum && data1.electricityQuantity.totalNum != 0">{{ | 
|---|
|  |  |  | v-if="data1.electricityQuantity.sameNum && data1.electricityQuantity.sameNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.electricityQuantity.totalNum - | 
|---|
|  |  |  | data1.electricityQuantity.sameNum) / data1.electricityQuantity.totalNum * 100).toFixed(1)) | 
|---|
|  |  |  | data1.electricityQuantity.sameNum) / data1.electricityQuantity.sameNum * 100).toFixed(1)) | 
|---|
|  |  |  | }}%</span> | 
|---|
|  |  |  | <span class="val" v-else>-</span> | 
|---|
|  |  |  | <span class="val" v-else style="margin-left: 4px;"> -</span> | 
|---|
|  |  |  | <span class="lab">环比</span> | 
|---|
|  |  |  | <img v-if="data1.electricityQuantity.totalNum > data1.electricityQuantity.ringNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | <span class="val" | 
|---|
|  |  |  | v-if="data1.electricityQuantity.totalNum && data1.electricityQuantity.totalNum != 0">{{ | 
|---|
|  |  |  | v-if="data1.electricityQuantity.ringNum && data1.electricityQuantity.ringNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.electricityQuantity.totalNum - | 
|---|
|  |  |  | data1.electricityQuantity.ringNum) / data1.electricityQuantity.totalNum * 100).toFixed(1)) | 
|---|
|  |  |  | data1.electricityQuantity.ringNum) / data1.electricityQuantity.ringNum * 100).toFixed(1)) | 
|---|
|  |  |  | }}%</span> | 
|---|
|  |  |  | <span class="val" v-else>-</span> | 
|---|
|  |  |  | <span class="val" v-else style="margin-left: 4px;"> -</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="item"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="static" v-if="data1.waterQuantity"> | 
|---|
|  |  |  | <span class="lab">同比</span> | 
|---|
|  |  |  | <img v-if="data1.waterQuantity.totalNum > data1.waterQuantity.sameNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | <span class="val" v-if="data1.waterQuantity.totalNum && data1.waterQuantity.totalNum != 0">{{ | 
|---|
|  |  |  | <template v-if="data1.waterQuantity.sameNum"> | 
|---|
|  |  |  | <img v-if="data1.waterQuantity.totalNum > data1.waterQuantity.sameNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | <span class="val" v-if="data1.waterQuantity.sameNum && data1.waterQuantity.sameNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.waterQuantity.totalNum - | 
|---|
|  |  |  | data1.waterQuantity.sameNum) / data1.waterQuantity.totalNum * 100).toFixed(1)) }}%</span> | 
|---|
|  |  |  | <span class="val" v-else>-</span> | 
|---|
|  |  |  | data1.waterQuantity.sameNum) / data1.waterQuantity.sameNum * 100).toFixed(1)) }}%</span> | 
|---|
|  |  |  | <span class="val" v-else style="margin-left: 4px;">-</span> | 
|---|
|  |  |  | <span class="lab">环比</span> | 
|---|
|  |  |  | <img v-if="data1.waterQuantity.totalNum > data1.waterQuantity.ringNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | <span class="val" v-if="data1.waterQuantity.totalNum && data1.waterQuantity.totalNum != 0">{{ | 
|---|
|  |  |  | <template v-if="data1.waterQuantity.ringNum"> | 
|---|
|  |  |  | <img v-if="data1.waterQuantity.totalNum > data1.waterQuantity.ringNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | <span class="val" v-if="data1.waterQuantity.ringNum && data1.waterQuantity.ringNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.waterQuantity.totalNum - | 
|---|
|  |  |  | data1.waterQuantity.ringNum) / data1.waterQuantity.totalNum * 100).toFixed(1)) }}%</span> | 
|---|
|  |  |  | <span class="val" v-else>-</span> | 
|---|
|  |  |  | data1.waterQuantity.ringNum) / data1.waterQuantity.ringNum * 100).toFixed(1)) }}%</span> | 
|---|
|  |  |  | <span class="val" v-else style="margin-left: 4px;">-</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="item"> | 
|---|
|  |  |  | <div class="header"> | 
|---|
|  |  |  | <img class="icon" src="@/assets/images/ic_yongqi@2x.png" alt="" /> | 
|---|
|  |  |  | <div class="content"> | 
|---|
|  |  |  | <div class="name">上月用气(t)</div> | 
|---|
|  |  |  | <div class="name">上月用气(m³)</div> | 
|---|
|  |  |  | <div class="num" v-if="data1.gasQuantity">{{ data1.gasQuantity.total.toLocaleString() }}</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | <img v-if="data1.gasQuantity.totalNum > data1.gasQuantity.sameNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | <span class="val" v-if="data1.gasQuantity.totalNum && data1.gasQuantity.totalNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.gasQuantity.totalNum - data1.gasQuantity.sameNum) / data1.gasQuantity.totalNum | 
|---|
|  |  |  | <span class="val" v-if="data1.gasQuantity.sameNum && data1.gasQuantity.sameNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.gasQuantity.totalNum - data1.gasQuantity.sameNum) / data1.gasQuantity.sameNum | 
|---|
|  |  |  | * 100).toFixed(1)) | 
|---|
|  |  |  | }}%</span> | 
|---|
|  |  |  | <span class="val" v-else>-</span> | 
|---|
|  |  |  | <span class="val" v-else style="margin-left: 4px;">-</span> | 
|---|
|  |  |  | <span class="lab">环比</span> | 
|---|
|  |  |  | <img v-if="data1.gasQuantity.totalNum > data1.gasQuantity.ringNum" class="icon" | 
|---|
|  |  |  | src="@/assets/images/ic_up.webp" alt="" /> | 
|---|
|  |  |  | <img v-else class="icon" src="@/assets/images/ic_down.webp" alt="" /> | 
|---|
|  |  |  | <span class="val" v-if="data1.gasQuantity.totalNum && data1.gasQuantity.totalNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.gasQuantity.totalNum - data1.gasQuantity.ringNum) / data1.gasQuantity.totalNum | 
|---|
|  |  |  | <span class="val" v-if="data1.gasQuantity.ringNum && data1.gasQuantity.ringNum != 0">{{ | 
|---|
|  |  |  | Math.abs(((data1.gasQuantity.totalNum - data1.gasQuantity.ringNum) / data1.gasQuantity.ringNum | 
|---|
|  |  |  | * 100).toFixed(1)) | 
|---|
|  |  |  | }}%</span> | 
|---|
|  |  |  | <span class="val" v-else>-</span> | 
|---|
|  |  |  | <span class="val" v-else style="margin-left: 4px;">-</span> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="center_box_two"> | 
|---|
|  |  |  | <img class="bg" src="@/assets/images/img_city@2x.png" alt="" /> | 
|---|
|  |  |  | <template v-if="data6 && data6.secondRegionDataList && data6.secondRegionDataList.length > 0"> | 
|---|
|  |  |  | <div class="item item1"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6.secondRegionDataList[0].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6.secondRegionDataList[0].name }}</div> | 
|---|
|  |  |  | <template v-if="data6 && data6 && data6.length > 0"> | 
|---|
|  |  |  | <div class="item item1" v-if="data6.length > 4"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6[4].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6[4].name }}</div> | 
|---|
|  |  |  | <img src="@/assets/images/bg_data@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="item item2" v-if="data6.secondRegionDataList.length > 1"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6.secondRegionDataList[1].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6.secondRegionDataList[1].name }}</div> | 
|---|
|  |  |  | <div class="item item2" v-if="data6.length > 1"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6[1].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6[1].name }}</div> | 
|---|
|  |  |  | <img src="@/assets/images/bg_data@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="item item3" v-if="data6.secondRegionDataList.length > 2"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6.secondRegionDataList[2].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6.secondRegionDataList[2].name }}</div> | 
|---|
|  |  |  | <div class="item item3" v-if="data6.length > 2"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6[2].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6[2].name }}</div> | 
|---|
|  |  |  | <img src="@/assets/images/bg_data@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="item item4" v-if="data6.secondRegionDataList.length > 3"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6.secondRegionDataList[3].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6.secondRegionDataList[3].name }}</div> | 
|---|
|  |  |  | <div class="item item4" v-if="data6.length > 3"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6[3].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6[3].name }}</div> | 
|---|
|  |  |  | <img src="@/assets/images/bg_data@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="item item5" v-if="data6.secondRegionDataList.length > 4"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6.secondRegionDataList[4].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6.secondRegionDataList[4].name }}</div> | 
|---|
|  |  |  | <div class="item item5"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data6[0].value }}<span class="unit">kw·h</span></div> | 
|---|
|  |  |  | <div class="name">{{ data6[0].name }}</div> | 
|---|
|  |  |  | <img src="@/assets/images/bg_data@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | <div class="bottom_wrap" v-if="data1.yesterdayElectricity"> | 
|---|
|  |  |  | <div class="bottom bottom1"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data1.yesterdayElectricity.total || 0 }}</div> | 
|---|
|  |  |  | <div class="bottom bottom1" @click="changeacDay(3)"> | 
|---|
|  |  |  | <div :class="{ active: activeDays == 3 }" class="num fs_linear">{{ dataObj6.obj1.total || 0 | 
|---|
|  |  |  | }}</div> | 
|---|
|  |  |  | <div class="name">昨日用电</div> | 
|---|
|  |  |  | <div class="unit">kw·h</div> | 
|---|
|  |  |  | <img src="@/assets/images/ic_dianliang_b@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | <img v-if="activeDays == 3" src="@/assets/images/ic_dianliang@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | <img v-else src="@/assets/images/ic_dianliang_b@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="bottom bottom2"> | 
|---|
|  |  |  | <div class="num">{{ data1.todayElectricity.total || 0 }}</div> | 
|---|
|  |  |  | <div class="bottom bottom2" @click="changeacDay(1)"> | 
|---|
|  |  |  | <div :class="{ active: activeDays == 1 }" class="num">{{ dataObj6.obj2.total || 0 }}</div> | 
|---|
|  |  |  | <div class="name">今日用电</div> | 
|---|
|  |  |  | <div class="unit">kw·h</div> | 
|---|
|  |  |  | <img src="@/assets/images/ic_dianliang@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | <img v-if="activeDays == 1" src="@/assets/images/ic_dianliang@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | <img v-else src="@/assets/images/ic_dianliang_b@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="bottom bottom3"> | 
|---|
|  |  |  | <div class="num fs_linear">{{ data1.monthElectricity.total || 0 }}</div> | 
|---|
|  |  |  | <div class="bottom bottom3" @click="changeacDay(2)"> | 
|---|
|  |  |  | <div :class="{ active: activeDays == 2 }" class="num fs_linear">{{ dataObj6.obj3.total || 0 }} | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="name">本月用电</div> | 
|---|
|  |  |  | <div class="unit">kw·h</div> | 
|---|
|  |  |  | <img src="@/assets/images/ic_dianliang_b@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | <img v-if="activeDays == 2" src="@/assets/images/ic_dianliang@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | <img v-else src="@/assets/images/ic_dianliang_b@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | <div class="tabs">油耗:L</div> | 
|---|
|  |  |  | <img src="@/assets/images/title@2x.png" class="bg" alt="" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div v-if="data3 && data3.length > 0" class="list"> | 
|---|
|  |  |  | <template v-for="item, i in data3"> | 
|---|
|  |  |  | <div v-if="i < 6" class="line" > | 
|---|
|  |  |  | <div class="top"><span v-if="i < 3">top</span>{{ i + 1 }}</div> | 
|---|
|  |  |  | <div v-if="data3 && data3.length > 0" class="list one-swiper"> | 
|---|
|  |  |  | <div class="swiper-wrapper"> | 
|---|
|  |  |  | <div class="line one-swiper-slide swiper-slide" v-for="item, i in data3"> | 
|---|
|  |  |  | <div class="top" :class="{ top3: i < 3 }"><span v-if="i < 3">top</span>{{ i + 1 }}</div> | 
|---|
|  |  |  | <div class="id_card">{{ item.carNo }}</div> | 
|---|
|  |  |  | <div class="wrap"> | 
|---|
|  |  |  | <ChargeRate :rate="item.rate" :color="i > 2 ? 'cyan' : '#e3a83a'" /> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="num">{{ item.quantity }}</div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div v-if="data3.length == 0" class="empty_wrap list"> | 
|---|
|  |  |  | <img src="@/assets/images/default_empty.png" alt=""> | 
|---|
|  |  |  | 
|---|
|  |  |  | import ChargeRate from '@/components/ChargeRate.vue' | 
|---|
|  |  |  | import * as echarts from 'echarts' | 
|---|
|  |  |  | import VScaleScreen from 'v-scale-screen' | 
|---|
|  |  |  | import 'swiper/css/swiper.min.css' | 
|---|
|  |  |  | import Swiper from 'swiper' | 
|---|
|  |  |  | import { | 
|---|
|  |  |  | zxcenterData, | 
|---|
|  |  |  | zxenergyDataList, | 
|---|
|  |  |  | zxlastMonthOil, | 
|---|
|  |  |  | zxloadCurve, | 
|---|
|  |  |  | zxenergyRegionData | 
|---|
|  |  |  | zxenergyRegionData, | 
|---|
|  |  |  | regionDataRanking | 
|---|
|  |  |  | } from '@/api' | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | xAxis: { | 
|---|
|  |  |  | type: 'category', | 
|---|
|  |  |  | boundaryGap: false, | 
|---|
|  |  |  | data: data5.value.map(i => i.timeData) | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: data5.value.map(i => dayjs(i.timeData).format('M')) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // tooltip: { | 
|---|
|  |  |  | //   trigger: 'axis', | 
|---|
|  |  |  | //   axisPointer: { | 
|---|
|  |  |  | //     type: 'line' | 
|---|
|  |  |  | //   }, | 
|---|
|  |  |  | // }, | 
|---|
|  |  |  | tooltip: { | 
|---|
|  |  |  | trigger: 'axis', | 
|---|
|  |  |  | axisPointer: { | 
|---|
|  |  |  | type: 'line' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | formatter: function (params) { | 
|---|
|  |  |  | // 遍历悬浮时的所有点,定制化显示内容 | 
|---|
|  |  |  | let result = `<div> | 
|---|
|  |  |  | <div style="width: 120px">${params[0].name}月</div> | 
|---|
|  |  |  | <div style="display: flex;align-items: center;;margin-top: 2px;"> | 
|---|
|  |  |  | <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #f6d047;margin-right: 6px;"></div></div> | 
|---|
|  |  |  | <div><strong>${params[0].value} L</strong></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div>` | 
|---|
|  |  |  | return result | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | yAxis: { | 
|---|
|  |  |  | type: 'value', | 
|---|
|  |  |  | name: '单位:L', | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | nameTextStyle: { | 
|---|
|  |  |  | padding: [0, 0, 0, -16]    // 四个数字分别为上右下左与原位置距离 | 
|---|
|  |  |  | color: '#D2E0FF', | 
|---|
|  |  |  | padding: [0, 0, 0, -18]    // 四个数字分别为上右下左与原位置距离 | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | splitLine: { | 
|---|
|  |  |  | show: true, | 
|---|
|  |  |  | 
|---|
|  |  |  | xAxis: { | 
|---|
|  |  |  | type: 'category', | 
|---|
|  |  |  | boundaryGap: false, | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: data4.value.map(i => i.timeData) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | yAxis: { | 
|---|
|  |  |  | type: 'value', | 
|---|
|  |  |  | name: '单位:kw·h', | 
|---|
|  |  |  | nameTextStyle: { | 
|---|
|  |  |  | padding: [0, 0, 0, -16]    // 四个数字分别为上右下左与原位置距离 | 
|---|
|  |  |  | padding: [0, 0, 0, -16],    // 四个数字分别为上右下左与原位置距离 | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | splitLine: { | 
|---|
|  |  |  | show: true, | 
|---|
|  |  |  | 
|---|
|  |  |  | type: 'dashed', | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | splitNumber: 4 | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | grid: { | 
|---|
|  |  |  | top: '26%', | 
|---|
|  |  |  | top: '18%', | 
|---|
|  |  |  | left: '4%', | 
|---|
|  |  |  | right: '2%', | 
|---|
|  |  |  | bottom: '2%', | 
|---|
|  |  |  | 
|---|
|  |  |  | const data1 = ref({}) | 
|---|
|  |  |  | const getData1 = () => { | 
|---|
|  |  |  | zxcenterData().then(res => { | 
|---|
|  |  |  | const result = res.data | 
|---|
|  |  |  | const result = res.data || {} | 
|---|
|  |  |  | data1.value = result | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const data6 = ref({}) | 
|---|
|  |  |  | const activeDays = ref('1') | 
|---|
|  |  |  | const data6 = ref([]) | 
|---|
|  |  |  | const dataObj6 = ref({ | 
|---|
|  |  |  | obj1: { total: 0 }, | 
|---|
|  |  |  | obj2: { total: 0 }, | 
|---|
|  |  |  | obj3: { total: 0 }, | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | const changeacDay = (val) => { | 
|---|
|  |  |  | activeDays.value = val | 
|---|
|  |  |  | if (val == 3) { | 
|---|
|  |  |  | data6.value = dataObj6.value.obj1.list | 
|---|
|  |  |  | } else if (val == 1) { | 
|---|
|  |  |  | data6.value = dataObj6.value.obj2.list | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | data6.value = dataObj6.value.obj3.list | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const getData6 = () => { | 
|---|
|  |  |  | zxenergyRegionData().then(res => { | 
|---|
|  |  |  | const result = res.data | 
|---|
|  |  |  | data6.value = result | 
|---|
|  |  |  | let obj = { | 
|---|
|  |  |  | obj1: { list: [], total: 0 }, | 
|---|
|  |  |  | obj2: { list: [], total: 0 }, | 
|---|
|  |  |  | obj3: { list: [], total: 0 }, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | regionDataRanking({ type: 3 }).then(res => { | 
|---|
|  |  |  | let arr = res.data || [] | 
|---|
|  |  |  | obj.obj1.list = arr | 
|---|
|  |  |  | arr.forEach(i => { | 
|---|
|  |  |  | obj.obj1.total += Number(i.value) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | obj.obj1.total = obj.obj1.total.toFixed(1) | 
|---|
|  |  |  | dataObj6.value = obj | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | regionDataRanking({ type: 1 }).then(res => { | 
|---|
|  |  |  | let arr = res.data || [] | 
|---|
|  |  |  | obj.obj2.list = arr | 
|---|
|  |  |  | arr.forEach(i => { | 
|---|
|  |  |  | obj.obj2.total += Number(i.value) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | obj.obj2.total = obj.obj2.total.toFixed(1) | 
|---|
|  |  |  | dataObj6.value = obj | 
|---|
|  |  |  | changeacDay(1) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | regionDataRanking({ type: 2 }).then(res => { | 
|---|
|  |  |  | let arr = res.data || [] | 
|---|
|  |  |  | obj.obj3.list = arr | 
|---|
|  |  |  | arr.forEach(i => { | 
|---|
|  |  |  | obj.obj3.total += Number(i.value) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | obj.obj3.total = obj.obj3.total.toFixed(1) | 
|---|
|  |  |  | dataObj6.value = obj | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const activeTab2 = ref(0) | 
|---|
|  |  |  | const tabsClick2 = (v) => { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | myChart.setOption({ | 
|---|
|  |  |  | grid: { | 
|---|
|  |  |  | top: '24%', | 
|---|
|  |  |  | top: '20%', | 
|---|
|  |  |  | left: '6%', | 
|---|
|  |  |  | right: '2%', | 
|---|
|  |  |  | bottom: '4%', | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | tooltip: { | 
|---|
|  |  |  | trigger: 'axis', | 
|---|
|  |  |  | axisPointer: { | 
|---|
|  |  |  | type: 'line' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | formatter: function (params) { | 
|---|
|  |  |  | // 遍历悬浮时的所有点,定制化显示内容 | 
|---|
|  |  |  | let result = `<div> | 
|---|
|  |  |  | <div style="width: 120px">${params[0].name}月</div> | 
|---|
|  |  |  | <div style="display: flex;align-items: center;;margin-top: 2px;"> | 
|---|
|  |  |  | <div style="display: flex;align-items: center;"><div style="width: 10px;height: 10px; border-radius: 50%;background-color: #61a1c4;margin-right: 6px;"></div></div> | 
|---|
|  |  |  | <div><strong>${params[0].value} </strong></div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div>` | 
|---|
|  |  |  | return result | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | xAxis: { | 
|---|
|  |  |  | type: 'category', | 
|---|
|  |  |  | data: data2.value.map(i => i.timeData) | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data: data2.value.map(i => dayjs(i.timeData).format('M')) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | yAxis: { | 
|---|
|  |  |  | type: 'value', | 
|---|
|  |  |  | name: unit, | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | color: '#D2E0FF' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | nameTextStyle: { | 
|---|
|  |  |  | color: '#D2E0FF', | 
|---|
|  |  |  | padding: [0, 0, 4, -30]    // 四个数字分别为上右下左与原位置距离 | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | splitLine: { | 
|---|
|  |  |  | 
|---|
|  |  |  | const data4 = ref([]) | 
|---|
|  |  |  | const getData4 = () => { | 
|---|
|  |  |  | zxloadCurve().then(res => { | 
|---|
|  |  |  | const result = res.data | 
|---|
|  |  |  | const result = res.data || [] | 
|---|
|  |  |  | data4.value = result | 
|---|
|  |  |  | if (data4.value && data4.value.length > 0) { | 
|---|
|  |  |  | initLoadReal() | 
|---|
|  |  |  | 
|---|
|  |  |  | const data5 = ref([]) | 
|---|
|  |  |  | const getData5 = () => { | 
|---|
|  |  |  | zxenergyDataList({ type: 2 }).then(res => { | 
|---|
|  |  |  | const result = res.data | 
|---|
|  |  |  | const result = res.data || [] | 
|---|
|  |  |  | data5.value = result | 
|---|
|  |  |  | initOperation() | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const autoplayFlag = (list = [], leng = 4, time = 2000) => { | 
|---|
|  |  |  | if (list.length > leng) { | 
|---|
|  |  |  | return { delay: time, disableOnInteraction: false } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | return false | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const loopFn1 = () => { | 
|---|
|  |  |  | var newSwiper1 = new Swiper('.one-swiper', { | 
|---|
|  |  |  | initialSlide: 0, | 
|---|
|  |  |  | direction: 'vertical', //竖直方向 | 
|---|
|  |  |  | slidesPerView: 6, | 
|---|
|  |  |  | autoplay: autoplayFlag(data3.value, 6, 4000), | 
|---|
|  |  |  | observer: true, //修改swiper自己或子元素时,自动初始化swiper | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | getData4() | 
|---|
|  |  |  | getData5() | 
|---|
|  |  |  | getData6() | 
|---|
|  |  |  | setInterval(() => { | 
|---|
|  |  |  | getData4() | 
|---|
|  |  |  | }, 1000 * 60) | 
|---|
|  |  |  | setInterval(() => { | 
|---|
|  |  |  | getData1() | 
|---|
|  |  |  | getData2() | 
|---|
|  |  |  | getData3() | 
|---|
|  |  |  | getData5() | 
|---|
|  |  |  | getData6() | 
|---|
|  |  |  | }, 1000 * 60 * 60) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | loopFn1() | 
|---|
|  |  |  | }, 12000) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .bottom { | 
|---|
|  |  |  | width: 140px; | 
|---|
|  |  |  | width: 150px; | 
|---|
|  |  |  | height: 194px; | 
|---|
|  |  |  | position: absolute; | 
|---|
|  |  |  | text-align: center; | 
|---|
|  |  |  | padding-top: 70px; | 
|---|
|  |  |  | cursor: pointer; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .num { | 
|---|
|  |  |  | font-size: 24px; | 
|---|
|  |  |  | 
|---|
|  |  |  | font-size: 14px; | 
|---|
|  |  |  | color: #D0FFFA; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .active { | 
|---|
|  |  |  | font-size: 36px; | 
|---|
|  |  |  | color: #01D9FE; | 
|---|
|  |  |  | font-weight: bold; | 
|---|
|  |  |  | margin-bottom: 10px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .bottom1 { | 
|---|
|  |  |  | 
|---|
|  |  |  | bottom: -0px; | 
|---|
|  |  |  | left: 50%; | 
|---|
|  |  |  | transform: translate(-50%, 0); | 
|---|
|  |  |  | padding-top: 50px; | 
|---|
|  |  |  | /* padding-top: 50px; */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .num { | 
|---|
|  |  |  | font-size: 36px; | 
|---|
|  |  |  | color: #01D9FE; | 
|---|
|  |  |  | line-height: 54px; | 
|---|
|  |  |  | font-weight: bold; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | margin-bottom: 20px; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .list { | 
|---|
|  |  |  | padding: 20px 24px 4px; | 
|---|
|  |  |  | height: 250px; | 
|---|
|  |  |  | padding: 0px 24px; | 
|---|
|  |  |  | height: 228px; | 
|---|
|  |  |  | margin: 20px 0 0; | 
|---|
|  |  |  | overflow: auto; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .line { | 
|---|
|  |  |  | display: flex; | 
|---|
|  |  |  | align-items: center; | 
|---|
|  |  |  | margin-bottom: 16px; | 
|---|
|  |  |  | /* margin-bottom: 16px; */ | 
|---|
|  |  |  | height: 38px !important; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .top { | 
|---|
|  |  |  | font-weight: 500; | 
|---|
|  |  |  | 
|---|
|  |  |  | margin-right: 10px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .top3 { | 
|---|
|  |  |  | box-shadow: inset 0px 0px 3px 0px #FEAF01; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .id_card { | 
|---|
|  |  |  | color: #DBEAEA; | 
|---|
|  |  |  | font-weight: 500; | 
|---|
|  |  |  | margin-right: 6px; | 
|---|
|  |  |  | font-size: 13px; | 
|---|
|  |  |  | width: 64px; | 
|---|
|  |  |  | width: 68px; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .num { | 
|---|
|  |  |  | 
|---|
|  |  |  | z-index: -1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  | </style> | 
|---|