增加分布式光伏接口及大屏页面调整优化
This commit is contained in:
parent
7187beb3f6
commit
dfb56f17d8
|
@ -18,9 +18,17 @@
|
||||||
<div class="two" style="height: 49%">
|
<div class="two" style="height: 49%">
|
||||||
<div class="cartitle">
|
<div class="cartitle">
|
||||||
<div class="titleFont">
|
<div class="titleFont">
|
||||||
<img src="./../assets/indexN/btjt.png" alt="" />
|
<img
|
||||||
|
src="./../assets/indexN/btjt.png"
|
||||||
|
alt=""
|
||||||
|
style="margin-left: 10%"
|
||||||
|
/>
|
||||||
<span>排涝泵用电时长分析</span>
|
<span>排涝泵用电时长分析</span>
|
||||||
<img src="./../assets/indexN/btjt1.png" alt="" />
|
<img src="./../assets/indexN/btjt1.png" alt="" />
|
||||||
|
<span
|
||||||
|
style="display: inline-block; float: right; padding-right: 25px"
|
||||||
|
>···</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -34,9 +42,17 @@
|
||||||
<div class="two" style="height: 49%">
|
<div class="two" style="height: 49%">
|
||||||
<div class="cartitle">
|
<div class="cartitle">
|
||||||
<div class="titleFont">
|
<div class="titleFont">
|
||||||
<img src="./../assets/indexN/btjt.png" alt="" />
|
<img
|
||||||
|
src="./../assets/indexN/btjt.png"
|
||||||
|
alt=""
|
||||||
|
style="margin-left: 10%"
|
||||||
|
/>
|
||||||
<span>建湖公司近两年汛情指数分析</span>
|
<span>建湖公司近两年汛情指数分析</span>
|
||||||
<img src="./../assets/indexN/btjt1.png" alt="" />
|
<img src="./../assets/indexN/btjt1.png" alt="" />
|
||||||
|
<span
|
||||||
|
style="display: inline-block; float: right; padding-right: 25px"
|
||||||
|
>···</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -48,9 +64,17 @@
|
||||||
<div class="two" style="height: 49%">
|
<div class="two" style="height: 49%">
|
||||||
<div class="cartitle">
|
<div class="cartitle">
|
||||||
<div class="titleFont">
|
<div class="titleFont">
|
||||||
<img src="./../assets/indexN/btjt.png" alt="" />
|
<img
|
||||||
|
src="./../assets/indexN/btjt.png"
|
||||||
|
alt=""
|
||||||
|
style="margin-left: 10%"
|
||||||
|
/>
|
||||||
<span>用户电量详细分析</span>
|
<span>用户电量详细分析</span>
|
||||||
<img src="./../assets/indexN/btjt1.png" alt="" />
|
<img src="./../assets/indexN/btjt1.png" alt="" />
|
||||||
|
<span
|
||||||
|
style="display: inline-block; float: right; padding-right: 25px"
|
||||||
|
>···</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -210,7 +234,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<audio
|
<audio
|
||||||
controls="controls"
|
controls="controls"
|
||||||
hidden
|
hidden
|
||||||
|
|
|
@ -387,7 +387,7 @@
|
||||||
<span>服务访问次数</span>
|
<span>服务访问次数</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="orange"
|
<span class="orange"
|
||||||
> 0 <span style="color: #fff">次</span></span
|
>0<span style="color: #fff">次</span></span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="num" style="margin-top: 5%">
|
<div class="num" style="margin-top: 5%">
|
||||||
|
@ -501,7 +501,12 @@
|
||||||
>2022年度总碳排放量</span
|
>2022年度总碳排放量</span
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
style="font-size: 40px; font-weight: 600; margin-left: 30px"
|
style="
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-left: 30px;
|
||||||
|
height: 80px;
|
||||||
|
"
|
||||||
class="numText"
|
class="numText"
|
||||||
:text="CompanyInfo.ztpf"
|
:text="CompanyInfo.ztpf"
|
||||||
id="yellow"
|
id="yellow"
|
||||||
|
@ -518,7 +523,12 @@
|
||||||
>2022年度总用电量</span
|
>2022年度总用电量</span
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
style="font-size: 40px; font-weight: 600; margin-left: 30px"
|
style="
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-left: 30px;
|
||||||
|
height: 80px;
|
||||||
|
"
|
||||||
class="numText"
|
class="numText"
|
||||||
id="orange"
|
id="orange"
|
||||||
:text="CompanyInfo.zydl"
|
:text="CompanyInfo.zydl"
|
||||||
|
@ -535,7 +545,12 @@
|
||||||
>2022年度客户总数</span
|
>2022年度客户总数</span
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
style="font-size: 40px; font-weight: 600; margin-left: 30px"
|
style="
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-left: 30px;
|
||||||
|
height: 80px;
|
||||||
|
"
|
||||||
class="numText"
|
class="numText"
|
||||||
id="yellow"
|
id="yellow"
|
||||||
:text="CompanyInfo.khzs"
|
:text="CompanyInfo.khzs"
|
||||||
|
@ -1691,6 +1706,7 @@ export default {
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: fontColor,
|
color: fontColor,
|
||||||
|
fontSize: 18, // 文字大小
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
show: true,
|
show: true,
|
||||||
|
@ -1742,6 +1758,7 @@ export default {
|
||||||
formatter: "{value}",
|
formatter: "{value}",
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "#2ad1d2",
|
color: "#2ad1d2",
|
||||||
|
fontSize: 18, // 文字大小
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
|
@ -1790,6 +1807,7 @@ export default {
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: fontColor,
|
color: fontColor,
|
||||||
|
fontSize: 18,
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
show: true,
|
show: true,
|
||||||
|
@ -1840,12 +1858,13 @@ export default {
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: "{value}",
|
formatter: "{value}",
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "#2ad1d2",
|
color: fontColor,
|
||||||
|
fontSize: 18,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: "#27b4c2",
|
color: fontColor,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
axisTick: {
|
axisTick: {
|
||||||
|
@ -1997,6 +2016,7 @@ export default {
|
||||||
type: "bar",
|
type: "bar",
|
||||||
stack: "zongliang",
|
stack: "zongliang",
|
||||||
barWidth: "25%",
|
barWidth: "25%",
|
||||||
|
barMinHeight: 20,
|
||||||
barGap: 15, // 柱图之间的间距
|
barGap: 15, // 柱图之间的间距
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
//自定义颜色
|
//自定义颜色
|
||||||
|
@ -3450,7 +3470,7 @@ export default {
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
// height: calc(100% - 52px);
|
// height: calc(100% - 52px);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 200px);
|
height: calc(100% - 170px);
|
||||||
}
|
}
|
||||||
|
|
||||||
#horizontalChart {
|
#horizontalChart {
|
||||||
|
|
|
@ -410,7 +410,7 @@ export default {
|
||||||
this.detailedTwo11();
|
this.detailedTwo11();
|
||||||
this.detailedTwo22();
|
this.detailedTwo22();
|
||||||
this.detailedTwo33();
|
this.detailedTwo33();
|
||||||
window.parent.getLoc();
|
window.parent.getLoc();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//地图画线
|
//地图画线
|
||||||
|
@ -453,6 +453,13 @@ export default {
|
||||||
},
|
},
|
||||||
data: ["电量KWh"],
|
data: ["电量KWh"],
|
||||||
},
|
},
|
||||||
|
grid: {
|
||||||
|
left: "3%",
|
||||||
|
right: "5%",
|
||||||
|
bottom: "3%",
|
||||||
|
top: "15%",
|
||||||
|
containLabel: true,
|
||||||
|
},
|
||||||
xAxis: [
|
xAxis: [
|
||||||
{
|
{
|
||||||
type: "category",
|
type: "category",
|
||||||
|
@ -469,7 +476,7 @@ export default {
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
fontSize: "18",
|
fontSize: 20,
|
||||||
interval: 0, //使x轴文字显示全
|
interval: 0, //使x轴文字显示全
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -486,6 +493,10 @@ export default {
|
||||||
width: 1,
|
width: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
axisLabel: {
|
||||||
|
color: "#fff",
|
||||||
|
fontSize: 20,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
|
@ -1256,12 +1267,11 @@ export default {
|
||||||
height: 25%;
|
height: 25%;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 45%;
|
top: 45%;
|
||||||
left: 40%;
|
left: 43%;
|
||||||
.contents {
|
.contents {
|
||||||
// height: 90%;
|
// height: 90%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
height: 100%;
|
|
||||||
width: 32%;
|
width: 32%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
|
@ -218,6 +218,7 @@
|
||||||
<script>
|
<script>
|
||||||
//引入echarts
|
//引入echarts
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
|
import { loadRateTop5 } from "./../api/stationBuilding.js";
|
||||||
// 工单统计弹窗组件
|
// 工单统计弹窗组件
|
||||||
// import workOrder from "../component/workOrder.vue";
|
// import workOrder from "../component/workOrder.vue";
|
||||||
// import ringMainUnit from "./HomePop/ringMainUnit.vue";
|
// import ringMainUnit from "./HomePop/ringMainUnit.vue";
|
||||||
|
@ -478,6 +479,7 @@ export default {
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.init();
|
||||||
this.detailedTwo11();
|
this.detailedTwo11();
|
||||||
this.detailedTwo22();
|
this.detailedTwo22();
|
||||||
this.detailqe1();
|
this.detailqe1();
|
||||||
|
@ -486,6 +488,35 @@ export default {
|
||||||
window.parent.getLoc();
|
window.parent.getLoc();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
init() {
|
||||||
|
loadRateTop5({
|
||||||
|
area: "大丰区供电公司",
|
||||||
|
date: "2023-7-24",
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(res, "配变");
|
||||||
|
for (let i = 0; i < res.data.data.length; i++) {
|
||||||
|
if (res.data.data[i].gz_time_deal) {
|
||||||
|
let date = new Date(res.data.data[i].gz_time_deal);
|
||||||
|
res.data.data[i].gz_time_deal =
|
||||||
|
this.$moment(date).format("YYYY-MM-DD HH:mm");
|
||||||
|
// console.log(res.data.data[i].gz_time_deal,'转换后');
|
||||||
|
}
|
||||||
|
if (res.data.data[i].gz_time) {
|
||||||
|
let time = new Date(res.data.data[i].gz_time);
|
||||||
|
res.data.data[i].gz_time =
|
||||||
|
this.$moment(time).format("YYYY-MM-DD HH:mm");
|
||||||
|
}
|
||||||
|
this.tableData.push(res.data.data[i]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
let id = this.$route.query.area;
|
||||||
|
let date = this.$route.query.area;
|
||||||
|
console.log(id, date);
|
||||||
|
console.log(error, "报错详情");
|
||||||
|
});
|
||||||
|
},
|
||||||
//地图画线
|
//地图画线
|
||||||
xianDuan() {
|
xianDuan() {
|
||||||
var canvas = document.getElementById("myCanvas");
|
var canvas = document.getElementById("myCanvas");
|
||||||
|
|
|
@ -720,7 +720,7 @@ export default {
|
||||||
top: "middle",
|
top: "middle",
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: "white",
|
color: "white",
|
||||||
fontSize: 16,
|
fontSize: 18,
|
||||||
},
|
},
|
||||||
height: 250,
|
height: 250,
|
||||||
//格式化图例文本
|
//格式化图例文本
|
||||||
|
@ -759,7 +759,7 @@ export default {
|
||||||
normal: {
|
normal: {
|
||||||
show: true,
|
show: true,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontSize: 18,
|
fontSize: 20,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
emphasis: {
|
emphasis: {
|
||||||
|
|
Loading…
Reference in New Issue