mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix(图表): 修复同时div嵌入多个仪表板时,富文本部分值不显示问题
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
// 初始化此处不必刷新
|
||||
|
||||
Reference in New Issue
Block a user