fix: 单值折线图,登陆页面图片,检测 =》 事件页面 左侧筛选列表

This commit is contained in:
@changcode
2022-05-10 14:59:18 +08:00
parent 133c024f37
commit 2d89787573
4 changed files with 21 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="logins">
<div class="inside">
<div class="title" style="margin-top:70px">
<div class="title">
<img src="../public/images/cion.png" />
</div>
<el-form class="login__box">
@@ -158,9 +158,13 @@ export default {
}
.title {
/* margin-top: 70px; */
margin-left: 52px;
margin-right: 10px;
margin-top: 70px;
text-align: center;
}
.title > img {
height: 43px;
width: 248px;
}
.login--input{
width: 300px;

View File

@@ -5,6 +5,7 @@
padding: 10px;
margin-right: 10px;
background-color: white;
overflow: auto;
.detection-filter {
display: flex;

View File

@@ -94,7 +94,7 @@
.body__drawing-box {
height: 40px;
position: relative;
margin-top: 10px;
margin-top: 5px;
.chart__loading {
top: 0;
height: 100%;

View File

@@ -259,7 +259,8 @@ export default {
color: '',
type: 0,
chartOption: null,
timer: null
timer: null,
myChart: ''
}
},
watch: {
@@ -372,13 +373,19 @@ export default {
}
}
})
this.myChart = myChart
myChart.setOption(this.chartOption)
}
)
}
},
resize () {
if (this.myChart) this.myChart.resize()
}
},
mounted () {
this.debounceFunc = this.$_.debounce(this.resize, 500)
window.addEventListener('resize', this.debounceFunc)
this.$nextTick(
() =>
(this.timer = setTimeout(() => {
@@ -386,6 +393,9 @@ export default {
}, 200))
)
},
beforeUnmount () {
window.addEventListener('resize', this.debounceFunc)
},
deactivated () {
clearTimeout(this.timer)
}