修复遮罩未自动释放的问题
This commit is contained in:
@@ -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) {
|
||||||
|
if (this.visible !== val) {
|
||||||
this.visible = val
|
this.visible = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.init()
|
this.init()
|
||||||
} else {
|
} else {
|
||||||
this.destroy()
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user