NEZ-2781 fix:Alert Message 二级列表 查询时间不会动态变化

This commit is contained in:
zhangyu
2023-04-18 15:15:48 +08:00
parent 96ecc2efe8
commit 43f1e3544a
4 changed files with 16 additions and 6 deletions

View File

@@ -590,6 +590,10 @@ export default {
} else {
this.isPopoverDisabled = false
}
},
refresh () {
this.setSearchTime(this.nowTimeType.type, this.nowTimeType.value, this.searchTime)
this.$emit('change', this.searchTime)
}
},
watch: {
@@ -601,6 +605,7 @@ export default {
if (showTime) {
this.showTime = Object.assign({}, showTime)
this.searchTime = this.$parent.searchTime
this.nowTimeType = this.showTime
}
if (this.showEmpty && this.defaultPick === 12) {
this.searchTime = []