From 8848747c66f5a1ccfce6afc1e1304a7ac77a132c Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 15 Apr 2024 18:56:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=89=B9=E9=87=8F=E8=AE=BE=E7=BD=AE=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E5=8D=A1=E9=A2=9C=E8=89=B2=E6=9C=AA=E7=94=9F=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/indicator/DeIndicator.vue | 9 ++++++++- .../editor-style/components/IndicatorValueSelector.vue | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/custom-component/indicator/DeIndicator.vue b/core/core-frontend/src/custom-component/indicator/DeIndicator.vue index 18d1269727..4425a295d1 100644 --- a/core/core-frontend/src/custom-component/indicator/DeIndicator.vue +++ b/core/core-frontend/src/custom-component/indicator/DeIndicator.vue @@ -13,6 +13,7 @@ import { } from '@/views/chart/components/editor/util/chart' import { valueFormatter } from '@/views/chart/components/js/formatter' import { hexColorToRGBA } from '@/views/chart/components/js/util' +import { storeToRefs } from 'pinia' const props = defineProps({ view: { @@ -43,6 +44,8 @@ const { view, scale, terminal } = toRefs(props) const dvMainStore = dvMainStoreWithOut() +const { batchOptStatus } = storeToRefs(dvMainStore) + const errMsg = ref('') const isError = ref(false) const state = reactive({ @@ -267,7 +270,11 @@ const renderChart = async view => { indicatorColor.value = customAttr.indicator.color let suffixColor = customAttr.indicator.suffixColor - if (customAttr.basicStyle && customAttr.basicStyle.alpha !== undefined) { + if ( + customAttr.basicStyle && + customAttr.basicStyle.alpha !== undefined && + !batchOptStatus.value + ) { indicatorColor.value = hexColorToRGBA( customAttr.basicStyle.colors[0], customAttr.basicStyle.alpha diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue index d353b943fa..f2526a5940 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/IndicatorValueSelector.vue @@ -58,7 +58,6 @@ const fontSizeList = computed(() => { }) const changeLabelTitleStyleStyle = prop => { - console.log('changeLabelTitleStyleStyle===' + prop) emit('onIndicatorChange', state.indicatorValueForm, prop) }