魏超 5 years ago
parent
commit
76cd6871e2
2 changed files with 22 additions and 0 deletions
  1. 16
    0
      src/pages/customer/customerlist/index.jsx
  2. 6
    0
      src/pages/staff/list/StaffList.jsx

+ 16
- 0
src/pages/customer/customerlist/index.jsx View File

@@ -97,6 +97,12 @@ function body(props) {
97 97
     e.preventDefault();
98 98
     props.form.validateFields((err, values) => {
99 99
       if (!err) {
100
+        if (values.startCreateDate){
101
+          values.startCreateDate = moment(values.startCreateDate).format('YYYY-MM-DD HH:mm:ss');
102
+        }
103
+        if (values.endCreateDate){
104
+          values.endCreateDate = moment(values.endCreateDate).format('YYYY-MM-DD HH:mm:ss');
105
+        }
100 106
         getList({ pageNum: 1, pageSize: 10, customerType, ...values })
101 107
       }
102 108
     });
@@ -448,6 +454,16 @@ function body(props) {
448 454
             <Input placeholder="置业顾问电话" />,
449 455
           )}
450 456
         </Form.Item>}
457
+        <Form.Item>
458
+          {getFieldDecorator('startCreateDate')(
459
+            <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="注册开始时间"/>,
460
+          )}
461
+        </Form.Item>
462
+        <Form.Item>
463
+          {getFieldDecorator('endCreateDate')(
464
+            <DatePicker showTime={{ format: 'HH:mm:ss' }} placeholder="注册结束时间"/>,
465
+          )}
466
+        </Form.Item>
451 467
         <Form.Item>
452 468
           {getFieldDecorator('sceneType')(
453 469
             <WxDictSelect />,

+ 6
- 0
src/pages/staff/list/StaffList.jsx View File

@@ -8,6 +8,7 @@ import AuthButton from '../../../components/AuthButton';
8 8
 import apis from '../../../services/apis';
9 9
 import request from '../../../utils/request'
10 10
 import Styles from './style.less';
11
+import BuildingSelect from '@/components/SelectButton/BuildSelect';
11 12
 
12 13
 const { Meta } = Card;
13 14
 const { Option } = Select;
@@ -176,6 +177,11 @@ const header = props => {
176 177
 
177 178
     <>
178 179
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
180
+        <Form.Item>
181
+          {getFieldDecorator('buildingId')(
182
+            <BuildingSelect />
183
+          )}
184
+        </Form.Item>
179 185
         <Form.Item>
180 186
           {getFieldDecorator('userName')(
181 187
             <Input