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 { .top-tools--sub {
flex-direction: row-reverse; flex-direction: row-reverse;
overflow: hidden;
.top-tool-left { .top-tool-left {
height: 100%; height: 100%;
width: 0; // 避免计算错误 width: 0; // 避免计算错误

View File

@@ -165,7 +165,6 @@
.calendar-popover-text:last-of-type { .calendar-popover-text:last-of-type {
margin-right: 0; margin-right: 0;
} }
.date-range-panel { .date-range-panel {
// height: 460px; // height: 460px;
width: 500px; 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 { .date-range-panel--top {
top: -460px; 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 { .el-date-range-picker.el-picker-panel__body__only,.el-picker-panel__body {
width: 324px; width: 324px;
.el-date-range-picker__header,.el-date-picker__header{ .el-date-range-picker__header,.el-date-picker__header{

View File

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

View File

@@ -375,7 +375,8 @@ export default {
}, 600) }, 600)
} }
const subListDom = document.querySelector('.sub-list') // 副列表 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') this.$store.dispatch('dispatchTimeBoxClass', 'date-range-panel--top')
} else { } else {
this.$store.dispatch('dispatchTimeBoxClass', '') this.$store.dispatch('dispatchTimeBoxClass', '')

View File

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

View File

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