diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/IpDetails.vue b/nezha-fronted/src/components/common/bottomBox/tabs/IpDetails.vue index 0efff50e2..1f94d3758 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/IpDetails.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/IpDetails.vue @@ -169,6 +169,7 @@ export default { deep: true, handler (n, o) { if (n) { + this.searchLabel = {} this.getTableData() } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue index 02ce4b0c0..34770d29a 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue @@ -696,6 +696,7 @@ export default { immediate: true, deep: true, handler (n) { + this.searchLabel = {} if (this.from === fromRoute.module) { this.searchLabel.moduleIds = n.id } else { diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue index fcba17f82..a9ef56ab6 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTabNew.vue @@ -158,9 +158,11 @@ export default { immediate: true, handler (n) { if (n) { + this.searchLabel = {} if (this.from === fromRoute.alertSilence) { this.state = '2' } + this.searchLabel = {} this.getTableData() } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/assetSubTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/assetSubTab.vue index 3b61a3ed8..84ca1b629 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/assetSubTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/assetSubTab.vue @@ -280,6 +280,7 @@ export default { immediate: true, deep: true, handler (n, o) { + this.searchLabel = {} this.searchLabel.dcIds = n.id if (this.from === fromRoute.model) { delete this.searchLabel.dcIds diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/assetTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/assetTab.vue index 9304b0b1a..5b0c0e54a 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/assetTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/assetTab.vue @@ -284,6 +284,7 @@ export default { immediate: true, deep: true, handler (n, o) { + this.searchLabel = {} this.searchLabel.dcIds = n.id if (this.from === fromRoute.model) { delete this.searchLabel.dcIds diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue index adecef518..e052d13ce 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQuery.vue @@ -93,6 +93,7 @@ export default { obj: { immediate: true, handler (n) { + this.searchLabel = {} this.formatTime = bus.timeFormate(new Date(bus.computeTimezoneTime(new Date()))) } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue index 1588de015..9ea2d97fd 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue @@ -705,6 +705,7 @@ export default { deep: true, handler (n) { if (n) { + this.searchLabel = {} this.currentEndpoint = JSON.parse(JSON.stringify(n)) this.queryEndpoint() } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue index b8869990e..26c93cc7d 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue @@ -515,6 +515,7 @@ export default { deep: true, handler (n) { if (n) { + this.searchLabel = {} if (this.from === fromRoute.asset) { this.asset = JSON.parse(JSON.stringify(n)) this.$nextTick(() => { diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue index 010381d6f..86f9a0f77 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTabNew.vue @@ -75,6 +75,7 @@ export default { immediate: true, handler (n) { if (n) { + this.searchLabel = {} this.getTableData() } } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index 537a398b6..b32c59c08 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -808,6 +808,7 @@ export default { handler (n, o) { setTimeout(() => { if (n && n.id) { + this.searchLabel = {} this.getTableData(n.id) if (this.from === fromRoute.asset) { this.searchLabel.assetIds = n.id diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/scrapeEndpoint.vue b/nezha-fronted/src/components/common/bottomBox/tabs/scrapeEndpoint.vue index 8dc5acf4f..60ffee219 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/scrapeEndpoint.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/scrapeEndpoint.vue @@ -88,6 +88,7 @@ export default { deep: true, handler (n, o) { if (n) { + this.searchLabel = {} this.inputDateSearch = '' this.getTableData() } diff --git a/nezha-fronted/static/config.json b/nezha-fronted/static/config.json index be40afdc1..3151969db 100644 --- a/nezha-fronted/static/config.json +++ b/nezha-fronted/static/config.json @@ -1,2 +1 @@ -{"baseUrl":"/", "version": "22.05"} - +{"baseUrl":"http://192.168.40.42:8080/", "version": "22.05"}