From f49284dc5089488df6530f40e997b4217a4c0d42 Mon Sep 17 00:00:00 2001 From: zyh Date: Thu, 16 Mar 2023 16:03:27 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2681=20fix=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=9B=86=E6=88=90=E9=A1=B5=E9=9D=A2panel=E4=B8=BAdashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/page/integration/integration.scss | 5 +++-- .../integration/integration-tabs/dashboard.vue | 14 +++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/nezha-fronted/src/assets/css/components/page/integration/integration.scss b/nezha-fronted/src/assets/css/components/page/integration/integration.scss index 4fae0fd8a..a9c1eab1b 100644 --- a/nezha-fronted/src/assets/css/components/page/integration/integration.scss +++ b/nezha-fronted/src/assets/css/components/page/integration/integration.scss @@ -38,7 +38,8 @@ } .integration-icon{ margin-top: 30px; - width: 50px; + width: auto; + max-width: 100%; height: 50px; } .integration-name{ @@ -119,7 +120,7 @@ line-height: 0; img{ width: 72px; - height: 72px; + height: auto; } } .integration-dialog-introduce{ diff --git a/nezha-fronted/src/components/page/integration/integration-tabs/dashboard.vue b/nezha-fronted/src/components/page/integration/integration-tabs/dashboard.vue index 9d0aa4544..45fbd93cd 100644 --- a/nezha-fronted/src/components/page/integration/integration-tabs/dashboard.vue +++ b/nezha-fronted/src/components/page/integration/integration-tabs/dashboard.vue @@ -18,8 +18,8 @@ { + this.$get('visual/dashboard/chart?dashboardId=' + params.dashboardId + '&groupId=0' + '&pageSize=-1').then(response => { if (response.code === 200) { this.chartListLoading = false this.dataList = response.data.list.map(item => { @@ -145,11 +145,11 @@ export default { }, // 公用操作 getTableData () { - this.$get('visual/panel', { type: 'template', ids: this.tempId }).then(response => { + this.$get('visual/dashboard', { type: 'template', ids: this.tempId }).then(response => { if (response.code === 200) { this.panelData = response.data.list if (this.panelData.length > 0) { - this.filter.panelId = this.panelData[0].id + this.filter.dashboardId = this.panelData[0].id this.showPanel = this.$loadsh.cloneDeep(this.panelData[0]) this.variables = this.$loadsh.get(this.panelData, '[0].param.variables') this.getData(this.filter) @@ -177,7 +177,7 @@ export default { this.getTableData() }, watch: { - // 监听图表联动配置panelId + // 监听图表联动配置 'showPanel.param.chartShare': { handler (value) { // 每次切换联动模式 tooltip设置显示