forked from github/dataease
commit
addac0bd08
@ -415,7 +415,16 @@ const timeParameterList = computed(() => {
|
|||||||
const [year, y] = curComponent.value.parameters?.filter(
|
const [year, y] = curComponent.value.parameters?.filter(
|
||||||
ele => ele.deType === 1 && !!ele.variableName
|
ele => ele.deType === 1 && !!ele.variableName
|
||||||
)[0].type
|
)[0].type
|
||||||
return timeList.filter(ele => ele.value === (typeTimeMap[y] || typeTimeMap[year]))
|
let stopPush = false
|
||||||
|
return timeList.reduce((pre, ele) => {
|
||||||
|
if (ele.value === (typeTimeMap[y] || typeTimeMap[year])) {
|
||||||
|
stopPush = true
|
||||||
|
pre.push(ele)
|
||||||
|
} else if (!stopPush) {
|
||||||
|
pre.push(ele)
|
||||||
|
}
|
||||||
|
return pre
|
||||||
|
}, [])
|
||||||
})
|
})
|
||||||
|
|
||||||
const cancelClick = () => {
|
const cancelClick = () => {
|
||||||
@ -1431,6 +1440,11 @@ const addQueryCriteria = () => {
|
|||||||
conditions.value.push(addQueryCriteriaConfig())
|
conditions.value.push(addQueryCriteriaConfig())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const addQueryCriteriaAndSelect = () => {
|
||||||
|
addQueryCriteria()
|
||||||
|
handleCondition(conditions.value[conditions.value.length - 1])
|
||||||
|
}
|
||||||
|
|
||||||
const addCriteriaConfig = () => {
|
const addCriteriaConfig = () => {
|
||||||
addQueryCriteria()
|
addQueryCriteria()
|
||||||
return conditions.value[conditions.value.length - 1].id
|
return conditions.value[conditions.value.length - 1].id
|
||||||
@ -1458,7 +1472,7 @@ defineExpose({
|
|||||||
<div class="query-condition-list">
|
<div class="query-condition-list">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
查询条件
|
查询条件
|
||||||
<el-icon @click="addQueryCriteria">
|
<el-icon @click="addQueryCriteriaAndSelect">
|
||||||
<Icon name="icon_add_outlined"><icon_add_outlined class="svg-icon" /></Icon>
|
<Icon name="icon_add_outlined"><icon_add_outlined class="svg-icon" /></Icon>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import dvInfoSvg from '@/assets/svg/dv-info.svg'
|
||||||
import icon_down_outlined1 from '@/assets/svg/icon_down_outlined-1.svg'
|
import icon_down_outlined1 from '@/assets/svg/icon_down_outlined-1.svg'
|
||||||
import icon_deleteTrash_outlined from '@/assets/svg/icon_delete-trash_outlined.svg'
|
import icon_deleteTrash_outlined from '@/assets/svg/icon_delete-trash_outlined.svg'
|
||||||
import icon_info_outlined from '@/assets/svg/icon_info_outlined.svg'
|
import icon_info_outlined from '@/assets/svg/icon_info_outlined.svg'
|
||||||
@ -1752,13 +1753,28 @@ const deleteChartFieldItem = id => {
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="!canvasCollapse.chartAreaCollapse" style="width: 240px" class="view-panel-row">
|
<div v-if="!canvasCollapse.chartAreaCollapse" style="width: 240px" class="view-panel-row">
|
||||||
<el-row class="editor-title">
|
<el-row class="editor-title">
|
||||||
<span
|
<div style="display: flex; align-items: center; width: calc(100% - 24px)">
|
||||||
id="component-name"
|
<div
|
||||||
class="name-area"
|
id="component-name"
|
||||||
:class="{ 'component-name-dark': themes === 'dark' }"
|
class="name-area"
|
||||||
@dblclick="editComponentName"
|
style="max-width: 180px; text-overflow: ellipsis; white-space: nowrap"
|
||||||
>{{ view.title }}</span
|
:style="{ width: componentNameEdit ? '300px' : 'auto' }"
|
||||||
>
|
:class="{ 'component-name-dark': themes === 'dark' }"
|
||||||
|
@dblclick="editComponentName"
|
||||||
|
>
|
||||||
|
{{ view.title }}
|
||||||
|
</div>
|
||||||
|
<el-popover show-arrow :offset="8" placement="bottom" width="200" trigger="click">
|
||||||
|
<template #reference>
|
||||||
|
<el-icon
|
||||||
|
v-show="route.path !== '/dvCanvas'"
|
||||||
|
style="margin-left: 4px; cursor: pointer"
|
||||||
|
><Icon><dvInfoSvg class="svg-icon" /></Icon
|
||||||
|
></el-icon>
|
||||||
|
</template>
|
||||||
|
{{ view.id }}
|
||||||
|
</el-popover>
|
||||||
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row style="height: calc(100vh - 110px); overflow-y: auto">
|
<el-row style="height: calc(100vh - 110px); overflow-y: auto">
|
||||||
@ -4784,7 +4800,6 @@ span {
|
|||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
width: 300px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
input {
|
input {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="info-card">
|
<div class="info-card">
|
||||||
|
<div v-if="dvInfo.type === 'dashboard'" class="info-title">仪表板ID</div>
|
||||||
|
<div v-if="dvInfo.type === 'dashboard'" class="info-content">{{ dvInfo.id }}</div>
|
||||||
<div v-if="dvInfo.creatorName" class="info-title">{{ t('visualization.create_by') }}</div>
|
<div v-if="dvInfo.creatorName" class="info-title">{{ t('visualization.create_by') }}</div>
|
||||||
<div v-if="dvInfo.creatorName" class="info-content">{{ dvInfo.creatorName }}</div>
|
<div v-if="dvInfo.creatorName" class="info-content">{{ dvInfo.creatorName }}</div>
|
||||||
<div class="info-title">{{ t('visualization.create_time') }}</div>
|
<div class="info-title">{{ t('visualization.create_time') }}</div>
|
||||||
|
@ -169,7 +169,7 @@ const initOpenHandler = newWindow => {
|
|||||||
<el-dropdown-menu style="width: 130px">
|
<el-dropdown-menu style="width: 130px">
|
||||||
<el-dropdown-item icon="Refresh" @click="reload()">刷新数据 </el-dropdown-item>
|
<el-dropdown-item icon="Refresh" @click="reload()">刷新数据 </el-dropdown-item>
|
||||||
<el-dropdown
|
<el-dropdown
|
||||||
style="width: 100%"
|
style="width: 100%; overflow: hidden"
|
||||||
trigger="hover"
|
trigger="hover"
|
||||||
placement="left-start"
|
placement="left-start"
|
||||||
v-if="dvInfo.weight > 3"
|
v-if="dvInfo.weight > 3"
|
||||||
|
Loading…
Reference in New Issue
Block a user