|
|
@@ -235,7 +235,10 @@
|
|
|
</div>
|
|
|
<!-- 风电场/光电站列表 height="calc(100% - 72px)"-->
|
|
|
<el-scrollbar height="95%">
|
|
|
- <div class="matrix-box" :style="isFullScreen ? 'height: 90vh' : 'height: 94vh'">
|
|
|
+ <div
|
|
|
+ class="matrix-box"
|
|
|
+ :style="isFullScreen ? 'height: 90vh' : 'height: 94vh'"
|
|
|
+ >
|
|
|
<!-- 单个风场/电站 -->
|
|
|
<div
|
|
|
class="matrixs"
|
|
|
@@ -318,7 +321,10 @@
|
|
|
class="c"
|
|
|
@click="handleLeftClick(val, value.czlx, value.wpid)"
|
|
|
>
|
|
|
- <img src="@assets/images/ugly.gif" v-if="val.status === 0 || val.status === 1" />
|
|
|
+ <img
|
|
|
+ src="@assets/images/ugly.gif"
|
|
|
+ v-if="val.status === 0 || val.status === 1"
|
|
|
+ />
|
|
|
<img src="@assets/images/ugly.png" v-else />
|
|
|
</div>
|
|
|
<div class="r" :class="stateMap[val.status]">
|
|
|
@@ -671,7 +677,7 @@ export default {
|
|
|
// 数据
|
|
|
data() {
|
|
|
return {
|
|
|
- isFullScreen: false,
|
|
|
+ isFullScreen: false,
|
|
|
switchtToUglyMode: 1,
|
|
|
loading: false,
|
|
|
warnDialog: false,
|
|
|
@@ -1187,16 +1193,16 @@ export default {
|
|
|
|
|
|
mounted() {
|
|
|
const clientHeight =
|
|
|
- document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
+ document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
if (clientHeight === 1080) {
|
|
|
- this.isFullScreen = true;
|
|
|
+ this.isFullScreen = true;
|
|
|
} else {
|
|
|
- this.isFullScreen = false;
|
|
|
+ this.isFullScreen = false;
|
|
|
}
|
|
|
window.onresize = () => {
|
|
|
- const clientHeight =
|
|
|
+ const clientHeight =
|
|
|
document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
- this.isFullScreen = window.screen.height == clientHeight;
|
|
|
+ this.isFullScreen = window.screen.height == clientHeight;
|
|
|
};
|
|
|
// this.changeData(true, dataJson.data);
|
|
|
this.requestData(true);
|
|
|
@@ -1471,7 +1477,7 @@ export default {
|
|
|
flex-direction: column;
|
|
|
|
|
|
.matrix-body {
|
|
|
- margin-top: 20px;
|
|
|
+ margin-top: 20px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
height: 100%;
|