From 183b06019a4beb6ae1893bb75d553dc472b24c7f Mon Sep 17 00:00:00 2001 From: fit2cloudrd Date: Thu, 25 Aug 2022 13:39:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E5=A4=87=E9=80=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=B0=E5=BD=95=E6=95=B0=20(#2940)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(仪表板): 修复富文本在tab页无效的问题 * refactor(富文本): 富文本编辑区结果展示文案修改,去掉下钻 * refactor(富文本): 富文本字段选择按钮再进入编辑状态再显示 * fix(仪表板): 富文本初始化进入仪表板编辑状态保存按钮会显示可以用问题 * refactor(仪表板): 富文本备选字段增加记录数 Co-authored-by: wangjiahao <1522128093@qq.com> --- .../src/components/canvas/components/Editor/EditBar.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/EditBar.vue b/frontend/src/components/canvas/components/Editor/EditBar.vue index 532378f95f..c1314fe9c3 100644 --- a/frontend/src/components/canvas/components/Editor/EditBar.vue +++ b/frontend/src/components/canvas/components/Editor/EditBar.vue @@ -225,13 +225,8 @@ export default { if (chartInfo) { this.curFields = [] const chartDetails = JSON.parse(chartInfo) - if (chartDetails.type === 'richTextView' && chartDetails.data && chartDetails.data.sourceFields) { - const checkAllAxisStr = chartDetails.xaxis + chartDetails.xaxisExt + chartDetails.yaxis + chartDetails.yaxisExt - chartDetails.data.sourceFields.forEach(field => { - if (checkAllAxisStr.indexOf(field.id) > -1) { - this.curFields.push(field) - } - }) + if (chartDetails.type === 'richTextView' && chartDetails.data) { + this.curFields = chartDetails.data.fields } } }