|
|
|
@ -64,6 +64,7 @@ |
|
|
|
|
<script setup name="ChannelPeriod"> |
|
|
|
|
import { getPeriodList } from '@/api/home/reportChannel' |
|
|
|
|
import { removeNullField } from '@/utils' |
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
|
sourceOptions: { |
|
|
|
@ -89,15 +90,18 @@ const searchRules = { |
|
|
|
|
onMounted(() => { |
|
|
|
|
getOptions() |
|
|
|
|
handleReset() |
|
|
|
|
handleSearch() |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const searchForm = ref({}) |
|
|
|
|
|
|
|
|
|
function handleReset() { |
|
|
|
|
const date = new Date() |
|
|
|
|
date.setDate(1) |
|
|
|
|
searchForm.value = { |
|
|
|
|
sourceId: undefined, |
|
|
|
|
periodNumber: 30, |
|
|
|
|
consultDate: [] |
|
|
|
|
consultDate: [formatDate(date), formatDate(new Date())] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|