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 @@