From 1ea578a09e09f7fe8675cd166259e23d2f45b8c0 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 22 Jul 2024 18:14:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E5=88=9D=E5=A7=8B=E5=8C=96=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E6=9C=AA=E4=BD=BF=E7=94=A8=E9=BB=98=E8=AE=A4=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=97=AE=E9=A2=98#11047=20#11034?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/rich-text/DeRichTextView.vue | 10 ++++++++-- .../components/editor/editor-style/ChartStyle.vue | 2 +- 2 files changed, 9 insertions(+), 3 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 a6063e7aff..f8846e202a 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -106,7 +106,8 @@ const { element, editMode, active, disabled, showPosition } = toRefs(props) const state = reactive({ data: null, viewDataInfo: null, - totalItems: 0 + totalItems: 0, + firstRender: true }) const dataRowSelect = ref({}) const dataRowNameSelect = ref({}) @@ -453,8 +454,13 @@ const initCurFields = chartDetails => { } } +// 初始化此处不必刷新 const renderChart = viewInfo => { - calcData(viewInfo) + if (!state.firstRender) { + calcData(viewInfo) + } else { + state.firstRender = false + } } const conditionAdaptor = (chart: Chart) => { diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue index 06330d8276..be2a4bb9f6 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue @@ -347,7 +347,7 @@ watch( v-model="chart.customAttr.label.show" :change-model="chart.customAttr.label" @modelChange="val => onLabelChange(val, 'show')" - :title="$t('chart.label') + '11'" + :title="$t('chart.label')" name="label" >