维度和查询分割开

This commit is contained in:
mll
2026-02-26 12:05:34 +08:00
parent c8d7fdd0f6
commit baf731526f

View File

@@ -4,6 +4,7 @@
class="low-reoprt"
:class="[`low-report__${reportCode}`, { summary: tableOption.showSummary }]"
>
<div style="margin-bottom:6px">查询</div>
<avue-crud
ref="crudRef"
v-model:search="tableSearch"
@@ -68,7 +69,8 @@
></InputTimeRange>
</template>
<template #header v-if="Object.keys(dimensionFields)?.length">
<div style="display:flex;margin-left:40px">
<div style="display:flex;align-items:center;border-top:1px solid #eee;margin-bottom:10px;padding-top:10px;">
<span style="margin-right:10px;">维度:</span>
<el-checkbox-group
@change="searchDimension" v-model="tableSearch['Group by']"
placeholder="请选择内容">
@@ -117,6 +119,8 @@ const { mergeLocaleMessage, t } = useI18n() // 国际化
const loading = ref(false) // 列表的加载中
const isInit = ref(false)
const isSearch = ref(false)
const tableOption = ref<any>({})
const tableData = ref<any>([])
@@ -265,6 +269,7 @@ const initTable = async () => {
_hasChildConfig: childFieldConfigs.has(item.fieldCode),
_childConfigs: childFieldConfigs.get(item.fieldCode) || []
}
if(item.queryIsWeb == 'Y') isSearch.value=true
if(!!item.searchDefaultValue){
if(['年','年度','年份'].includes(item.fieldName)&&item.searchDefaultValue=='本年'){
tableSearch.value[config.prop]=getCurrentDate().year