<template> 
 | 
  <v-scale-screen width="1920" height="960"> 
 | 
    <div class="main_app"> 
 | 
      <img src="@/assets/images/energy_ef/bg@2x.png" class="main_bg" alt="" /> 
 | 
      <div class="main_header"> 
 | 
        <img src="@/assets/images/maintitle@2x.png" class="main_header_bg" alt="" /> 
 | 
        <div class="title">安泰智慧物流园区-调度能效跟踪</div> 
 | 
        <div class="time_wrap"> 
 | 
          <span class="date">{{ date }}</span> 
 | 
          <span class="week">{{ week }}</span> 
 | 
          <span class="time">{{ time }}</span> 
 | 
        </div> 
 | 
      </div> 
 | 
      <div class="main_content"> 
 | 
        <div class="left_box"> 
 | 
          <div class="left_box_one"> 
 | 
            <div class="com_header"> 
 | 
              <div class="title"> 
 | 
                <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> 
 | 
                <div>累计出库量统计</div> 
 | 
              </div> 
 | 
              <div class="tabs"> 
 | 
                <div class="tab active">本月</div> 
 | 
                <div class="separate"></div> 
 | 
                <div class="tab">本年</div> 
 | 
              </div> 
 | 
              <img src="@/assets/images/title@2x.png" class="bg" alt="" /> 
 | 
            </div> 
 | 
            <div class="content_wrap"> 
 | 
              <div class="content"> 
 | 
                <div class="num">1000000</div> 
 | 
                <div class="unit_wrap"> 
 | 
                  <span style="color: #869CC9;">同比</span> 
 | 
                  <img src="@/assets/images/ic_up.png" class="icon" alt=""> 
 | 
                  <span>10.2%</span> 
 | 
                </div> 
 | 
              </div> 
 | 
              <div class="train_wrap"> 
 | 
                <div class="icon_wrap"> 
 | 
                  <img src="@/assets//images/energy_ef/chuku_ic_car@2x.png" alt=""> 
 | 
                </div> 
 | 
                <div class="total"> 
 | 
                  <span>累计出库车次</span> 
 | 
                  <span><strong>3900</strong><span class="unit">次</span></span> 
 | 
                </div> 
 | 
              </div> 
 | 
            </div> 
 | 
          </div> 
 | 
          <div class="left_box_two"> 
 | 
            <div class="com_header"> 
 | 
              <div class="title"> 
 | 
                <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> 
 | 
                <div>月能耗分析</div> 
 | 
              </div> 
 | 
              <div class="tabs"> 
 | 
                <div class="tab active">近7日</div> 
 | 
                <div class="separate"></div> 
 | 
                <div class="tab">本月</div> 
 | 
                <div class="separate"></div> 
 | 
                <div class="tab">本年</div> 
 | 
              </div> 
 | 
              <img src="@/assets/images/title@2x.png" class="bg" alt="" /> 
 | 
            </div> 
 | 
            <div class="energy_wrap"> 
 | 
              <div class="energyRef"></div> 
 | 
            </div> 
 | 
          </div> 
 | 
          <div class="left_box_three"> 
 | 
            <div class="com_header"> 
 | 
              <div class="title"> 
 | 
                <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> 
 | 
                <div>当前运输任务</div> 
 | 
              </div> 
 | 
              <img src="@/assets/images/title@2x.png" class="bg" alt="" /> 
 | 
            </div> 
 | 
            <div class="list_wrap"> 
 | 
              <div class="list"> 
 | 
                <div class="header line"> 
 | 
                  <span class="item flag">标识</span> 
 | 
                  <span class="item order">运输单号</span> 
 | 
                  <span class="item id_card">运输车辆</span> 
 | 
                  <span class="item status">作业状态</span> 
 | 
                  <span class="item addr">收货单位</span> 
 | 
                  <span class="item time">任务开始时间</span> 
 | 
                </div> 
 | 
                <div class="line" v-for="i in 7"> 
 | 
                  <span class="item flag"><span class="flag_bg">出</span></span> 
 | 
                  <span class="item order">11</span> 
 | 
                  <span class="item id_card">11</span> 
 | 
                  <span class="item status">11</span> 
 | 
                  <span class="item addr">11</span> 
 | 
                  <span class="item time">11</span> 
 | 
                </div> 
 | 
              </div> 
 | 
            </div> 
 | 
          </div> 
 | 
        </div> 
 | 
        <div class="center_box"> 
 | 
          <div class="center_box_one"> 
 | 
            <div class="tabs"> 
 | 
              <div class="tab active"> 
 | 
                <img src="@/assets/images/energy_ef/chuku_task_ac.png" alt=""> 
 | 
                <span>出库任务</span> 
 | 
              </div> 
 | 
              <div class="tab"> 
 | 
                <img src="@/assets/images/energy_ef/ruku_task.png" alt=""> 
 | 
                <span>入库任务</span> 
 | 
              </div> 
 | 
            </div> 
 | 
            <div class="static_wrap"> 
 | 
              <div class="item"> 
 | 
                <img src="@/assets/images/energy_ef/ic_renwuzongliang@2x.png" alt=""> 
 | 
                <div class="content"> 
 | 
                  <div class="name">当前任务量</div> 
 | 
                  <div class="num"><span>1000</span>万支</div> 
 | 
                </div> 
 | 
              </div> 
 | 
              <div class="item"> 
 | 
                <img src="@/assets/images/energy_ef/ic_wanchengrenwu@2x.png" alt=""> 
 | 
                <div class="content"> 
 | 
                  <div class="name">当日完成任务总量</div> 
 | 
                  <div class="num"><span class="today">1000</span>万支</div> 
 | 
                </div> 
 | 
              </div> 
 | 
              <div class="item"> 
 | 
                <img src="@/assets/images/energy_ef/ic_bili@2x.png" alt=""> 
 | 
                <div class="content"> 
 | 
                  <div class="name">已完成比例</div> 
 | 
                  <div class="num"><span class="finish">1000</span>万支</div> 
 | 
                </div> 
 | 
              </div> 
 | 
            </div> 
 | 
          </div> 
 | 
          <div class="center_box_two"> 
 | 
            <div ref="echartMap" class="echart_map" id="echartMap"></div> 
 | 
          </div> 
 | 
        </div> 
 | 
        <div class="right_box"> 
 | 
          <div class="right_box_one"> 
 | 
            <div class="com_header"> 
 | 
              <div class="title"> 
 | 
                <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> 
 | 
                <div>出入库效率</div> 
 | 
              </div> 
 | 
              <div class="tabs"> 
 | 
                <div class="tab active">今日</div> 
 | 
                <div class="separate"></div> 
 | 
                <div class="tab">本月</div> 
 | 
              </div> 
 | 
              <img src="@/assets/images/title@2x.png" class="bg" alt="" /> 
 | 
            </div> 
 | 
            <div class="static_wrap"> 
 | 
              <div class="item"> 
 | 
                <img src="@/assets/images/energy_ef/ic_chukuxiaolv@2x.png" alt=""> 
 | 
                <div class="content"> 
 | 
                  <div class="name">出库效率</div> 
 | 
                  <div class="num"><span>1000</span>万支/小时</div> 
 | 
                </div> 
 | 
              </div> 
 | 
              <div class="item"> 
 | 
                <img src="@/assets/images/energy_ef/ic_rukuxiaolv@2x.png" alt=""> 
 | 
                <div class="content"> 
 | 
                  <div class="name">入库效率</div> 
 | 
                  <div class="num"><span class="today">1000</span>万支/小时</div> 
 | 
                </div> 
 | 
              </div> 
 | 
            </div> 
 | 
          </div> 
 | 
          <div class="right_box_two"> 
 | 
            <div class="com_header"> 
 | 
              <div class="title"> 
 | 
                <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> 
 | 
                <div>今日入库量统计</div> 
 | 
              </div> 
 | 
              <img src="@/assets/images/title@2x.png" class="bg" alt="" /> 
 | 
            </div> 
 | 
            <div class="content"> 
 | 
              <div class="echart_wrap"> 
 | 
                <div class="pie_text"> 
 | 
                  <div class="fs30"><strong>300</strong></div> 
 | 
                  <div>入库数量</div> 
 | 
                </div> 
 | 
                <div class="echart" id="echart1"></div> 
 | 
              </div> 
 | 
              <div class="list"> 
 | 
                <div class="item"> 
 | 
                  <div class="line"> 
 | 
                    <div :style="{ background: colors[0] }" class="icon"></div> 
 | 
                    <div class="text">合肥厂</div> 
 | 
                  </div> 
 | 
                  <div :style="{ color: colors[0] }" class="num">100万支 | 55%</div> 
 | 
                </div> 
 | 
                <div class="item"> 
 | 
                  <div class="line"> 
 | 
                    <div :style="{ background: colors[1] }" class="icon"></div> 
 | 
                    <div class="text">集散中心</div> 
 | 
                  </div> 
 | 
                  <div :style="{ color: colors[1] }" class="num">100万支 | 55%</div> 
 | 
                </div> 
 | 
                <div class="item"> 
 | 
                  <div class="line"> 
 | 
                    <div :style="{ background: colors[2] }" class="icon"></div> 
 | 
                    <div class="text">市公司</div> 
 | 
                  </div> 
 | 
                  <div :style="{ color: colors[2] }" class="num">100万支 | 55%</div> 
 | 
                </div> 
 | 
              </div> 
 | 
            </div> 
 | 
          </div> 
 | 
          <div class="right_box_three"> 
 | 
            <div class="com_header"> 
 | 
              <div class="title"> 
 | 
                <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" /> 
 | 
                <div>库存情况</div> 
 | 
              </div> 
 | 
              <img src="@/assets/images/title@2x.png" class="bg" alt="" /> 
 | 
            </div> 
 | 
            <div class="repertory"> 
 | 
              <div class="use_ratio"> 
 | 
                <div class="header"> 
 | 
                  <div>库存量 <span class="num">80/100</span></div> 
 | 
                  <div>利用率 88%</div> 
 | 
                </div> 
 | 
                <Percent :rate="80" /> 
 | 
              </div> 
 | 
              <div class="list"> 
 | 
                <div class="item"> 
 | 
                  <div class="la">黄山(新制皖烟)</div> 
 | 
                  <div class="val">400万支</div> 
 | 
                </div> 
 | 
                <div class="item"> 
 | 
                  <div class="la">黄山(新制皖烟)</div> 
 | 
                  <div class="val">400万支</div> 
 | 
                </div> 
 | 
              </div> 
 | 
            </div> 
 | 
          </div> 
 | 
        </div> 
 | 
      </div> 
 | 
    </div> 
 | 
  </v-scale-screen> 
 | 
