维度单选,其他项隐藏
This commit is contained in:
@@ -67,34 +67,18 @@
|
||||
:column="scope.column"
|
||||
></InputTimeRange>
|
||||
</template>
|
||||
groupbylisy
|
||||
<template #[`groupbylisy-search`]>
|
||||
<el-checkbox-group style="flex-direction:row" v-model="tableSearch.groupbylisy"
|
||||
placeholder="请选择内容">
|
||||
<el-checkbox v-for="(item,key) in dimensionFields"
|
||||
:key="key"
|
||||
:value="key"
|
||||
:label="item.label"></el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</template>
|
||||
<template #header v-if="Object.keys(dimensionFields)?.length">
|
||||
<div style="display:flex;margin-left:20px">
|
||||
<el-checkbox-group v-model="tableSearch['Group by']"
|
||||
<div style="display:flex;margin-left:40px">
|
||||
<el-checkbox-group @change="searchDimension" v-model="tableSearch['Group by']"
|
||||
placeholder="请选择内容">
|
||||
<el-checkbox v-for="(item,key) in dimensionFields"
|
||||
:key="key"
|
||||
:value="key"
|
||||
:label="item.label"></el-checkbox>
|
||||
</el-checkbox-group>
|
||||
<el-button
|
||||
style="margin-left:20px"
|
||||
type="primary"
|
||||
:loading="loading"
|
||||
@click="searchDimension"
|
||||
>
|
||||
维度搜索
|
||||
</el-button>
|
||||
</div>
|
||||
<template v-for="(item,key) in dimensionFields">
|
||||
<el-checkbox v-if="tableSearch['Group by']&&tableSearch['Group by'].includes(key)||!tableSearch['Group by']?.length"
|
||||
:key="key"
|
||||
:value="key"
|
||||
:label="item.label"></el-checkbox>
|
||||
</template>
|
||||
</el-checkbox-group>
|
||||
</div>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</div>
|
||||
@@ -199,7 +183,7 @@ const initTable = async () => {
|
||||
index: reportVo.tableConfig.includes('index'),
|
||||
border: reportVo.tableConfig.includes('border'),
|
||||
stripe: reportVo.tableConfig.includes('stripe'),
|
||||
showSummary:true,
|
||||
showSummary:false,
|
||||
|
||||
column: {}
|
||||
}
|
||||
@@ -222,6 +206,7 @@ const initTable = async () => {
|
||||
if(!!item.isAmount){
|
||||
index==0?amountFieds.value.fistField=config.prop:''
|
||||
amountFieds.value[item.isAmount]=config
|
||||
tableOption.value.showSummary=true
|
||||
}
|
||||
if(item.isDimension=='Y'){
|
||||
dimensionFields.value[config.prop]=config
|
||||
|
||||
Reference in New Issue
Block a user