|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
- <el-dialog width="80%" @opened="opened()" @closed="closed()" :show-close="false" class="my-info-dialog">
|
|
|
+ <el-dialog width="80%" @opened="opened()" @closed="closed()" :show-close="false" custom-class="my-info-dialog">
|
|
|
<template #title>
|
|
|
<div style="margin-top: -10px; color: #ffffff">光伏详情</div>
|
|
|
</template>
|
|
|
- <div class="pvDetail">
|
|
|
+ <div class="pvDetail" v-loading="loading">
|
|
|
<div class="pvLeftDetail">
|
|
|
<div class="commonSty titleFont">
|
|
|
<span>光伏板号:</span>
|
|
@@ -93,6 +93,7 @@ export default {
|
|
|
pvTitle: [],
|
|
|
startTimer: null,
|
|
|
echartTimer: null,
|
|
|
+ loading: false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -108,6 +109,7 @@ export default {
|
|
|
methods: {
|
|
|
opened() {
|
|
|
this.getPvStationInfoData()
|
|
|
+ this.loading = true
|
|
|
},
|
|
|
// 获取光伏详情配置
|
|
|
getPvStationInfoData() {
|
|
@@ -277,6 +279,7 @@ export default {
|
|
|
dom.removeAttribute("_echarts_instance_")
|
|
|
let myChart = echarts.init(dom, 'dark');
|
|
|
myChart.setOption(option);
|
|
|
+ this.loading = false
|
|
|
window.addEventListener("resize", function () {
|
|
|
myChart.resize()
|
|
|
})
|
|
@@ -394,11 +397,17 @@ export default {
|
|
|
}
|
|
|
.pvRightBotEchart{
|
|
|
width: 100%;
|
|
|
- height: calc(100% - 70px);
|
|
|
+ // height: calc(100% - 70px);
|
|
|
+ height: 380px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
+</style>
|
|
|
+<style lang="less">
|
|
|
+.my-info-dialog{
|
|
|
+ margin-top: 10vh !important;
|
|
|
+}
|
|
|
</style>
|