</template> 
 | 
  
 | 
<script setup> 
 | 
import { ref, onMounted } from 'vue' 
 | 
import VScaleScreen from 'v-scale-screen' 
 | 
import Percent from '@/components/percent.vue' 
 | 
import dayjs from 'dayjs' 
 | 
import * as echarts from 'echarts' 
 | 
import ahJSON from '@/assets/anhui.json' 
 | 
import { 
 | 
  wlcenterData, 
 | 
  wljobData, 
 | 
  wlplatformJobList, 
 | 
  wlstockList, 
 | 
  wltotalInList, 
 | 
  wltransportMeasure, 
 | 
} from '@/api' 
 | 
  
 | 
const colors = ['#FEAF01', '#01ABFE', '#51F9E4'] 
 | 
const weekMap = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六',] 
 | 
const date = ref(dayjs().format('YYYY.MM.DD')) 
 | 
const week = ref(weekMap[new Date().getDay()]) 
 | 
const time = ref(dayjs().format('HH:mm:ss')) 
 | 
setInterval(() => { 
 | 
  date.value = dayjs().format('YYYY-MM-DD') 
 | 
  week.value = weekMap[new Date().getDay()] 
 | 
  time.value = dayjs().format('HH:mm:ss') 
 | 
  
 | 
}, 1000) 
 | 
  
 | 
