fix: 单值折线图,登陆页面图片,检测 =》 事件页面 左侧筛选列表
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
padding: 10px;
|
||||
margin-right: 10px;
|
||||
background-color: white;
|
||||
overflow: auto;
|
||||
|
||||
.detection-filter {
|
||||
display: flex;
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
.body__drawing-box {
|
||||
height: 40px;
|
||||
position: relative;
|
||||
margin-top: 10px;
|
||||
margin-top: 5px;
|
||||
.chart__loading {
|
||||
top: 0;
|
||||
height: 100%;
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user