forked from github/dataease
Merge branch 'dev-v2' of github.com:dataease/dataease into dev-v2
This commit is contained in:
commit
96506afebb
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user