const arr = ['#68e2e3', '#50afd3', '#377cdb', '#d5ae3a'] 
 | 
const initEnergy = () => { 
 | 
  var myChart = echarts.init(document.querySelector('.energyRef')) 
 | 
  // 绘制图表 
 | 
  myChart.setOption({ 
 | 
    legend: { 
 | 
      itemGap: 12, 
 | 
      // icon: 'circle', 
 | 
      right: '12px', 
 | 
      top: '0', 
 | 
      data: ['总库存', '当前库存', '库存利用率'], 
 | 
      itemWidth: 20, 
 | 
      itemHeight: 10, 
 | 
      textStyle: { 
 | 
        color: '#fff', 
 | 
        borderColor: '#fff' 
 | 
      }, 
 | 
    }, 
 | 
    grid: { 
 | 
      left: '3%', 
 | 
      right: '4%', 
 | 
      bottom: '3%', 
 | 
      top: '16%', 
 | 
      containLabel: true 
 | 
    }, 
 | 
    tooltip: { 
 | 
      trigger: 'axis' 
 | 
    }, 
 | 
    xAxis: [{ 
 | 
      nameGap: 5, 
 | 
      type: 'category', 
 | 
      axisLine: { 
 | 
        show: true, 
 | 
        lineStyle: { 
 | 
          color: '#999' 
 | 
        }, 
 | 
      }, 
 | 
      axisLabel: { 
 | 
        color: '#869CC9' 
 | 
        // fontSize: 24, 
 | 
      }, 
 | 
      axisTick: { 
 | 
        show: false, 
 | 
      }, 
 | 
      data: ['7.1', '7.1', '7.1', '7.1', '7.1'], 
 | 
    }], 
 | 
    yAxis: [ 
 | 
      { 
 | 
        nameTextStyle: { 
 | 
          color: '#869CC9', 
 | 
        }, 
 | 
        offset: 0, 
 | 
        name: '万支', 
 | 
        type: 'value', 
 | 
        axisLabel: { 
 | 
          show: true, 
 | 
          color: "#869CC9", 
 | 
        }, 
 | 
        axisLine: { 
 | 
          show: true, 
 | 
        }, 
 | 
        splitLine: { 
 | 
          show: true, 
 | 
          lineStyle: { 
 | 
            width: 1, 
 | 
            color: "rgba(49,105,129,0.4)", 
 | 
            type: 'dashed' 
 | 
          } 
 | 
        }, 
 | 
      }, 
 | 
      { 
 | 
        type: 'value', 
 | 
        name: '%', 
 | 
        min: 0, 
 | 
        max: 100, 
 | 
        // interval: 5, 
 | 
        axisLabel: { 
 | 
          formatter: '{value}%' 
 | 
        }, 
 | 
        splitLine: false 
 | 
      } 
 | 
    ], 
 | 
    series: [ 
 | 
      { 
 | 
        name: '计划完成数量', 
 | 
        type: 'bar', 
 | 
        barWidth: 10, 
 | 
        barGap: '60%', 
 | 
        label: { 
 | 
          show: false, 
 | 
          position: 'top', 
 | 
          color: '#fff', 
 | 
        }, 
 | 
        itemStyle: { 
 | 
          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ 
 | 
            { 
 | 
              offset: 0, 
 | 
              color: '#5bc7d5' 
 | 
            }, 
 | 
            { 
 | 
              offset: 1, 
 | 
              color: '#1a3f55' 
 | 
            } 
 | 
          ], false), 
 | 
          lineStyle: { 
 | 
            width: 1, 
 | 
            type: 'solid' 
 | 
          }, 
 | 
          barBorderRadius: [3, 3, 0, 0], 
 | 
        }, 
 | 
        data: [900, 438, 485, 631, 689] 
 | 
      }, 
 | 
      { 
 | 
        name: '任务完成量', 
 | 
        type: 'bar', 
 | 
        barWidth: 10, 
 | 
        label: { 
 | 
          show: false, 
 | 
          position: 'top', 
 | 
          color: '#fff', 
 | 
        }, 
 | 
        itemStyle: { 
 | 
          color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ 
 | 
            { 
 | 
              offset: 0, 
 | 
              color: '#edaf3d' 
 | 
            }, 
 | 
            { 
 | 
              offset: 1, 
 | 
              color: '#323522' 
 | 
            } 
 | 
          ], false), 
 | 
          lineStyle: { 
 | 
            width: 1, 
 | 
            type: 'solid' 
 | 
          }, 
 | 
          barBorderRadius: [3, 3, 0, 0], 
 | 
        }, 
 | 
        data: [438, 485, 631, 689, 900] 
 | 
      }, 
 | 
      { 
 | 
        name: '计划任务数', 
 | 
        type: 'line', 
 | 
        smooth: false, 
 | 
        showAllSymbol: true, 
 | 
        symbol: 'none', 
 | 
        lineStyle: { 
 | 
          color: "#1a43bc" 
 | 
        }, 
 | 
        label: { 
 | 
          show: false, 
 | 
          position: 'top', 
 | 
          color: '#fff', 
 | 
        }, 
 | 
        data: [485, 631, 389, 224, 287] 
 | 
      } 
 | 
    ] 
 | 
  }) 
 | 
  
 | 
  window.addEventListener('resize', function () {//执行 
 | 
    myChart.resize() 
 | 
  }) 
 | 
} 
 | 
