Merge pull request #12517 from dataease/prdev-v2@chart-cancel-sort-style

style(图表): 取消指标卡、水波图、仪表盘的指标排序功能
This commit is contained in:
jianneng-fit2cloud 2024-09-27 14:11:51 +08:00 committed by GitHub
commit 485cb4b047
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -373,57 +373,6 @@ onMounted(() => {
class="drop-style"
:class="themes === 'dark' ? 'dark-dimension-quota' : ''"
>
<!-- <el-dropdown-item @click.prevent v-if="chart.type === 'chart-mix'">
<el-dropdown
:effect="themes"
placement="right-start"
popper-class="data-dropdown_popper_mr9"
style="width: 100%"
@command="switchChartType"
>
<span class="el-dropdown-link inner-dropdown-menu menu-item-padding">
<span class="menu-item-content">
<el-icon>
<Icon name="icon_dashboard_outlined" ><icon_dashboard_outlined class="svg-icon" /></Icon>
</el-icon>
<span>{{ t('chart.chart_type') }}</span>
</span>
<el-icon>
<Icon name="icon_right_outlined"><icon_right_outlined class="svg-icon" /></Icon>
</el-icon>
</span>
<template #dropdown>
<el-dropdown-menu
:effect="themes"
class="drop-style sub"
:class="themes === 'dark' ? 'dark-dimension-quota' : ''"
>
<el-dropdown-item class="menu-item-padding" :command="beforeSwitchType('bar')">
<span
class="sub-menu-content"
:class="'bar' === item.chartType ? 'content-active' : ''"
>
{{ t('chart.chart_bar') }}
<el-icon class="sub-menu-content&#45;&#45;icon">
<Icon name="icon_done_outlined" v-if="'bar' === item.chartType" ><icon_done_outlined class="svg-icon" /></Icon>
</el-icon>
</span>
</el-dropdown-item>
<el-dropdown-item class="menu-item-padding" :command="beforeSwitchType('line')">
<span
class="sub-menu-content"
:class="'line' === item.chartType ? 'content-active' : ''"
>
{{ t('chart.chart_line') }}
<el-icon class="sub-menu-content&#45;&#45;icon">
<Icon name="icon_done_outlined" v-if="'line' === item.chartType" ><icon_done_outlined class="svg-icon" /></Icon>
</el-icon>
</span>
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</el-dropdown-item>-->
<el-dropdown-item
@click.prevent
v-if="chart.type !== 'table-info' && item.summary !== ''"
@ -684,7 +633,7 @@ onMounted(() => {
props.type !== 'extLabel' &&
props.type !== 'extTooltip' &&
props.type !== 'extBubble' &&
!chart.type.includes('chart-mix')
!['chart-mix', 'indicator', 'liquid', 'gauge'].includes(chart.type)
"
:divided="chart.type !== 'table-info'"
>
@ -766,7 +715,7 @@ onMounted(() => {
:command="beforeClickItem('filter')"
:divided="chart.type.includes('chart-mix')"
>
<span>{{ t('chart.filter') }}...</span>
<span>{{ t('chart.filter') }}</span>
</el-dropdown-item>
<el-dropdown-item
@ -776,7 +725,7 @@ onMounted(() => {
:command="beforeClickItem('formatter')"
>
<el-icon />
<span>{{ t('chart.value_formatter') }}...</span>
<span>{{ t('chart.value_formatter') }}</span>
</el-dropdown-item>
<el-dropdown-item class="menu-item-padding" :command="beforeClickItem('rename')">