lanjianrong 4 gadi atpakaļ
vecāks
revīzija
5e0bc0e91d

+ 2 - 7
src/pages/Statistic/Customer/CustomerAdditions/index.jsx

@@ -1,6 +1,6 @@
 import BasicTable from '@/components/Table'
 import consts from '@/consts'
-import React, { useRef, useState, useEffect } from 'react'
+import React, { useRef, useState } from 'react'
 import { DatePicker, Select, Space } from 'antd'
 import { Column } from '@ant-design/charts'
 import dayjs from 'dayjs'
@@ -27,16 +27,11 @@ const CustomerAdditions = () => {
       optionType: 'singleStaff',
       dataIds: [],
       dateType: 'month',
-      startMonth: null
+      startMonth: [dayjs(new Date()), dayjs(new Date())]
     },
     data: []
   })
 
-  useEffect(() => {
-    setState({ ...state, params: { ...state.params, startMonth: [dayjs(new Date()), dayjs(new Date())] } })
-    console.log(state.params.startMonth)
-  }, [])
-
   const [dates, setDates] = useState(null)
   const [hackValue, setHackValue] = useState(null)
   const handleOptionChange = (type, ids) =>