const initEchart1 = () => { 
 | 
  const myChart = echarts.init(document.getElementById('echart1')) 
 | 
  const option = { 
 | 
    series: [ 
 | 
      { 
 | 
        type: 'pie', 
 | 
        radius: ['86%', '100%'], 
 | 
        label: { 
 | 
          show: false, 
 | 
          position: 'center' 
 | 
        }, 
 | 
        padAngle: 5, 
 | 
        itemStyle: { 
 | 
          borderRadius: 10 
 | 
        }, 
 | 
        color: colors, 
 | 
        labelLine: { 
 | 
          show: false 
 | 
        }, 
 | 
        data: [ 
 | 
          { value: 1048, name: 'Search Engine' }, 
 | 
          { value: 735, name: 'Direct' }, 
 | 
          { value: 580, name: 'Email' } 
 | 
        ] 
 | 
      } 
 | 
    ] 
 | 
  } 
 | 
  myChart.setOption(option) 
 | 
  window.addEventListener('resize', function () { // 执行 
 | 
    myChart.resize() 
 | 
  }) 
 | 
} 
 | 
  
 | 
const echartMap = ref() 
 | 
const initMap = () => { 
 | 
  var myChart = echarts.init(echartMap.value) 
 | 
  echarts.registerMap('js', ahJSON) 
 | 
  var center = { 
 | 
    '合肥市': [117.25, 31.83], 
 | 
    '滁州市': [118.32, 32.3], 
 | 
    '芜湖市': [118.43, 31.35], 
 | 
    '阜阳市': [115.38, 32.89], 
 | 
    '蚌埠市': [117.39, 32.92], 
 | 
    '淮南市': [116.99, 32.63], 
 | 
    '马鞍山市': [118.5, 31.71], 
 | 
    '安庆市': [117.05, 30.52], 
 | 
    '黄山市': [118.33, 29.71], 
 | 
    '铜陵市': [117.81, 30.94], 
 | 
    '宿州市': [116.98, 33.64], 
 | 
    '淮北市': [116.8, 33.9], 
 | 
    '六安市': [116.51, 31.75], 
 | 
    '池州市': [117.49, 30.66], 
 | 
    '宣城市': [118.76, 30.94], 
 | 
    '亳州市': [115.78, 33.84], 
 | 
  } 
 | 
  var data = [ 
 | 
    { name: "合肥市", value: 3 }, 
 | 
    { name: "滁州市", value: 0 }, 
 | 
    { name: "芜湖市", value: 1 }, 
 | 
    { name: "阜阳市", value: 0 }, 
 | 
    { name: "蚌埠市", value: 0 }, 
 | 
    { name: "淮南市", value: 0 }, 
 | 
    { name: "马鞍山市", value: 0 }, 
 | 
    { name: "安庆市", value: 0 }, 
 | 
    { name: "黄山市", value: 0 }, 
 | 
    { name: "铜陵市", value: 0 }, 
 | 
    { name: "宿州市", value: 0 }, 
 | 
    { name: "淮北市", value: 0 }, 
 | 
    { name: "六安市", value: 0 }, 
 | 
    { name: "池州市", value: 1 }, 
 | 
    { name: "宣城市", value: 0 }, 
 | 
    { name: "亳州市", value: 0 }, 
 | 
  ] 
 | 
  const option = { 
 | 
    title: { 
 | 
      top: 20, 
 | 
      text: '', 
 | 
      subtext: '', 
 | 
      x: 'center', 
 | 
      textStyle: { 
 | 
        color: '#ffffff' 
 | 
      } 
 | 
    }, 
 | 
  
 | 
    tooltip: { 
 | 
      trigger: 'item', 
 | 
      formatter: function (params) { 
 | 
        if (typeof (params.value)[2] == "undefined") { 
 | 
          return params.name + ' : ' + params.value 
 | 
        } else { 
 | 
          return params.name + ' : ' + params.value[2] 
 | 
        } 
 | 
      } 
 | 
    }, 
 | 
    visualMap: { 
 | 
      show: false, 
 | 
      max: 100, 
 | 
      seriesIndex: [3], 
 | 
      inRange: { 
 | 
        color: ['#A5DCF4', '#006edd'] 
 | 
      } 
 | 
    }, 
 | 
    geo: [{ 
 | 
      map: 'js', 
 | 
      roam: false, //是否允许缩放 
 | 
      zoom: 1.1, //默认显示级别 
 | 
      scaleLimit: { 
 | 
        min: 0, 
 | 
        max: 3 
 | 
      }, //缩放级别 
 | 
      itemStyle: { 
 | 
        normal: { 
 | 
          areaColor: 'transparent', 
 | 
          borderColor: '#3fdaff', 
 | 
          borderWidth: 2, 
 | 
          shadowColor: 'rgba(63, 218, 255, 0.5)', 
 | 
          shadowBlur: 30 
 | 
        }, 
 | 
        emphasis: { 
 | 
          areaColor: '#2B91B7', 
 | 
        } 
 | 
      }, 
 | 
      tooltip: { 
 | 
        show: false 
 | 
      } 
 | 
    }], 
 | 
    series: [ 
 | 
      { 
 | 
        type: 'effectScatter', 
 | 
        coordinateSystem: 'geo', 
 | 
        z: 5, 
 | 
        data, 
 | 
        symbolSize: 14, 
 | 
        label: { 
 | 
          normal: { 
 | 
            show: true, 
 | 
            formatter: function (params) { 
 | 
              return '{fline|地点:' + params.data.city + '}\n{tline|' + (params.data.info || '发生xx集件') + '}' 
 | 
            }, 
 | 
            position: 'top', 
 | 
            backgroundColor: 'rgba(233,63,66,.9)', 
 | 
            padding: [0, 0], 
 | 
            borderRadius: 3, 
 | 
            lineHeight: 32, 
 | 
            color: '#ffffff', 
 | 
            rich: { 
 | 
              fline: { 
 | 
                padding: [0, 10, 10, 10], 
 | 
                color: '#ffffff' 
 | 
              }, 
 | 
              tline: { 
 | 
                padding: [10, 10, 0, 10], 
 | 
                color: '#ffffff' 
 | 
              } 
 | 
            } 
 | 
          }, 
 | 
          emphasis: { 
 | 
            show: true 
 | 
          } 
 | 
        }, 
 | 
        itemStyle: { 
 | 
          color: '#e93f42', 
 | 
        } 
 | 
      }, 
 | 
  
 | 
      //地图 
 | 
      { 
 | 
        type: 'map', 
 | 
        mapType: 'js', 
 | 
        geoIndex: -1, 
 | 
        zoom: 1.1, //默认显示级别 
 | 
        label: { 
 | 
          show: true, 
 | 
          color: '#ffffff', 
 | 
          emphasis: { 
 | 
            color: 'white', 
 | 
            show: false 
 | 
          } 
 | 
        }, 
 | 
        itemStyle: { 
 | 
          normal: { 
 | 
            borderColor: '#2980b9', 
 | 
            borderWidth: 1, 
 | 
            areaColor: '#1d3b60' 
 | 
          }, 
 | 
          emphasis: { 
 | 
            areaColor: '#FA8C16', 
 | 
            borderWidth: 0, 
 | 
            color: 'green' 
 | 
          } 
 | 
        }, 
 | 
        data: data 
 | 
      } 
 | 
    ] 
 | 
  } 
 | 
  
 | 
  myChart.setOption(option) 
 | 
  window.addEventListener('resize', function () {//执行 
 | 
    myChart.resize() 
 | 
  }) 
 | 
} 
 | 
  
 | 
