傅行帆 5 年前
父节点
当前提交
b2b35d82e5
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/pages/record/share/countList.jsx

+ 3
- 3
src/pages/record/share/countList.jsx 查看文件

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