From 1651f5413a607460c8b83201d786f725fd81f89b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 17 Nov 2023 17:48:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E5=9B=BE=E8=A1=A8=E4=B8=8D=E8=AF=86=E5=88=AB=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=95=B0=E5=AD=97=E6=AE=B5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/rich-text/DeRichTextView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 863bf1324d..e590d2f28a 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -335,7 +335,6 @@ const calcData = (view: Chart, callback) => { } const initCurFields = chartDetails => { - curFields.value = [] dataRowFiledName.value = [] dataRowSelect.value = {} dataRowNameSelect.value = {} @@ -347,10 +346,12 @@ const initCurFields = chartDetails => { JSON.stringify(chartDetails.yAxisExt) chartDetails.data.sourceFields.forEach(field => { if (checkAllAxisStr.indexOf(field.id) > -1) { - curFields.value.push(field) dataRowFiledName.value.push(`[${field.name}]`) } }) + if (checkAllAxisStr.indexOf('"记录数*"') > -1) { + dataRowFiledName.value.push(`[记录数*]`) + } // Get the corresponding relationship between id and value const nameIdMap = chartDetails.data.fields.reduce((pre, next) => { pre[next['dataeaseName']] = next['id']