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) }