NEZ-2999 fix: Asset list告警详情无法修改时间,点击无效果

This commit is contained in:
zhangyu
2023-07-18 15:57:59 +08:00
parent 4f0097dc52
commit e1462fd4bc
6 changed files with 25 additions and 4 deletions

View File

@@ -157,7 +157,6 @@
}
.top-tools--sub {
flex-direction: row-reverse;
overflow: hidden;
.top-tool-left {
height: 100%;
width: 0; // 避免计算错误

View File

@@ -165,7 +165,6 @@
.calendar-popover-text:last-of-type {
margin-right: 0;
}
.date-range-panel {
// height: 460px;
width: 500px;
@@ -310,9 +309,26 @@
}
}
}
@media (max-height: 900px) {
.date-range-panel {
.date-range-panel-content-right {
height: 180px;
overflow-y: auto;
}
.date-range-panel-content-left {
height: 180px;
overflow-y: auto;
}
}
}
.date-range-panel--top {
top: -460px;
}
@media (max-height: 900px) {
.date-range-panel--top {
top: -215px;
}
}
.el-date-range-picker.el-picker-panel__body__only,.el-picker-panel__body {
width: 324px;
.el-date-range-picker__header,.el-date-picker__header{

View File

@@ -10,6 +10,7 @@
v-if="item.isLoad"
:meta2dId="'autoTopology' + item.id + (isFullscreen ? 'screen' : '')"
:topoData="item.topoData"
:minScale="0.01"
:isPreview="true"
:querysArray="item.querysArray"
:project="item"

View File

@@ -375,7 +375,8 @@ export default {
}, 600)
}
const subListDom = document.querySelector('.sub-list') // 副列表
if (subListDom.offsetHeight < 505) {
const height = window.innerHeight > 900 ? 505 : 250
if (subListDom.offsetHeight < height) {
this.$store.dispatch('dispatchTimeBoxClass', 'date-range-panel--top')
} else {
this.$store.dispatch('dispatchTimeBoxClass', '')

View File

@@ -80,7 +80,7 @@ export default {
methods: {
init: function () {
const meta2dOptions = {
minScale: 0.25,
minScale: this.minScale,
maxScale: 2,
autoAnchor: false
}

View File

@@ -149,6 +149,10 @@ export default {
type: Boolean,
default: false
},
minScale: {
type: Number,
default: 0.25
},
querysArray: {},
params: {},
project: {},