|
@@ -4,9 +4,8 @@ import { useForm } from 'antd/lib/form/Form'
|
|
|
|
|
|
|
|
const AddRecord = props => {
|
|
const AddRecord = props => {
|
|
|
const [form] = useForm()
|
|
const [form] = useForm()
|
|
|
- // const { Option, OptGroup } = Select
|
|
|
|
|
const { TextArea } = Input
|
|
const { TextArea } = Input
|
|
|
- const { visible, onCancel, onConfirm, loading } = props
|
|
|
|
|
|
|
+ const { visible, onCancel, onConfirm, loading, id = '' } = props
|
|
|
const [showExtraItem, setShowExtraItem] = useState(false)
|
|
const [showExtraItem, setShowExtraItem] = useState(false)
|
|
|
const onChange = value => {
|
|
const onChange = value => {
|
|
|
// const { value = '' } = e.currentTarget || e.target
|
|
// const { value = '' } = e.currentTarget || e.target
|
|
@@ -35,14 +34,15 @@ const AddRecord = props => {
|
|
|
<Radio value={4}>其他事项</Radio>
|
|
<Radio value={4}>其他事项</Radio>
|
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item name="time" label="时间">
|
|
|
|
|
|
|
+ <Form.Item name="date" label="时间">
|
|
|
<DatePicker style={{ width: '100%' }} />
|
|
<DatePicker style={{ width: '100%' }} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <Form.Item name="con" label="内容">
|
|
|
|
|
|
|
+ <Form.Item name="mark" label="内容">
|
|
|
<TextArea rows={3} />
|
|
<TextArea rows={3} />
|
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
- <div className="zh-align-center">
|
|
|
|
|
- <Switch onChange={onChange} /> <span>添加提醒</span>
|
|
|
|
|
|
|
+ <div className="zh-pd-bottom-20">
|
|
|
|
|
+ <Switch onChange={onChange} />
|
|
|
|
|
+ <span className="zh-mg-left-3">添加提醒</span>
|
|
|
</div>
|
|
</div>
|
|
|
{showExtraItem ? (
|
|
{showExtraItem ? (
|
|
|
<>
|
|
<>
|