瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

xujing 5 年之前
父節點
當前提交
8fda988318
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      src/pages/customer/customerlist/index.jsx

+ 6
- 1
src/pages/customer/customerlist/index.jsx 查看文件

@@ -99,7 +99,6 @@ function body(props) {
99 99
 
100 100
   function getList(params) {
101 101
     // 网路请求
102
-    console.log(params, '111111111111111')
103 102
     if (params.startCreateDate) {
104 103
       params.startCreateDate = moment(params.startCreateDate).format('YYYY-MM-DD HH:mm:ss');
105 104
     }
@@ -337,6 +336,12 @@ function body(props) {
337 336
   function exportCustomer() {
338 337
     setLoadingStatus(true)
339 338
     const fieldsValue = getFieldsValue()
339
+    if (fieldsValue.startCreateDate) {
340
+      fieldsValue.startCreateDate = moment(fieldsValue.startCreateDate).format('YYYY-MM-DD HH:mm:ss');
341
+    }
342
+    if (fieldsValue.endCreateDate) {
343
+      fieldsValue.endCreateDate = moment(fieldsValue.endCreateDate).format('YYYY-MM-DD HH:mm:ss');
344
+    }
340 345
     request({ ...apis.customer.customerRecommendExport, responseType: 'blob', params: { ...fieldsValue, customerType } })
341 346
       .then(response => {
342 347
         download(response)