From be7a7fb2dceddc1ddebe38c57a4c38a119faf8f5 Mon Sep 17 00:00:00 2001 From: junjie Date: Fri, 28 May 2021 15:45:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=E9=9D=A2=E7=A7=AF?= =?UTF-8?q?=E5=A0=86=E5=8F=A0=E5=9B=BE=E8=BF=9B=E5=85=A5=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=9D=A2=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/view/ChartEdit.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 908eab34ff..4f48f557c8 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -98,7 +98,7 @@
@@ -430,7 +430,7 @@ export default { return true }) }, - save(getData) { + save(getData, trigger) { const view = JSON.parse(JSON.stringify(this.view)) view.id = this.view.id view.sceneId = this.view.sceneId @@ -471,6 +471,12 @@ export default { view.yaxis.splice(1, view.yaxis.length) } } + if (view.type === 'line' && trigger === 'chart') { + view.customAttr.size.lineArea = false + } + if (view.type === 'line-stack' && trigger === 'chart') { + view.customAttr.size.lineArea = true + } view.xaxis = JSON.stringify(view.xaxis) view.yaxis = JSON.stringify(view.yaxis) view.customAttr = JSON.stringify(view.customAttr)