From a8b73500121cfdccbd5ea95d1325e8f7953dab75 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 4 May 2022 17:55:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20tab=E4=B8=AD=E6=94=BE=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E9=92=BB=E5=8F=96=E5=90=8E=E6=9F=A5=E7=9C=8B=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=9B=BE=E5=BD=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/custom-component/UserViewDialog.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend/src/components/canvas/custom-component/UserViewDialog.vue b/frontend/src/components/canvas/custom-component/UserViewDialog.vue index bef848da14..f450247a5e 100644 --- a/frontend/src/components/canvas/custom-component/UserViewDialog.vue +++ b/frontend/src/components/canvas/custom-component/UserViewDialog.vue @@ -123,10 +123,24 @@ export default { if (!this.curComponent && this.lastMapChart) { return this.lastMapChart } + if (this.curComponent && this.curComponent.options && this.curComponent.options.tabList && this.curComponent.options.tabList.length) { + const tabList = JSON.parse(JSON.stringify(this.curComponent.options.tabList)) + tabList.forEach(tab => { + if (tab.content && + tab.content.propValue && + tab.content.propValue.viewId && + tab.content.propValue.viewId === this.chart.id && + tab.content.DetailAreaCode && + tab.content.DetailAreaCode.length) { + DetailAreaCode = tab.content.DetailAreaCode + } + }) + } const result = { ...temp, ...{ DetailAreaCode: DetailAreaCode }} this.setLastMapChart(result) return result } + return null } },