const dataList1 = ref([]) 
 | 
const getData1 = () => { 
 | 
  wlcenterData().then(res => { 
 | 
    const result = res 
 | 
  }) 
 | 
} 
 | 
const dataList2 = ref([]) 
 | 
const getData2 = () => { 
 | 
  wlcenterData().then(res => { 
 | 
    const result = res 
 | 
  }) 
 | 
} 
 | 
const dataList3 = ref([]) 
 | 
const getData3 = () => { 
 | 
  wlcenterData().then(res => { 
 | 
    const result = res 
 | 
  }) 
 | 
} 
 | 
const dataList4 = ref([]) 
 | 
const getData4 = () => { 
 | 
  wlcenterData().then(res => { 
 | 
    const result = res 
 | 
  }) 
 | 
} 
 | 
const dataList5 = ref([]) 
 | 
const getData5 = () => { 
 | 
  wlcenterData().then(res => { 
 | 
    const result = res 
 | 
  }) 
 | 
} 
 | 
const dataList6 = ref([]) 
 | 
const getData6 = () => { 
 | 
  wlcenterData().then(res => { 
 | 
    const result = res 
 | 
  }) 
 | 
} 
 | 
onMounted(() => { 
 | 
  getData1() 
 | 
  getData2() 
 | 
  getData3() 
 | 
  getData4() 
 | 
  getData5() 
 | 
  getData6() 
 | 
  return 
 | 
  initEnergy() 
 | 
  initEchart1() 
 | 
  initMap() 
 | 
}) 
 | 
  
 | 
  
 | 
</script> 
 | 
  
 | 
<style lang="scss" scoped> 
 | 
div { 
 | 
  box-sizing: border-box; 
 | 
} 
 | 
  
 | 
