diff --git a/nezha-fronted/src/components/chart/chart/chartAutotopology.vue b/nezha-fronted/src/components/chart/chart/chartAutotopology.vue index 70938bf3c..8c58fabfa 100644 --- a/nezha-fronted/src/components/chart/chart/chartAutotopology.vue +++ b/nezha-fronted/src/components/chart/chart/chartAutotopology.vue @@ -135,7 +135,7 @@ export default { }, resize () { this.allProject.forEach((item, index) => { - this.$refs['topology' + index][0] && this.$refs['topology' + index][0].topoResize() + this.$refs['topology' + index] && this.$refs['topology' + index][0] && this.$refs['topology' + index][0].topoResize('autoTopology' + item.id + (this.isFullscreen ? 'screen' : '')) }) } }, diff --git a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue index 5375b3f05..1feb8df55 100644 --- a/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue +++ b/nezha-fronted/src/components/chart/chart/chartTimeSeries.vue @@ -684,7 +684,7 @@ export default { }, chartClick (params) { // 先取消多表联动 防止其它图表setOption - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.disconnect('timeSeriesGroup') } getChart(this.chartId).dispatchAction({ @@ -742,7 +742,7 @@ export default { this.toolbox.clickIndex = params.seriesIndex const e = params.event.event this.toolboxPosition(e) - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.connect('timeSeriesGroup') } }, @@ -752,7 +752,7 @@ export default { } }, showSelectedSeries () { - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.disconnect('timeSeriesGroup') } this.legends.forEach((item, index) => { @@ -782,13 +782,13 @@ export default { ] }) - if (this.isConnect !== 'none') { - echarts.disconnect('timeSeriesGroup') + if (this.isConnect && this.isConnect !== 'none') { + echarts.connect('timeSeriesGroup') } this.clickout() }, showAllSeries () { - if (this.isConnect !== 'none') { + if (this.isConnect && this.isConnect !== 'none') { echarts.disconnect('timeSeriesGroup') } getChart(this.chartId).dispatchAction({ @@ -808,8 +808,8 @@ export default { ] }) - if (this.isConnect !== 'none') { - echarts.disconnect('timeSeriesGroup') + if (this.isConnect && this.isConnect !== 'none') { + echarts.connect('timeSeriesGroup') } this.clickout() } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/cortexDetail.vue b/nezha-fronted/src/components/common/bottomBox/tabs/cortexDetail.vue index cd109ff48..4c7b7675a 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/cortexDetail.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/cortexDetail.vue @@ -54,8 +54,10 @@ export default { async handler (n) { this.loading = true this.getReadyTableData().then(res => { + this.ringTableData = [] this.getTableData() }).catch(res => { + this.ringTableData = [] this.ringTableData.push([]) this.$refs.loading.endLoading() this.loading = false @@ -80,6 +82,7 @@ export default { }, methods: { async getTableData () { + this.servicesTableData = [] await this.getCompactorTableData() await this.getservicesTableData() await this.getIngesterTableData() diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/licenseManagementTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/licenseManagementTab.vue index 0c0fc399b..96b7ce1f7 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/licenseManagementTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/licenseManagementTab.vue @@ -206,7 +206,7 @@ export default { form.append('saId', this.obj.id) const res = await this.$post('/license/uploadV2C', form, { 'Content-Type': 'multipart/form-data' }) if (res.code === 200) { - this.$message.success() + this.$message.success(this.$t('tip.uploadSuccess')) } else { this.$message.error(res.msg) } diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue index 1fd1c6118..cb5afe849 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue @@ -85,6 +85,20 @@ export default { return this.$store.getters.getTimePickerRange } }, + watch: { + obj: { + immediate: false, + deep: true, + handler (n) { + if (this.from === fromRoute.endpoint) { + this.expressions = [`{project="${this.obj.project.name}",module="${this.obj.module.name}",endpoint="${this.obj.name}"}`] + } else if (this.from === fromRoute.asset) { + this.expressions = [`{asset="${this.obj.name}"}`] + } + this.queryLogData() + } + } + }, methods: { exportLog ({ limit, descending }) { const params = { diff --git a/nezha-fronted/src/components/common/table/settings/scrapeEndpointTable.vue b/nezha-fronted/src/components/common/table/settings/scrapeEndpointTable.vue index 60596e10d..9a273f024 100644 --- a/nezha-fronted/src/components/common/table/settings/scrapeEndpointTable.vue +++ b/nezha-fronted/src/components/common/table/settings/scrapeEndpointTable.vue @@ -70,8 +70,8 @@