|
|
@@ -3,6 +3,7 @@ import { Form, Button, Input, Radio, DatePicker, Switch } from 'antd'
|
|
|
import { dayjsFormat } from '@/utils/utils'
|
|
|
import { ModalForm } from '@ant-design/pro-form'
|
|
|
import { Plus } from '@icon-park/react'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
const AddRecord = props => {
|
|
|
const formRef = useRef(null)
|
|
|
@@ -43,7 +44,7 @@ const AddRecord = props => {
|
|
|
<Radio value={4}>在线服务</Radio>
|
|
|
</Radio.Group>
|
|
|
</Form.Item>
|
|
|
- <Form.Item name="date" label="时间">
|
|
|
+ <Form.Item name="date" label="时间" initialValue={dayjs(new Date())}>
|
|
|
<DatePicker style={{ width: '100%' }} />
|
|
|
</Form.Item>
|
|
|
<Form.Item name="mark" label="内容">
|