Merge branch 'dev-report' of http://114.55.169.15:3000/qiushanhe/ss-crm-manage-web into dev-cl
This commit is contained in:
@@ -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())]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user