Преглед изворни кода

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)