From f2f698b2d191958a35fba3a2411b38df7603bdb3 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 17 Jun 2021 18:21:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BB=E9=A2=98=E8=AE=BE=E7=BD=AE=20?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=A0=B7=E5=BC=8F=E8=B7=9F=E9=9A=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/custom-component/UserView.vue | 7 ++- frontend/src/views/chart/group/Group.vue | 1 + .../PreSubject/SubjectTemplateItem.vue | 8 ++- .../src/views/panel/SubjectSetting/index.vue | 57 +++++++++++++------ frontend/src/views/panel/list/PanelList.vue | 2 + frontend/src/views/panel/panel.js | 1 + 6 files changed, 54 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/canvas/custom-component/UserView.vue b/frontend/src/components/canvas/custom-component/UserView.vue index d79f42924b..3fc2d9ae67 100644 --- a/frontend/src/components/canvas/custom-component/UserView.vue +++ b/frontend/src/components/canvas/custom-component/UserView.vue @@ -68,6 +68,7 @@ export default { title: '', customAttr: JSON.stringify({ color: DEFAULT_COLOR_CASE, + tableColor: DEFAULT_COLOR_CASE, size: DEFAULT_SIZE, label: DEFAULT_LABEL, tooltip: DEFAULT_TOOLTIP @@ -148,7 +149,11 @@ export default { // 组件样式-背景设置 customStyleChart.background = customStylePanel.background // 图形属性-颜色设置 - customAttrChart.color = customAttrPanel.color + if (this.chart.type.includes('table')) { + customAttrChart.color = customAttrPanel.tableColor + } else { + customAttrChart.color = customAttrPanel.color + } this.chart = { ...this.chart, diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue index 8b40cd5608..633aad4e0f 100644 --- a/frontend/src/views/chart/group/Group.vue +++ b/frontend/src/views/chart/group/Group.vue @@ -578,6 +578,7 @@ export default { view.type = 'bar' view.customAttr = JSON.stringify({ color: DEFAULT_COLOR_CASE, + tableColor: DEFAULT_COLOR_CASE, size: DEFAULT_SIZE, label: DEFAULT_LABEL, tooltip: DEFAULT_TOOLTIP diff --git a/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue b/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue index 82cced7596..3e8446c375 100644 --- a/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue +++ b/frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue @@ -57,6 +57,7 @@