完成 区域报告 事件报告 迁移

This commit is contained in:
GGJ
2024-02-28 20:35:20 +08:00
parent 4aaf97fe8b
commit e910584460
16 changed files with 1285 additions and 63 deletions

View File

@@ -17,13 +17,13 @@
</el-form-item>
<slot name="select"></slot>
</el-form>
<template v-if="$slots.select || datePicker">
<template v-if="($slots.select || datePicker) ">
<el-button type="primary" @click="showSelectChange" v-if="showUnfoldButton">
<Icon size="14" name="el-icon-ArrowUp" style="color: #fff" v-if="showSelect" />
<Icon size="14" name="el-icon-ArrowDown" style="color: #fff" v-else />
</el-button>
<el-button @click="onComSearch" type="primary" :icon="Search">查询</el-button>
<el-button @click="onResetForm" :icon="RefreshLeft">重置</el-button>
<el-button @click="onComSearch" v-if="showSearch" type="primary" :icon="Search">查询</el-button>
<el-button @click="onResetForm" v-if="showSearch" :icon="RefreshLeft">重置</el-button>
</template>
<slot name="operation"></slot>
</div>
@@ -56,11 +56,13 @@ const areaRef = ref()
interface Props {
datePicker?: boolean
area?: boolean
showSearch?: boolean
}
const props = withDefaults(defineProps<Props>(), {
datePicker: false,
area: false
area: false,
showSearch: true
})
// 动态计算table高度
const resizeObserver = new ResizeObserver(entries => {
@@ -153,9 +155,8 @@ const onComSearch = async () => {
const onResetForm = () => {
tableStore.onTableAction('reset', {})
}
const setDatePicker = (list:any) => {
const setDatePicker = (list: any) => {
datePickerRef.value.setTimeOptions(list)
}
defineExpose({ onComSearch, areaRef, setDatePicker })