瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/estateagents/pc-channel

zhoulisen 5 年之前
父節點
當前提交
113f151d02
共有 2 個檔案被更改,包括 11 行新增2 行删除
  1. 1
    1
      src/pages/sample/h5/components/SelectContact.jsx
  2. 10
    1
      src/pages/sample/h5/index.jsx

+ 1
- 1
src/pages/sample/h5/components/SelectContact.jsx 查看文件

@@ -60,7 +60,7 @@ const SelectContact = props => {
60 60
   }
61 61
 
62 62
   const changePageNum = (pageNumber) => {
63
-    getList({ pageNum: pageNumber, pageSize: 10 })
63
+    getList({ pageNum: pageNumber, pageSize: 10, ...props.form.getFieldsValue() })
64 64
   }
65 65
 
66 66
   const removeSelected = (val) => {

+ 10
- 1
src/pages/sample/h5/index.jsx 查看文件

@@ -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