.main_content { 
 | 
  display: flex; 
 | 
  padding: 20px 25px 0; 
 | 
  
 | 
  .left_box { 
 | 
    width: 440px; 
 | 
  
 | 
    .left_box_one { 
 | 
      width: 100%; 
 | 
      position: relative; 
 | 
      margin-bottom: 20px; 
 | 
  
 | 
      .content_wrap { 
 | 
        height: 164px; 
 | 
        padding: 22px 20px 0; 
 | 
  
 | 
        .content { 
 | 
          display: flex; 
 | 
          align-items: flex-end; 
 | 
          margin: 10px 0 22px; 
 | 
  
 | 
          .num { 
 | 
            margin-right: 10px; 
 | 
            font-weight: bold; 
 | 
            font-size: 46px; 
 | 
            height: 44px; 
 | 
            line-height: 52px; 
 | 
            font-weight: bold; 
 | 
            color: #00F2F3; 
 | 
            letter-spacing: 3px; 
 | 
            background-image: -webkit-linear-gradient(top, 
 | 
                #01D9FE 0%, 
 | 
                #0177FE 60%, 
 | 
                #0177FE 100%); 
 | 
            -webkit-background-clip: text; 
 | 
            -webkit-text-fill-color: transparent; 
 | 
          } 
 | 
  
 | 
          .unit_wrap { 
 | 
            display: flex; 
 | 
            align-items: center; 
 | 
          } 
 | 
  
 | 
          .icon { 
 | 
            width: 10px; 
 | 
            height: 12px; 
 | 
            margin-right: 6px; 
 | 
            margin-left: 4px; 
 | 
          } 
 | 
        } 
 | 
  
 | 
        .train_wrap { 
 | 
          display: flex; 
 | 
          height: 40px; 
 | 
          margin-top: 18px; 
 | 
  
 | 
          .icon_wrap { 
 | 
            width: 40px; 
 | 
            height: 40px; 
 | 
            display: flex; 
 | 
            justify-content: center; 
 | 
            align-items: center; 
 | 
            margin-right: 4px; 
 | 
            border: 1px solid; 
 | 
            background: linear-gradient(180deg, rgba(0, 148, 235, 0.68) 0%, rgba(0, 148, 235, 0) 100%); 
 | 
            border-image: linear-gradient(180deg, rgba(177, 210, 255, 0.64), rgba(0, 171, 255, 0.7)) 1 1; 
 | 
  
 | 
            img { 
 | 
              width: 26px; 
 | 
            } 
 | 
          } 
 | 
  
 | 
          .total { 
 | 
            flex: 1; 
 | 
            display: flex; 
 | 
            align-items: center; 
 | 
            justify-content: space-between; 
 | 
            padding: 0 20px; 
 | 
            font-size: 16px; 
 | 
            border: 1px solid; 
 | 
            border-image: linear-gradient(180deg, rgba(177, 210, 255, 0.64), rgba(0, 171, 255, 0.7)) 1 1; 
 | 
            background: linear-gradient(180deg, rgba(0, 148, 235, 0.68) 0%, rgba(0, 148, 235, 0) 100%); 
 | 
  
 | 
            .unit { 
 | 
              margin-left: 5px; 
 | 
              font-size: 13px; 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  
 | 
    .left_box_two { 
 | 
      margin-bottom: 20px; 
 | 
  
 | 
      .energy_wrap { 
 | 
        width: 100%; 
 | 
        height: 250px; 
 | 
  
 | 
        .energyRef { 
 | 
          width: 100%; 
 | 
          height: 100%; 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  
 | 
    .left_box_three { 
 | 
      .list_wrap { 
 | 
        padding: 10px 0; 
 | 
  
 | 
        .list { 
 | 
          .line { 
 | 
            display: flex; 
 | 
            height: 30px; 
 | 
            align-items: center; 
 | 
            padding: 0 10px; 
 | 
            font-size: 12px; 
 | 
  
 | 
            &:nth-of-type(2n) { 
 | 
              background: rgba(27, 64, 97, 0.52); 
 | 
  
 | 
              .flag_bg { 
 | 
                background: #01ABFE !important; 
 | 
              } 
 | 
            } 
 | 
  
 | 
            .item { 
 | 
              flex: 5; 
 | 
              white-space: nowrap; 
 | 
              overflow: hidden; 
 | 
              text-overflow: ellipsis; 
 | 
            } 
 | 
  
 | 
            .flag { 
 | 
              flex: 3; 
 | 
              display: flex; 
 | 
  
 | 
              .flag_bg { 
 | 
                width: 22px; 
 | 
                height: 22px; 
 | 
                display: flex; 
 | 
                justify-content: center; 
 | 
                align-items: center; 
 | 
                border-radius: 50%; 
 | 
                background: #00F2F3; 
 | 
                font-weight: 500; 
 | 
                color: #001B3C; 
 | 
              } 
 | 
            } 
 | 
  
 | 
            .status { 
 | 
              color: #FEAF01; 
 | 
            } 
 | 
  
 | 
            .addr { 
 | 
              flex: 8; 
 | 
  
 | 
            } 
 | 
  
 | 
            .time { 
 | 
              flex: 8; 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  } 
 | 
  
 | 
  .center_box { 
 | 
    flex: 1; 
 | 
    padding: 16px 60px; 
 | 
    display: flex; 
 | 
    flex-direction: column; 
 | 
  
 | 
    .center_box_one { 
 | 
      height: 190px; 
 | 
  
 | 
      .tabs { 
 | 
        display: flex; 
 | 
        align-items: center; 
 | 
  
 | 
        .tab { 
 | 
          display: flex; 
 | 
          align-items: center; 
 | 
          margin-right: 30px; 
 | 
  
 | 
          img { 
 | 
            width: 20px; 
 | 
            height: 20px; 
 | 
            margin-right: 8px; 
 | 
          } 
 | 
  
 | 
          font-size: 20px; 
 | 
          font-weight: 600; 
 | 
          color: #D2E0FF; 
 | 
        } 
 | 
  
 | 
        .active { 
 | 
          background-image: -webkit-linear-gradient(top, 
 | 
              #fff 0%, 
 | 
              #eec05f 60%, 
 | 
              #eec05f 100%); 
 | 
          -webkit-background-clip: text; 
 | 
          -webkit-text-fill-color: transparent; 
 | 
        } 
 | 
      } 
 | 
  
 | 
      .static_wrap { 
 | 
        display: flex; 
 | 
        justify-content: space-between; 
 | 
        align-items: center; 
 | 
        margin: 30px 0 54px; 
 | 
  
 | 
        .item { 
 | 
          display: flex; 
 | 
  
 | 
          img { 
 | 
            width: 68px; 
 | 
            height: 71px; 
 | 
            margin-right: 15px; 
 | 
          } 
 | 
  
 | 
          .content { 
 | 
            font-size: 15px; 
 | 
  
 | 
            .num { 
 | 
              font-size: 12px; 
 | 
              color: #D2E0FF; 
 | 
  
 | 
              span { 
 | 
                font-weight: bold; 
 | 
                font-size: 30px; 
 | 
                margin-right: 5px; 
 | 
                font-weight: 600; 
 | 
                background-image: -webkit-linear-gradient(top, 
 | 
                    #01D9FE 0%, 
 | 
                    #01D9FE 60%, 
 | 
                    #fff 100%); 
 | 
                -webkit-background-clip: text; 
 | 
                -webkit-text-fill-color: transparent; 
 | 
              } 
 | 
  
 | 
              .today { 
 | 
                background-image: -webkit-linear-gradient(top, 
 | 
                    #fff 0%, 
 | 
                    #20FFC5 50%, 
 | 
                    #20FFC5 100%); 
 | 
              } 
 | 
  
 | 
              .finish { 
 | 
                background-image: -webkit-linear-gradient(top, 
 | 
                    #fff 0%, 
 | 
                    #FFB120 50%, 
 | 
                    #FFB120 100%); 
 | 
              } 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  
 | 
    .center_box_two { 
 | 
      flex: 1; 
 | 
      width: 100%; 
 | 
  
 | 
      .echart_map { 
 | 
        width: 100%; 
 | 
        height: 100%; 
 | 
        border: 1px solid; 
 | 
      } 
 | 
    } 
 | 
  } 
 | 
  
 | 
  .right_box { 
 | 
    width: 440px; 
 | 
  
 | 
    .right_box_one { 
 | 
      margin-bottom: 20px; 
 | 
  
 | 
      .static_wrap { 
 | 
        display: flex; 
 | 
        justify-content: space-evenly; 
 | 
        align-items: center; 
 | 
        height: 140px; 
 | 
  
 | 
        .item { 
 | 
          display: flex; 
 | 
          align-items: center; 
 | 
  
 | 
          img { 
 | 
            width: 80px; 
 | 
            height: 80px; 
 | 
            margin-right: 5px; 
 | 
          } 
 | 
  
 | 
          .content { 
 | 
            font-size: 14px; 
 | 
  
 | 
            .num { 
 | 
              font-size: 12px; 
 | 
              color: #D2E0FF; 
 | 
              margin-top: 8px; 
 | 
  
 | 
              span { 
 | 
                font-weight: bold; 
 | 
                font-size: 24px; 
 | 
                margin-right: 4px; 
 | 
                font-weight: 600; 
 | 
                background-image: -webkit-linear-gradient(top, 
 | 
                    #01D9FE 0%, 
 | 
                    #01D9FE 60%, 
 | 
                    #fff 100%); 
 | 
                -webkit-background-clip: text; 
 | 
                -webkit-text-fill-color: transparent; 
 | 
              } 
 | 
  
 | 
              .today { 
 | 
                background-image: -webkit-linear-gradient(top, 
 | 
                    #fff 0%, 
 | 
                    #20FFC5 50%, 
 | 
                    #20FFC5 100%); 
 | 
              } 
 | 
  
 | 
              .finish { 
 | 
                background-image: -webkit-linear-gradient(top, 
 | 
                    #fff 0%, 
 | 
                    #FFB120 50%, 
 | 
                    #FFB120 100%); 
 | 
              } 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  
 | 
    .right_box_two { 
 | 
      .content { 
 | 
        display: flex; 
 | 
        justify-content: center; 
 | 
        align-items: center; 
 | 
        height: 200px; 
 | 
        border: 1px solid; 
 | 
  
 | 
        .echart_wrap { 
 | 
          position: relative; 
 | 
  
 | 
          .pie_text { 
 | 
            width: 104px; 
 | 
            height: 104px; 
 | 
            border: 1px dashed; 
 | 
            border-radius: 50%; 
 | 
            position: absolute; 
 | 
  
 | 
            left: 50%; 
 | 
            top: 50%; 
 | 
            transform: translate(-50%, -50%); 
 | 
            z-index: 999; 
 | 
            display: flex; 
 | 
            flex-direction: column; 
 | 
            justify-content: center; 
 | 
            align-items: center; 
 | 
            font-size: 14px; 
 | 
  
 | 
            .fs30 { 
 | 
              font-size: 30px; 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
  
 | 
        .echart { 
 | 
          width: 140px; 
 | 
          height: 140px; 
 | 
        } 
 | 
  
 | 
        .list { 
 | 
          margin-left: 36px; 
 | 
  
 | 
          .item { 
 | 
            margin-bottom: 14px; 
 | 
            font-size: 14px; 
 | 
  
 | 
            &:nth-last-child(1) { 
 | 
              margin: 0; 
 | 
            } 
 | 
  
 | 
            .line { 
 | 
              display: flex; 
 | 
              align-items: center; 
 | 
              margin-bottom: 6px; 
 | 
  
 | 
              .icon { 
 | 
                width: 12px; 
 | 
                height: 12px; 
 | 
                border-radius: 50%; 
 | 
                margin-right: 10px; 
 | 
                background: linear-gradient(270deg, #29aeff 0%, #207ff7 100%); 
 | 
              } 
 | 
            } 
 | 
  
 | 
            .num { 
 | 
              margin-left: 20px; 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  
 | 
    .right_box_three { 
 | 
      .repertory { 
 | 
        .header { 
 | 
          padding: 15px; 
 | 
          display: flex; 
 | 
          justify-content: space-between; 
 | 
          align-items: center; 
 | 
          font-size: 14px; 
 | 
          color: #D2E0FF; 
 | 
          margin-bottom: 11px; 
 | 
  
 | 
          .num { 
 | 
            font-weight: 500; 
 | 
            font-size: 16px; 
 | 
            color: #FFFFFF; 
 | 
          } 
 | 
        } 
 | 
  
 | 
        .list { 
 | 
          margin-top: 22px; 
 | 
  
 | 
          .item { 
 | 
            width: 100%; 
 | 
            height: 36px; 
 | 
            display: flex; 
 | 
            align-items: center; 
 | 
  
 | 
            &:nth-of-type(2n+1) { 
 | 
              background: rgba(0, 152, 255, 0.13); 
 | 
            } 
 | 
  
 | 
            .la { 
 | 
              flex: 5; 
 | 
              padding-left: 20px; 
 | 
            } 
 | 
  
 | 
            .val { 
 | 
              flex: 2; 
 | 
            } 
 | 
          } 
 | 
        } 
 | 
      } 
 | 
    } 
 | 
  } 
 | 
} 
 | 
  
 | 
.main_header { 
 | 
  display: flex; 
 | 
  justify-content: space-between; 
 | 
  align-items: center; 
 | 
  height: 90px; 
 | 
  position: relative; 
 | 
  padding: 0px 40px 16px; 
 | 
  font-weight: 600; 
 | 
  font-size: 36px; 
 | 
  
 | 
  .title { 
 | 
    background-image: -webkit-linear-gradient(top, 
 | 
        #ffffff 0%, 
 | 
        #c8ddff 70%, 
 | 
        #85b4ff 80%, 
 | 
        #74a9ff 100%); 
 | 
    -webkit-background-clip: text; 
 | 
    -webkit-text-fill-color: transparent; 
 | 
  } 
 | 
  
 | 
  .time_wrap { 
 | 
    font-size: 26px; 
 | 
    font-weight: 600; 
 | 
    background-image: -webkit-linear-gradient(top, 
 | 
        #ffffff 0%, 
 | 
        #c8ddff 50%, 
 | 
        #85b4ff 80%, 
 | 
        #74a9ff 100%); 
 | 
    -webkit-background-clip: text; 
 | 
    -webkit-text-fill-color: transparent; 
 | 
    display: flex; 
 | 
    align-items: center; 
 | 
  
 | 
    .time { 
 | 
      width: 130px; 
 | 
      display: flex; 
 | 
      justify-content: flex-end; 
 | 
      font-size: 30px; 
 | 
    } 
 | 
  
 | 
    .week { 
 | 
      margin-left: 20px; 
 | 
    } 
 | 
  } 
 | 
  
 | 
  .main_header_bg { 
 | 
    position: absolute; 
 | 
    left: 0; 
 | 
    top: 0; 
 | 
    width: 100%; 
 | 
    height: 100%; 
 | 
    object-fit: cover; 
 | 
    z-index: -1; 
 | 
  } 
 | 
} 
 | 
  
 | 
.com_header { 
 | 
  height: 40px; 
 | 
  display: flex; 
 | 
  justify-content: space-between; 
 | 
  align-items: center; 
 | 
  padding: 0 15px 0 13px; 
 | 
  position: relative; 
 | 
  
 | 
  .title { 
 | 
    display: flex; 
 | 
    align-items: center; 
 | 
    font-weight: bold; 
 | 
    font-size: 16px; 
 | 
    background-image: -webkit-linear-gradient(top, 
 | 
        #ffffff 0%, 
 | 
        #c8ddff 66%, 
 | 
        #85b4ff 72%, 
 | 
        #74a9ff 100%); 
 | 
    -webkit-background-clip: text; 
 | 
    -webkit-text-fill-color: transparent; 
 | 
  
 | 
    .icon { 
 | 
      width: 16px; 
 | 
      height: 16px; 
 | 
      margin-right: 14px; 
 | 
    } 
 | 
  } 
 | 
  
 | 
  .tabs { 
 | 
    display: flex; 
 | 
    align-items: center; 
 | 
    font-size: 14px; 
 | 
    color: #d2e0ff; 
 | 
  
 | 
    .separate { 
 | 
      width: 1px; 
 | 
      height: 14px; 
 | 
      background-color: #d2e0ff; 
 | 
      margin: 0 6px; 
 | 
    } 
 | 
  
 | 
    .active { 
 | 
      color: #0094eb; 
 | 
    } 
 | 
  } 
 | 
} 
 | 
  
 | 
.main_app { 
 | 
  width: 1920px; 
 | 
  height: 960px; 
 | 
  /* width: 100%; 
 | 
  height: 100vh; */ 
 | 
  background: #0b2539; 
 | 
  color: #FFFFFF; 
 | 
  position: relative; 
 | 
  z-index: -2; 
 | 
  font-size: 14px; 
 | 
  
 | 
  .main_bg { 
 | 
    position: absolute; 
 | 
    left: 0; 
 | 
    top: 0; 
 | 
    width: 100%; 
 | 
    height: 100%; 
 | 
    object-fit: cover; 
 | 
    z-index: -1; 
 | 
  } 
 | 
} 
 | 
  
 | 
.bg { 
 | 
  position: absolute; 
 | 
  left: 0; 
 | 
  top: 0; 
 | 
  width: 100%; 
 | 
  height: 100%; 
 | 
  object-fit: cover; 
 | 
  z-index: -1; 
 | 
} 
 | 
</style> 
 |