傅行帆 5 lat temu
rodzic
commit
b2b35d82e5
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      src/pages/record/share/countList.jsx

+ 3
- 3
src/pages/record/share/countList.jsx Wyświetl plik

17
 
17
 
18
 function record(props) {
18
 function record(props) {
19
   const { getFieldDecorator } = props.form
19
   const { getFieldDecorator } = props.form
20
-
20
+  
21
   // 获取初始化数据
21
   // 获取初始化数据
22
   const [ data, setData ] = useState({})
22
   const [ data, setData ] = useState({})
23
 
23
 
138
           </Form.Item>
138
           </Form.Item>
139
           <Form.Item>
139
           <Form.Item>
140
             <span style={{marginRight:'10px'}}>分享时间:</span>
140
             <span style={{marginRight:'10px'}}>分享时间:</span>
141
-                {getFieldDecorator('shareTime')(
142
-                  <RangePicker placeholder={['开始时间','结束时间']}/>
141
+                {getFieldDecorator('shareTime',{initialValue : [moment(),moment()],})(
142
+                  <RangePicker placeholder={['开始时间','结束时间']} />
143
                 )}
143
                 )}
144
           </Form.Item>
144
           </Form.Item>
145
           <Form.Item style={{position:'absolute',right:'38px'}}>
145
           <Form.Item style={{position:'absolute',right:'38px'}}>