Compare commits
2 Commits
c8d7fdd0f6
...
a8db600e90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8db600e90 | ||
|
|
baf731526f |
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user