fix: 单值折线图,登陆页面图片,检测 =》 事件页面 左侧筛选列表
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="logins">
|
<div class="logins">
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<div class="title" style="margin-top:70px">
|
<div class="title">
|
||||||
<img src="../public/images/cion.png" />
|
<img src="../public/images/cion.png" />
|
||||||
</div>
|
</div>
|
||||||
<el-form class="login__box">
|
<el-form class="login__box">
|
||||||
@@ -158,9 +158,13 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
/* margin-top: 70px; */
|
margin-top: 70px;
|
||||||
margin-left: 52px;
|
text-align: center;
|
||||||
margin-right: 10px;
|
|
||||||
|
}
|
||||||
|
.title > img {
|
||||||
|
height: 43px;
|
||||||
|
width: 248px;
|
||||||
}
|
}
|
||||||
.login--input{
|
.login--input{
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
.detection-filter {
|
.detection-filter {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
.body__drawing-box {
|
.body__drawing-box {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 10px;
|
margin-top: 5px;
|
||||||
.chart__loading {
|
.chart__loading {
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -259,7 +259,8 @@ export default {
|
|||||||
color: '',
|
color: '',
|
||||||
type: 0,
|
type: 0,
|
||||||
chartOption: null,
|
chartOption: null,
|
||||||
timer: null
|
timer: null,
|
||||||
|
myChart: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -372,13 +373,19 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.myChart = myChart
|
||||||
myChart.setOption(this.chartOption)
|
myChart.setOption(this.chartOption)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
resize () {
|
||||||
|
if (this.myChart) this.myChart.resize()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.debounceFunc = this.$_.debounce(this.resize, 500)
|
||||||
|
window.addEventListener('resize', this.debounceFunc)
|
||||||
this.$nextTick(
|
this.$nextTick(
|
||||||
() =>
|
() =>
|
||||||
(this.timer = setTimeout(() => {
|
(this.timer = setTimeout(() => {
|
||||||
@@ -386,6 +393,9 @@ export default {
|
|||||||
}, 200))
|
}, 200))
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
beforeUnmount () {
|
||||||
|
window.addEventListener('resize', this.debounceFunc)
|
||||||
|
},
|
||||||
deactivated () {
|
deactivated () {
|
||||||
clearTimeout(this.timer)
|
clearTimeout(this.timer)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user