From cd7e043efffc3406574610022f6cb7ab1ce886ed Mon Sep 17 00:00:00 2001 From: zhangyu Date: Fri, 24 Dec 2021 15:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=84=E7=90=86endpoint=E7=9A=84?= =?UTF-8?q?=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/page/monitor/endpoint/endpointList.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue b/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue index c0d8d680d..7764a486c 100644 --- a/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue +++ b/nezha-fronted/src/components/page/monitor/endpoint/endpointList.vue @@ -233,6 +233,7 @@ import detailViewMixin from '@/components/common/mixin/detailViewMixin' import endpointDetail from '@/components/common/detailView/list/endpoint/endpointDetail' import detailViewTopSearch from '@/components/common/detailView/detailViewTopSearch' import routerPathParams from '@/components/common/mixin/routerPathParams' +import lodash from 'lodash' export default { name: 'endpointList', @@ -605,7 +606,11 @@ export default { ...this.searchCheckBox } const path = this.fromRoute.endpoint - this.updatePath(param, path) + const pathParam = lodash.cloneDeep(param) + pathParam.state = this.selectValue.state + delete pathParam.metricsStates + delete pathParam.logsStates + this.updatePath({ ...pathParam }, path) this.$get(this.url, params).then(response => { this.tools.loading = false if (response.code === 200) { @@ -828,8 +833,7 @@ export default { }, projectIds: { target: this.searchCheckBox, propertyName: 'projectIds', type: 'string', target2: this.selectValue, type2: 'array' }, moduleIds: { target: this.searchCheckBox, propertyName: 'moduleIds', type: 'string', target2: this.selectValue, type2: 'array' }, - logsStates: { target: this.searchCheckBox, propertyName: 'logsStates', type: 'string', target2: this.selectValue, type2: 'array' }, - metricsStates: { target: this.searchCheckBox, propertyName: 'metricsStates', type: 'string', target2: this.selectValue, type2: 'array' } + state: { target: this.searchCheckBox, propertyName: 'state', type: 'string', target2: this.selectValue, type2: 'json' } } this.initQueryFromPath(searchKeys) },