From 457370b743a89e890a8b0b5c5f4536832f19d7ad Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 29 Oct 2021 14:53:38 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1128=20fix:=20Alert=20message-=E6=8A=A5?= =?UTF-8?q?=E8=AD=A6=E4=BF=A1=E6=81=AF=E6=9F=A5=E7=9C=8B=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BBCustom=20time=20range=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=BC=B9=E5=87=BA=E9=80=89=E6=8B=A9=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=8E=A7=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/timePicker.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nezha-fronted/src/components/common/timePicker.vue b/nezha-fronted/src/components/common/timePicker.vue index 27feadcc1..e93a9ab2d 100644 --- a/nezha-fronted/src/components/common/timePicker.vue +++ b/nezha-fronted/src/components/common/timePicker.vue @@ -336,6 +336,19 @@ export default { this.isCustom = true this.$refs.calendar.focus() this.$refs.calendar.pickerVisible = true + if (document.getElementById('viewGraphDialog')) { // 处理 多弹出的z-index的问题 当前为 alertMessage的处理 + const viewGraphDialogStyle = window.getComputedStyle(document.getElementById('viewGraphDialog', null)) + console.log(viewGraphDialogStyle['z-index']) + setTimeout(() => { + if (viewGraphDialogStyle['z-index'] !== 'auto') { + const dom = document.getElementsByClassName('el-picker-panel') + Array.prototype.forEach.call(dom, function (element) { + element.style['z-index'] = viewGraphDialogStyle['z-index'] + 1 + }) + this.$refs.calendar.$el.style['z-index'] = viewGraphDialogStyle['z-index'] + 1 + } + }) + } } } else { this.isCustom = false