mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 20:42:55 +08:00
Merge pull request #11259 from dataease/pr@dev-v2_st
fix(查询组件): 编辑查询条件时,关联图表的名称过长时无法查看完整名称
This commit is contained in:
commit
a6e29b44af
@ -512,6 +512,19 @@ const labelStyle = computed(() => {
|
|||||||
}
|
}
|
||||||
return style
|
return style
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const paddingTop = computed<CSSProperties>(() => {
|
||||||
|
return {
|
||||||
|
paddingTop: customStyle.layout !== 'horizontal' ? customStyle.nameboxSpacing + 22 + 'px' : '0'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const marginRight = computed<CSSProperties>(() => {
|
||||||
|
return {
|
||||||
|
marginRight: customStyle.layout === 'horizontal' ? customStyle.nameboxSpacing + 'px' : '8px'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const autoStyle = computed(() => {
|
const autoStyle = computed(() => {
|
||||||
return {
|
return {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
@ -558,8 +571,8 @@ const autoStyle = computed(() => {
|
|||||||
:key="ele.id"
|
:key="ele.id"
|
||||||
v-for="(ele, index) in listVisible"
|
v-for="(ele, index) in listVisible"
|
||||||
>
|
>
|
||||||
<div class="query-field">
|
<div class="query-field" :style="paddingTop">
|
||||||
<div class="label" :style="{ marginRight: `${customStyle.nameboxSpacing}px` }">
|
<div class="label" :style="marginRight">
|
||||||
<div class="label-wrapper" v-show="customStyle.labelShow">
|
<div class="label-wrapper" v-show="customStyle.labelShow">
|
||||||
<div class="label-wrapper-text" :style="labelStyle">
|
<div class="label-wrapper-text" :style="labelStyle">
|
||||||
<el-tooltip effect="dark" :content="ele.name" placement="top">
|
<el-tooltip effect="dark" :content="ele.name" placement="top">
|
||||||
|
@ -1383,7 +1383,7 @@ defineExpose({
|
|||||||
canvasViewInfo[field.componentId].title
|
canvasViewInfo[field.componentId].title
|
||||||
}}</span></el-checkbox
|
}}</span></el-checkbox
|
||||||
>
|
>
|
||||||
<span class="dataset ellipsis">{{ field.name }}</span>
|
<span :title="field.name" class="dataset ellipsis">{{ field.name }}</span>
|
||||||
<el-select
|
<el-select
|
||||||
@change="setParameters"
|
@change="setParameters"
|
||||||
@focus="handleDialogClick"
|
@focus="handleDialogClick"
|
||||||
|
@ -177,9 +177,7 @@ import { nextTick, reactive, watch, onMounted, ref, computed } from 'vue'
|
|||||||
import { useI18n } from '@/hooks/web/useI18n'
|
import { useI18n } from '@/hooks/web/useI18n'
|
||||||
import { ElMessage } from 'element-plus-secondary'
|
import { ElMessage } from 'element-plus-secondary'
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
import { useCache } from '@/hooks/web/useCache'
|
||||||
import router from '@/router'
|
|
||||||
import MarketPreviewV2 from '@/views/template-market/component/MarketPreviewV2.vue'
|
import MarketPreviewV2 from '@/views/template-market/component/MarketPreviewV2.vue'
|
||||||
import { parseUrl } from '@/utils/ParseUrl'
|
|
||||||
import { imgUrlTrans } from '@/utils/imgUtils'
|
import { imgUrlTrans } from '@/utils/imgUtils'
|
||||||
import CategoryTemplateV2 from '@/views/template-market/component/CategoryTemplateV2.vue'
|
import CategoryTemplateV2 from '@/views/template-market/component/CategoryTemplateV2.vue'
|
||||||
import { interactiveStoreWithOut } from '@/store/modules/interactive'
|
import { interactiveStoreWithOut } from '@/store/modules/interactive'
|
||||||
@ -201,8 +199,7 @@ const close = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const title = computed(() => (state.curPosition === 'branch' ? '模板中心' : '使用模板新建'))
|
const title = computed(() => (state.curPosition === 'branch' ? '模板中心' : '使用模板新建'))
|
||||||
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
const isEmbedded = computed(() => appStore.getIsDataEaseBi || appStore.getIsIframe)
|
||||||
const isIframe = computed(() => appStore.getIsIframe)
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
initReady: true,
|
initReady: true,
|
||||||
curPosition: 'branch',
|
curPosition: 'branch',
|
||||||
@ -472,7 +469,7 @@ const apply = template => {
|
|||||||
'&templateParams=' +
|
'&templateParams=' +
|
||||||
encodeURIComponent(Base64.encode(JSON.stringify(templateTemplate)))
|
encodeURIComponent(Base64.encode(JSON.stringify(templateTemplate)))
|
||||||
let newWindow = null
|
let newWindow = null
|
||||||
if (isDataEaseBi.value) {
|
if (isEmbedded.value) {
|
||||||
embeddedStore.clearState()
|
embeddedStore.clearState()
|
||||||
embeddedStore.setCreateType('template')
|
embeddedStore.setCreateType('template')
|
||||||
embeddedStore.setTemplateParams(
|
embeddedStore.setTemplateParams(
|
||||||
@ -491,11 +488,6 @@ const apply = template => {
|
|||||||
)
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isIframe.value) {
|
|
||||||
router.push(parseUrl(state.pid ? baseUrl + `&pid=${state.pid}` : baseUrl))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (state.pid) {
|
if (state.pid) {
|
||||||
newWindow = window.open(baseUrl + `&pid=${state.pid}`, '_blank')
|
newWindow = window.open(baseUrl + `&pid=${state.pid}`, '_blank')
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user