修复遮罩未自动释放的问题

This commit is contained in:
Leo
2026-01-17 18:43:58 +08:00
parent ff3537ca35
commit ad58ef9c33

View File

@@ -1,13 +1,16 @@
<template> <template>
<el-dialog <el-dialog
title="腾讯文档推送监控" title="腾讯文档推送监控"
:visible.sync="visible" :visible="visible"
@update:visible="handleVisibleChange"
:width="isMobile ? '100%' : '1200px'" :width="isMobile ? '100%' : '1200px'"
:close-on-click-modal="false" :close-on-click-modal="false"
@close="handleClose" @close="handleClose"
:top="isMobile ? '0' : '5vh'" :top="isMobile ? '0' : '5vh'"
:fullscreen="isMobile" :fullscreen="isMobile"
:custom-class="isMobile ? 'mobile-push-monitor-dialog' : ''" :custom-class="isMobile ? 'mobile-push-monitor-dialog' : ''"
:modal-append-to-body="true"
:append-to-body="true"
> >
<div class="push-monitor"> <div class="push-monitor">
<!-- 倒计时和状态卡片 --> <!-- 倒计时和状态卡片 -->
@@ -250,15 +253,14 @@ export default {
}, },
watch: { watch: {
value(val) { value(val) {
this.visible = val if (this.visible !== val) {
if (val) { this.visible = val
this.init() if (val) {
} else { this.init()
this.destroy() } else {
this.destroy()
}
} }
},
visible(val) {
this.$emit('input', val)
} }
}, },
methods: { methods: {
@@ -566,6 +568,15 @@ export default {
handleClose() { handleClose() {
this.visible = false this.visible = false
this.expandedRecords = [] this.expandedRecords = []
this.$emit('input', false)
},
handleVisibleChange(val) {
this.visible = val
this.$emit('input', val)
if (!val) {
this.expandedRecords = []
}
} }
}, },
beforeDestroy() { beforeDestroy() {