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']