From 048e18d31920a8c5f4f6e8cb2ddadeed7f645d00 Mon Sep 17 00:00:00 2001 From: junjun Date: Fri, 16 Sep 2022 10:56:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E8=BE=85=E5=8A=A9?= =?UTF-8?q?=E7=BA=BF=E6=94=AF=E6=8C=81=E5=8A=A8=E6=80=81=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/senior/dialog/AssistLineEdit.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/chart/components/senior/dialog/AssistLineEdit.vue b/frontend/src/views/chart/components/senior/dialog/AssistLineEdit.vue index e51d97009a..7ee93b8e3e 100644 --- a/frontend/src/views/chart/components/senior/dialog/AssistLineEdit.vue +++ b/frontend/src/views/chart/components/senior/dialog/AssistLineEdit.vue @@ -37,9 +37,9 @@ - - - + + + @@ -85,7 +85,7 @@ export default { name: '辅助线', field: '0', // 固定值 fieldId: '', - summary: 'count', + summary: 'avg', axis: 'y', // 主轴 value: '0', lineType: 'solid', @@ -122,7 +122,11 @@ export default { this.lineArr = JSON.parse(JSON.stringify(this.line)) }, addLine() { - this.lineArr.push(JSON.parse(JSON.stringify(this.lineObj))) + const obj = { ...this.lineObj, + curField: this.quotaData ? this.quotaData[0] : null, + fieldId: this.quotaData ? this.quotaData[0].id : null + } + this.lineArr.push(JSON.parse(JSON.stringify(obj))) this.changeAssistLine() }, removeLine(index) {