Merge branch 'dev-v2' of github.com:dataease/dataease into dev-v2

This commit is contained in:
wangjiahao 2024-07-01 17:42:32 +08:00
commit 96506afebb
3 changed files with 4 additions and 13 deletions

View File

@ -349,7 +349,7 @@ onMounted(() => {
</el-tooltip>
</el-form-item>
</el-space>
<div v-if="showProperty('showFields')">
<div v-if="showProperty('showFields') && !batchOptStatus">
<el-form-item :label="t('chart.label')" class="form-item" :class="'form-item-' + themes">
<el-select
size="small"

View File

@ -464,7 +464,7 @@ onMounted(() => {
</el-form-item>
</el-space>
<div v-if="showProperty('showFields')">
<div v-if="showProperty('showFields') && !batchOptStatus">
<el-form-item :label="t('chart.tooltip')" class="form-item" :class="'form-item-' + themes">
<el-select
size="small"

View File

@ -21,17 +21,8 @@ const embeddedStore = useEmbedded()
const favorited = ref(false)
const fullScreeRef = ref(null)
const preview = () => {
if (isDataEaseBi.value) {
embeddedStore.clearState()
if (dvInfo.value.type === 'dataV') {
embeddedStore.setDvId(dvInfo.value.id)
} else {
embeddedStore.setResourceId(dvInfo.value.id)
}
useEmitt().emitter.emit('changeCurrentComponent', 'Preview')
return
}
const url = '#/preview?dvId=' + dvInfo.value.id
const baseUrl = isDataEaseBi.value ? embeddedStore.baseUrl : ''
const url = baseUrl + '#/preview?dvId=' + dvInfo.value.id
const newWindow = window.open(url, '_blank')
initOpenHandler(newWindow)
}