Compare commits

...

2 Commits

Author SHA1 Message Date
mll
a8db600e90 同上 2026-02-26 12:06:23 +08:00
mll
baf731526f 维度和查询分割开 2026-02-26 12:05:34 +08:00

View File

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