feat(图表): 汇总表总计,支持对数值类字段进行自定义汇总

#12878

调整记录数的选择显示
This commit is contained in:
ulleo
2025-03-25 17:16:32 +08:00
committed by xuwei-fit2cloud
parent f1d25d4f4a
commit 84992c4921
2 changed files with 4 additions and 30 deletions

View File

@@ -896,34 +896,6 @@ onMounted(() => {
<template #append>%</template>
</el-input>
</el-form-item>
<!-- <el-form-item
v-if="showProperty('showSummary')"
class="form-item"
:class="'form-item-' + themes"
>
<el-checkbox
size="small"
:effect="themes"
v-model="state.basicStyleForm.showSummary"
@change="changeBasicStyle('showSummary')"
>
{{ t('chart.table_show_summary') }}
</el-checkbox>
</el-form-item>
<el-form-item
v-if="showProperty('summaryLabel') && state.basicStyleForm.showSummary"
:label="t('chart.table_summary_label')"
:class="'form-item-' + themes"
class="form-item"
>
<el-input
v-model="state.basicStyleForm.summaryLabel"
type="text"
:effect="themes"
:max-length="10"
@blur="changeBasicStyle('summaryLabel')"
/>
</el-form-item>-->
<el-form-item v-if="showProperty('autoWrap')" class="form-item" :class="'form-item-' + themes">
<el-checkbox
size="small"

View File

@@ -58,7 +58,9 @@ function getAxisList() {
}
const computedAxis = computed(() => {
return getAxisList()
const l = getAxisList()
console.log(l)
return l
})
const summaryTypes = [
{ key: 'sum', name: t('chart.sum') },
@@ -151,7 +153,7 @@ onMounted(() => {
v-for="c in computedAxis"
:key="c.dataeaseName"
:value="c.dataeaseName"
:label="c.chartShowName ?? c.description"
:label="c.chartShowName ?? c.name"
/>
</el-select>
</el-form-item>