魏超 5 vuotta sitten
vanhempi
commit
76cd6871e2

+ 16
- 0
src/pages/customer/customerlist/index.jsx Näytä tiedosto

97
     e.preventDefault();
97
     e.preventDefault();
98
     props.form.validateFields((err, values) => {
98
     props.form.validateFields((err, values) => {
99
       if (!err) {
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
         getList({ pageNum: 1, pageSize: 10, customerType, ...values })
106
         getList({ pageNum: 1, pageSize: 10, customerType, ...values })
101
       }
107
       }
102
     });
108
     });
448
             <Input placeholder="置业顾问电话" />,
454
             <Input placeholder="置业顾问电话" />,
449
           )}
455
           )}
450
         </Form.Item>}
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
         <Form.Item>
467
         <Form.Item>
452
           {getFieldDecorator('sceneType')(
468
           {getFieldDecorator('sceneType')(
453
             <WxDictSelect />,
469
             <WxDictSelect />,

+ 6
- 0
src/pages/staff/list/StaffList.jsx Näytä tiedosto

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