|
@@ -2,17 +2,48 @@
|
|
|
<section class="mainbox">
|
|
|
<!-- topBox start -->
|
|
|
<div class="topBox">
|
|
|
- <div class="column statisSec" style="position:relative;z-index:1">
|
|
|
+ <div class="column statisSec" style="position: relative; z-index: 1">
|
|
|
<statis-top
|
|
|
:falarmCount="alarmCount"
|
|
|
:fpersonalCount="personalCount"
|
|
|
:fsiteCount="siteCount"
|
|
|
:fepLoad="epLoad"
|
|
|
></statis-top>
|
|
|
- <statis-bottom :fhtAnalogData="htAnalogData"></statis-bottom>
|
|
|
+ <!-- <statis-bottom :fhtAnalogData="htAnalogData"></statis-bottom> -->
|
|
|
+
|
|
|
+ <div class="panel statisBottom">
|
|
|
+ <h2>站点用电量</h2>
|
|
|
+ <div class="htAnalogData-box">
|
|
|
+ <div>
|
|
|
+ <statis-bottom-chart
|
|
|
+ :frtAnalogData="htAnalogData"
|
|
|
+ v-if="this.htAnalogData.dayCount"
|
|
|
+ ></statis-bottom-chart>
|
|
|
+ </div>
|
|
|
+ <div class="htAnalogData-right">
|
|
|
+ <p>
|
|
|
+ 日用电量
|
|
|
+ <span class="num text-dBlue">{{ htAnalogData.dayCount }}</span
|
|
|
+ >kW
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 月用电量
|
|
|
+ <span class="num text-red">{{ htAnalogData.monthCount }}</span
|
|
|
+ >kW
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ 年用电量
|
|
|
+ <span class="num text-blue">{{ htAnalogData.yearCount }}</span
|
|
|
+ >kW
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="panel-footer"></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="column mapBox" style="position:relative;">
|
|
|
- <map-static-top :fsiteCount="siteCount"></map-static-top>
|
|
|
+ <div class="column mapBox" style="position: relative">
|
|
|
+ <map-static-top :fsiteCount="siteCount"></map-static-top>
|
|
|
<!-- <div id="pickerBox">
|
|
|
<input
|
|
|
id="pickerInput"
|
|
@@ -26,7 +57,7 @@
|
|
|
></i>
|
|
|
<div id="poiInfo"></div>
|
|
|
</div> -->
|
|
|
- <div class="panel-footer"></div>
|
|
|
+ <div class="panel-footer"></div>
|
|
|
<!-- <div
|
|
|
class="map panel"
|
|
|
id="mapF"
|
|
@@ -36,15 +67,20 @@
|
|
|
<div
|
|
|
class="map"
|
|
|
id="mapF"
|
|
|
- style="height: 100%; z-index: 0; position:fixed;top:0;left:0;width:100%"
|
|
|
+ style="
|
|
|
+ height: 100%;
|
|
|
+ z-index: 0;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ "
|
|
|
></div>
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
<div class="column">
|
|
|
<div class="panel deviceSum">
|
|
|
<h2>设备运行状态</h2>
|
|
|
- <div class="filterSec" >
|
|
|
+ <div class="filterSec">
|
|
|
<el-date-picker
|
|
|
v-model="dDefaultTime"
|
|
|
type="datetimerange"
|
|
@@ -115,15 +151,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- bottomBox end -->
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</section>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import statisTop from "./components/statisTop";
|
|
|
-import statisBottom from "./components/statisBottom";
|
|
|
+// import statisBottom from "./components/statisBottom";
|
|
|
+import statisBottomChart from "./components/statisBottomChart";
|
|
|
import pieChart from "./components/pieChart";
|
|
|
import barChart from "./components/barChart";
|
|
|
import lineChart from "./components/lineChart";
|
|
@@ -145,7 +179,8 @@ export default {
|
|
|
name: "index",
|
|
|
components: {
|
|
|
statisTop,
|
|
|
- statisBottom,
|
|
|
+ // statisBottom,
|
|
|
+ statisBottomChart,
|
|
|
pieChart,
|
|
|
barChart,
|
|
|
lineChart,
|
|
@@ -223,8 +258,6 @@ export default {
|
|
|
this.htAnalogData_api();
|
|
|
// this.eptrendIco_api();
|
|
|
this.eptrendIcoMonth_api();
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
// searchSite(){
|
|
@@ -306,6 +339,8 @@ export default {
|
|
|
htAnalogData_api() {
|
|
|
api.htAnalogData_api().then((requset) => {
|
|
|
this.htAnalogData = requset.data;
|
|
|
+ console.log("父组件中this.htAnalogData");
|
|
|
+ console.log(this.htAnalogData);
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -333,7 +368,7 @@ export default {
|
|
|
|
|
|
async initMap() {
|
|
|
this.map = await new AMap.Map("mapF", {
|
|
|
- mapStyle: "amap://styles/blue", //设置地图的显示样式
|
|
|
+ mapStyle: "amap://styles/659dc6c4753dc6e87c65c8a874c02133", //设置地图的显示样式
|
|
|
resizeEnable: true,
|
|
|
zoom: 13,
|
|
|
zooms: [3, 16],
|
|
@@ -392,6 +427,8 @@ export default {
|
|
|
addMarker(lnglats) {
|
|
|
// 创建标点和点击事件
|
|
|
let markers = lnglats.map((val, ind) => {
|
|
|
+ // console.log("val");
|
|
|
+ // console.log(val);
|
|
|
let marker = new AMap.Marker({
|
|
|
position: new AMap.LngLat(val.longitude, val.latitude),
|
|
|
icon: markIconPath,
|
|
@@ -514,7 +551,7 @@ export default {
|
|
|
//加载行政区划插件
|
|
|
if (!this.district) {
|
|
|
//实例化DistrictSearch
|
|
|
- var that=this
|
|
|
+ var that = this;
|
|
|
AMap.plugin("AMap.DistrictSearch", function () {
|
|
|
that.district = new AMap.DistrictSearch({
|
|
|
subdistrict: 0, //获取边界不需要返回下级行政区
|
|
@@ -532,8 +569,8 @@ export default {
|
|
|
//生成行政区划polygon
|
|
|
var polygon = new AMap.Polygon({
|
|
|
strokeWeight: 1,
|
|
|
- path: bounds[i],
|
|
|
- fillOpacity:.2,
|
|
|
+ path: bounds[i],
|
|
|
+ fillOpacity: 0.2,
|
|
|
fillColor: "pink",
|
|
|
strokeColor: "pink",
|
|
|
});
|
|
@@ -592,6 +629,6 @@ export default {
|
|
|
}
|
|
|
// 自定义图标调整大小
|
|
|
.amap-icon img {
|
|
|
- width: 25px;
|
|
|
+ width: 35px;
|
|
|
}
|
|
|
</style>
|