fix(图表): 修复同时div嵌入多个仪表板时,富文本部分值不显示问题

This commit is contained in:
wangjiahao
2025-02-20 12:13:05 +08:00
committed by 王嘉豪
parent a50c41d0b0
commit f352973232
2 changed files with 7 additions and 8 deletions

View File

@@ -297,7 +297,6 @@ const slotStyle = computed(() => {
const onPointClick = param => {
emits('onPointClick', param)
}
const isEmbedded = computed(() => appStore.getIsDataEaseBi || appStore.getIsIframe)
const eventEnable = computed(
() =>
@@ -328,7 +327,8 @@ const onWrapperClick = e => {
'_blank',
'width=800,height=600,left=200,top=100,toolbar=no,scrollbars=yes,resizable=yes,location=no'
)
} else if ('_blank' === jumpType && isEmbedded.value) {
} else if ('_blank' === jumpType) {
console.info('DataEase Component Jump _blank')
window.open(url, '_blank')
} else {
initOpenHandler(window.open(url, jumpType))

View File

@@ -373,6 +373,7 @@ const assignment = content => {
const on = content?.match(/\[(.+?)\]/g)
if (on) {
const thresholdStyleInfo = conditionAdaptor(state.viewDataInfo)
console.info('Rich Text assignment value:' + JSON.stringify(dataRowNameSelect.value))
on.forEach(itm => {
if (dataRowFiledName.value.includes(itm)) {
const ele = itm.slice(1, -1)
@@ -663,12 +664,10 @@ const initCurFields = chartDetails => {
}
element.value.propValue['innerType'] = chartDetails.type
element.value.propValue['render'] = chartDetails.render
if (chartDetails.type === 'rich-text') {
nextTick(() => {
initCurFieldsChange()
eventBus.emit('initCurFields-' + element.value.id)
})
}
nextTick(() => {
initCurFieldsChange()
eventBus.emit('initCurFields-' + element.value.id)
})
}
// 初始化此处不必刷新