傅行帆 5 vuotta sitten
vanhempi
commit
77bdb361b9
1 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  1. 10
    1
      src/pages/sample/h5/index.jsx

+ 10
- 1
src/pages/sample/h5/index.jsx Näytä tiedosto

@@ -51,7 +51,16 @@ function header(props) {
51 51
   }
52 52
 
53 53
   const changePageNum = (pageNumber) => {
54
-    getList({ pageNum: pageNumber, pageSize: 12 })
54
+    let {createDate, ...submitValue} = props.form.getFieldsValue()
55
+    if(null != createDate && createDate.length > 0){
56
+      const [startCreateDate, endCreateDate] = createDate
57
+      submitValue.startCreateDate = moment(startCreateDate).format('YYYY-MM-DD');
58
+      submitValue.endCreateDate = moment(endCreateDate).format('YYYY-MM-DD');
59
+    }else{
60
+      submitValue.startCreateDate = null
61
+      submitValue.endCreateDate = null
62
+    }
63
+    getList({ pageNum: pageNumber, pageSize: 12, ...submitValue })
55 64
   }
56 65
 
57 66