Browse Source

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

魏熙美 5 years ago
parent
commit
bbb297d3bb

+ 40
- 40
src/pages/building/list/add/components/base.jsx View File

98
 
98
 
99
   return (
99
   return (
100
         <Form {...formItemLayout} onSubmit={handleSubmit}>
100
         <Form {...formItemLayout} onSubmit={handleSubmit}>
101
-          <Form.Item label="项目Id" hasFeedback style={{ display: 'none' }}>
101
+          <Form.Item label="项目Id"  style={{ display: 'none' }}>
102
             {getFieldDecorator('buildingId')(<Input disabled />)}
102
             {getFieldDecorator('buildingId')(<Input disabled />)}
103
           </Form.Item>
103
           </Form.Item>
104
-          <Form.Item label="楼盘编号" hasFeedback>
104
+          <Form.Item label="楼盘编号" >
105
             {getFieldDecorator('code')(<Input />)}
105
             {getFieldDecorator('code')(<Input />)}
106
           </Form.Item>
106
           </Form.Item>
107
-          <Form.Item label="楼盘名称" hasFeedback>
107
+          <Form.Item label="楼盘名称" >
108
             {getFieldDecorator('buildingName')(<Input />)}
108
             {getFieldDecorator('buildingName')(<Input />)}
109
           </Form.Item>
109
           </Form.Item>
110
-          <Form.Item label="别名" hasFeedback>
110
+          <Form.Item label="别名" >
111
             {getFieldDecorator('name')(<Input />)}
111
             {getFieldDecorator('name')(<Input />)}
112
           </Form.Item>
112
           </Form.Item>
113
           <Form.Item label="项目类型">
113
           <Form.Item label="项目类型">
114
             {getFieldDecorator('buildingProjectType')(<BudildingProjectType />)}
114
             {getFieldDecorator('buildingProjectType')(<BudildingProjectType />)}
115
           </Form.Item>
115
           </Form.Item>
116
-          <Form.Item label="均价" hasFeedback>
116
+          <Form.Item label="均价" >
117
             {getFieldDecorator('price')(<Input type="number" style={{ width: '210px' }}/>)}m²/元
117
             {getFieldDecorator('price')(<Input type="number" style={{ width: '210px' }}/>)}m²/元
118
           </Form.Item>
118
           </Form.Item>
119
-          <Form.Item label="开盘时间"  hasFeedback>
119
+          <Form.Item label="开盘时间"  >
120
             {getFieldDecorator('openingDate')(<DatePicker format="YYYY/MM/DD" />)}
120
             {getFieldDecorator('openingDate')(<DatePicker format="YYYY/MM/DD" />)}
121
           </Form.Item>
121
           </Form.Item>
122
-          <Form.Item label="电话" hasFeedback>
122
+          <Form.Item label="电话" >
123
             {getFieldDecorator('tel', {
123
             {getFieldDecorator('tel', {
124
               initialValue: '',
124
               initialValue: '',
125
               rules: [
125
               rules: [
126
                   {
126
                   {
127
-                      pattern: new RegExp('^1[0-9]{10}$'),
127
+                      pattern: new RegExp('^[0-9]*$'),
128
                       message: '请输入正确的电话号码',
128
                       message: '请输入正确的电话号码',
129
                   },
129
                   },
130
               ],
130
               ],
131
             })(<Input />)}
131
             })(<Input />)}
132
           </Form.Item>
132
           </Form.Item>
133
-          <Form.Item label="项目动态" hasFeedback>
133
+          <Form.Item label="项目动态" >
134
             {getFieldDecorator('dynamic')(<Input />)}
134
             {getFieldDecorator('dynamic')(<Input />)}
135
           </Form.Item>
135
           </Form.Item>
136
-          <Form.Item label="物业类型" hasFeedback>
136
+          <Form.Item label="物业类型" >
137
             {getFieldDecorator('propertyType')(
137
             {getFieldDecorator('propertyType')(
138
               // <Select mode="multiple" placeholder="物业类型" style={{ width: '1016px' }}>
138
               // <Select mode="multiple" placeholder="物业类型" style={{ width: '1016px' }}>
139
               //   <Option value="未知">未知</Option>
139
               //   <Option value="未知">未知</Option>
141
               <Input />,
141
               <Input />,
142
             )}
142
             )}
143
           </Form.Item>
143
           </Form.Item>
144
-          <Form.Item label="销售状态" hasFeedback>
144
+          <Form.Item label="销售状态" >
145
             {getFieldDecorator('marketStatus')(
145
             {getFieldDecorator('marketStatus')(
146
               <Select placeholder="销售状态" style={{ width: '1016px' }}>
146
               <Select placeholder="销售状态" style={{ width: '1016px' }}>
147
                 <Option value="待定">待定</Option>
147
                 <Option value="待定">待定</Option>
150
               </Select>,
150
               </Select>,
151
             )}
151
             )}
152
           </Form.Item>
152
           </Form.Item>
153
-          <Form.Item label="项目标签" hasFeedback>
153
+          <Form.Item label="项目标签" >
154
             {getFieldDecorator('tag')(
154
             {getFieldDecorator('tag')(
155
               <Select mode="tags" placeholder="输入后选中" style={{ width: '1016px' }}>
155
               <Select mode="tags" placeholder="输入后选中" style={{ width: '1016px' }}>
156
                 
156
                 
157
               </Select>,
157
               </Select>,
158
             )}
158
             )}
159
           </Form.Item>
159
           </Form.Item>
160
-          <Form.Item label="项目主图" hasFeedback>
160
+          <Form.Item label="项目主图" >
161
             {getFieldDecorator('avatarImage')(
161
             {getFieldDecorator('avatarImage')(
162
               <ImageListUpload />,
162
               <ImageListUpload />,
163
             )}
163
             )}
164
           </Form.Item>
164
           </Form.Item>
165
-          <Form.Item label="地址图片" hasFeedback>
165
+          <Form.Item label="地址图片" >
166
             {getFieldDecorator('mapImg')(
166
             {getFieldDecorator('mapImg')(
167
               <ImageUpload />,
167
               <ImageUpload />,
168
             )}
168
             )}
169
           </Form.Item>
169
           </Form.Item>
170
-          <Form.Item label="海报底图" hasFeedback>
170
+          <Form.Item label="海报底图" >
171
             {getFieldDecorator('poster')(
171
             {getFieldDecorator('poster')(
172
               <ImageUpload />,
172
               <ImageUpload />,
173
             )}
173
             )}
174
           </Form.Item>
174
           </Form.Item>
175
-          <Form.Item label="排序" hasFeedback>
175
+          <Form.Item label="排序" >
176
             {getFieldDecorator('orderNo')(<Input />)}
176
             {getFieldDecorator('orderNo')(<Input />)}
177
           </Form.Item>
177
           </Form.Item>
178
-          <Form.Item label="优惠信息" hasFeedback>
178
+          <Form.Item label="优惠信息" >
179
             {getFieldDecorator('discount')(<Input />)}
179
             {getFieldDecorator('discount')(<Input />)}
180
           </Form.Item>
180
           </Form.Item>
181
-          <Form.Item label="首页推荐" hasFeedback>
181
+          <Form.Item label="首页推荐" >
182
             {getFieldDecorator('isMain')(
182
             {getFieldDecorator('isMain')(
183
             <Radio.Group>
183
             <Radio.Group>
184
               <Radio value={1}>是</Radio>
184
               <Radio value={1}>是</Radio>
186
             </Radio.Group>,
186
             </Radio.Group>,
187
             )}
187
             )}
188
           </Form.Item>
188
           </Form.Item>
189
-          <Form.Item label="所在城市" hasFeedback>
189
+          <Form.Item label="所在城市" >
190
             {getFieldDecorator('cityId')(
190
             {getFieldDecorator('cityId')(
191
               <SelectCity />,
191
               <SelectCity />,
192
             )}
192
             )}
193
           </Form.Item>
193
           </Form.Item>
194
-          <Form.Item label="楼盘区域" hasFeedback>
194
+          <Form.Item label="楼盘区域" >
195
             {getFieldDecorator('buildingArea')(<Input />)}
195
             {getFieldDecorator('buildingArea')(<Input />)}
196
           </Form.Item>
196
           </Form.Item>
197
-          <Form.Item label="项目地址" hasFeedback>
197
+          <Form.Item label="项目地址" >
198
             {getFieldDecorator('address')(<Input />)}
198
             {getFieldDecorator('address')(<Input />)}
199
           </Form.Item>
199
           </Form.Item>
200
-          <Form.Item label="项目坐标" hasFeedback>
200
+          <Form.Item label="项目坐标" >
201
             {getFieldDecorator('coordinate')(<Input disabled />)}
201
             {getFieldDecorator('coordinate')(<Input disabled />)}
202
           </Form.Item>
202
           </Form.Item>
203
-          <Form.Item label="地图位置" hasFeedback>
203
+          <Form.Item label="地图位置" >
204
             {getFieldDecorator('coordinate')(<Amap />)}
204
             {getFieldDecorator('coordinate')(<Amap />)}
205
           </Form.Item>
205
           </Form.Item>
206
-          <Form.Item label="周边交通" hasFeedback>
206
+          <Form.Item label="周边交通" >
207
             {getFieldDecorator('buildingTransport')(
207
             {getFieldDecorator('buildingTransport')(
208
               <TagGroup />,
208
               <TagGroup />,
209
             )}
209
             )}
210
           </Form.Item>
210
           </Form.Item>
211
-          <Form.Item label="周边商业" hasFeedback>
211
+          <Form.Item label="周边商业" >
212
             {getFieldDecorator('buildingMall')(
212
             {getFieldDecorator('buildingMall')(
213
               <TagGroup />,
213
               <TagGroup />,
214
             )}
214
             )}
215
           </Form.Item>
215
           </Form.Item>
216
-          <Form.Item label="周边学校" hasFeedback>
216
+          <Form.Item label="周边学校" >
217
             {getFieldDecorator('buildingEdu')(
217
             {getFieldDecorator('buildingEdu')(
218
               <TagGroup />,
218
               <TagGroup />,
219
             )}
219
             )}
220
           </Form.Item>
220
           </Form.Item>
221
-          <Form.Item label="周边医院" hasFeedback>
221
+          <Form.Item label="周边医院" >
222
             {getFieldDecorator('buildingHospital')(
222
             {getFieldDecorator('buildingHospital')(
223
               <TagGroup />,
223
               <TagGroup />,
224
             )}
224
             )}
225
           </Form.Item>
225
           </Form.Item>
226
-          <Form.Item label="周边银行" hasFeedback>
226
+          <Form.Item label="周边银行" >
227
             {getFieldDecorator('buildingBank')(
227
             {getFieldDecorator('buildingBank')(
228
               <TagGroup />,
228
               <TagGroup />,
229
             )}
229
             )}
230
           </Form.Item>
230
           </Form.Item>
231
-          <Form.Item label="周边餐饮" hasFeedback>
231
+          <Form.Item label="周边餐饮" >
232
             {getFieldDecorator('buildingRestaurant')(
232
             {getFieldDecorator('buildingRestaurant')(
233
               <TagGroup />,
233
               <TagGroup />,
234
             )}
234
             )}
235
           </Form.Item>
235
           </Form.Item>
236
-          <Form.Item label="绿化率" hasFeedback>
236
+          <Form.Item label="绿化率" >
237
             {getFieldDecorator('greeningRate')(<Input />)}
237
             {getFieldDecorator('greeningRate')(<Input />)}
238
           </Form.Item>
238
           </Form.Item>
239
-          <Form.Item label="容积率" hasFeedback>
239
+          <Form.Item label="容积率" >
240
             {getFieldDecorator('volumeRate')(<Input />)}
240
             {getFieldDecorator('volumeRate')(<Input />)}
241
           </Form.Item>
241
           </Form.Item>
242
-          <Form.Item label="车位比" hasFeedback>
242
+          <Form.Item label="车位比" >
243
             {getFieldDecorator('parkingRate')(<Input />)}
243
             {getFieldDecorator('parkingRate')(<Input />)}
244
           </Form.Item>
244
           </Form.Item>
245
-          <Form.Item label="规划户数" hasFeedback>
245
+          <Form.Item label="规划户数" >
246
             {getFieldDecorator('familyNum')(<InputNumber />)}
246
             {getFieldDecorator('familyNum')(<InputNumber />)}
247
           </Form.Item>
247
           </Form.Item>
248
-          <Form.Item label="物业公司" hasFeedback>
248
+          <Form.Item label="物业公司" >
249
             {getFieldDecorator('serviceCompany')(<Input />)}
249
             {getFieldDecorator('serviceCompany')(<Input />)}
250
           </Form.Item>
250
           </Form.Item>
251
-          <Form.Item label="物业费" hasFeedback>
251
+          <Form.Item label="物业费" >
252
             {getFieldDecorator('serviceFee')(<Input />)}
252
             {getFieldDecorator('serviceFee')(<Input />)}
253
           </Form.Item>
253
           </Form.Item>
254
-          <Form.Item label="装修标准" hasFeedback>
254
+          <Form.Item label="装修标准" >
255
             {getFieldDecorator('decoration')(<Input />)}
255
             {getFieldDecorator('decoration')(<Input />)}
256
           </Form.Item>
256
           </Form.Item>
257
-          <Form.Item label="交房时间" hasFeedback>
257
+          <Form.Item label="交房时间" >
258
             {getFieldDecorator('receivedDate')(<DatePicker />)}
258
             {getFieldDecorator('receivedDate')(<DatePicker />)}
259
           </Form.Item>
259
           </Form.Item>
260
-          <Form.Item label="产权年限" hasFeedback>
260
+          <Form.Item label="产权年限" >
261
             {getFieldDecorator('rightsYear')(<InputNumber />)}
261
             {getFieldDecorator('rightsYear')(<InputNumber />)}
262
           </Form.Item>
262
           </Form.Item>
263
-          <Form.Item label="预售许可证" hasFeedback>
263
+          <Form.Item label="预售许可证" >
264
             {getFieldDecorator('preSalePermit')(
264
             {getFieldDecorator('preSalePermit')(
265
               <ImageUpload />,
265
               <ImageUpload />,
266
             )}
266
             )}
267
           </Form.Item>
267
           </Form.Item>
268
-          <Form.Item label="项目备注" hasFeedback>
268
+          <Form.Item label="项目备注" >
269
             {getFieldDecorator('remark')(
269
             {getFieldDecorator('remark')(
270
               <Wangedit />,
270
               <Wangedit />,
271
             )}
271
             )}

+ 2
- 2
src/pages/building/list/add/components/poster.jsx View File

100
   return <div>
100
   return <div>
101
     <div style={{ display: 'flex' }}>
101
     <div style={{ display: 'flex' }}>
102
       <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
102
       <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
103
-        <div style={{ width: '375px', height: '785px', backgroundColor: '#fff', boxShadow: '0px 0px 16px 6px rgba(0,0,0,0.15)', position: 'relative', margin: '0 auto' }}>
103
+        <div style={{ width: '375px', height: '700px', backgroundColor: '#fff', boxShadow: '0px 0px 16px 6px rgba(0,0,0,0.15)', position: 'relative', margin: '0 auto' }}>
104
           <img style={{ width: '100%', height: '300px' }} src={imgValue || (building.buildingImg[0].url || poster1)} alt="" />
104
           <img style={{ width: '100%', height: '300px' }} src={imgValue || (building.buildingImg[0].url || poster1)} alt="" />
105
 
105
 
106
           <p className={Styles.tagLabel}>
106
           <p className={Styles.tagLabel}>
121
           <img src={yinhao} style={{ width: '30px', marginLeft: '22px' }} alt="" />
121
           <img src={yinhao} style={{ width: '30px', marginLeft: '22px' }} alt="" />
122
           <p style={{
122
           <p style={{
123
             margin: '16px 20px 28px 20px', fontSize: '17px', color: '#999',
123
             margin: '16px 20px 28px 20px', fontSize: '17px', color: '#999',
124
-            display: '-webkit-box', lineClamp: '3', height: '76px',
124
+            display: '-webkit-box', lineClamp: '3', height: '72px',
125
             WebkitLineClamp: '3',
125
             WebkitLineClamp: '3',
126
             WebkitBoxOrient: 'vertical',
126
             WebkitBoxOrient: 'vertical',
127
             overflow: 'hidden',
127
             overflow: 'hidden',

+ 1
- 1
src/pages/building/list/index.jsx View File

201
         console.log('提交数据: ', values)
201
         console.log('提交数据: ', values)
202
         const { startDate } = values
202
         const { startDate } = values
203
         if (values.startDate !== undefined) {
203
         if (values.startDate !== undefined) {
204
-          alert(111)
204
+         
205
           values.startDate = `${moment(startDate).format('YYYY-MM-DDT00:00:00.000')}Z`
205
           values.startDate = `${moment(startDate).format('YYYY-MM-DDT00:00:00.000')}Z`
206
         }
206
         }
207
         getList({ pageNum: 1, pageSize: 9, ...values })
207
         getList({ pageNum: 1, pageSize: 9, ...values })

+ 1
- 1
src/pages/channel/InviteClients.jsx View File

38
     dataIndex: 'sex',
38
     dataIndex: 'sex',
39
     key: 'sex',
39
     key: 'sex',
40
     align: 'center',
40
     align: 'center',
41
-    render: (text, record) => <a style={ { color: '#66B3FF' } } >{ record.sex === 1 ? '男' : '女' }</a>,
41
+    render: (text, record) => <a style={ { color: '#66B3FF' } } >{ record.sex === 1 ? '男' : (record.sex === 2 ? '女':'') }</a>,
42
   },
42
   },
43
 ];
43
 ];
44
 const header = props => {
44
 const header = props => {

+ 1
- 1
src/pages/channel/brokerList.jsx View File

172
       })(<Input/>)}
172
       })(<Input/>)}
173
     </Form.Item>
173
     </Form.Item>
174
     <Form.Item >
174
     <Form.Item >
175
-   <Button type="primary" htmlType="submit" >保存</Button>
175
+   <Button type="primary" htmlType="submit" >查询</Button>
176
      <Button onClick={handleReset} style={{ marginLeft: 18 }}>重置</Button>
176
      <Button onClick={handleReset} style={{ marginLeft: 18 }}>重置</Button>
177
     </Form.Item>
177
     </Form.Item>
178
    </Form>
178
    </Form>

+ 1
- 1
src/pages/channel/channelList.jsx View File

73
     align: 'center',
73
     align: 'center',
74
   },
74
   },
75
   {
75
   {
76
-    title: '邀请经人',
76
+    title: '邀请经人',
77
     dataIndex: 'inviteCount',
77
     dataIndex: 'inviteCount',
78
     key: 'inviteCount',
78
     key: 'inviteCount',
79
     align: 'center',
79
     align: 'center',

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

149
       title: '头像',
149
       title: '头像',
150
       dataIndex: 'picture',
150
       dataIndex: 'picture',
151
       key: 'picture',
151
       key: 'picture',
152
+      align: 'center',
152
       render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
153
       render: (_, record) => <Avatar shape="square" src={customerType === 'private' ? record.picture : record.avatarurl} size={64} icon="user" />,
153
     },
154
     },
154
     {
155
     {
155
       title: '姓名',
156
       title: '姓名',
156
       dataIndex: 'name',
157
       dataIndex: 'name',
157
       key: 'name',
158
       key: 'name',
159
+      align: 'center',
158
       // eslint-disable-next-line no-nested-ternary
160
       // eslint-disable-next-line no-nested-ternary
159
       render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
161
       render: (_, record) => <><span>{customerType === 'private' ? record.name : record.nickname}</span></>,
160
     },
162
     },
162
       title: '电话',
164
       title: '电话',
163
       dataIndex: 'phone',
165
       dataIndex: 'phone',
164
       key: 'phone',
166
       key: 'phone',
167
+      align: 'center',
165
     },
168
     },
166
     {
169
     {
167
       title: '性别',
170
       title: '性别',
168
       dataIndex: 'sex',
171
       dataIndex: 'sex',
169
       key: 'sex',
172
       key: 'sex',
173
+      align: 'center',
170
       // eslint-disable-next-line no-nested-ternary
174
       // eslint-disable-next-line no-nested-ternary
171
       render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
175
       render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
172
     },
176
     },
174
       title: '置业顾问',
178
       title: '置业顾问',
175
       dataIndex: 'consultantName',
179
       dataIndex: 'consultantName',
176
       key: 'consultantName',
180
       key: 'consultantName',
181
+      align: 'center',
177
       // eslint-disable-next-line no-nested-ternary
182
       // eslint-disable-next-line no-nested-ternary
178
       render: (_, record) => (
183
       render: (_, record) => (
179
         <>
184
         <>
187
       title: '客户状态',
192
       title: '客户状态',
188
       dataIndex: 'reportRecommendStatus',
193
       dataIndex: 'reportRecommendStatus',
189
       key: 'reportRecommendStatus',
194
       key: 'reportRecommendStatus',
195
+      align: 'center',
190
       // eslint-disable-next-line no-nested-ternary
196
       // eslint-disable-next-line no-nested-ternary
191
       render: (_, record) => <><span>{record.reportRecommendStatus === 0 ? '未报备' : record.reportRecommendStatus === 1 ? '报备' : record.reportRecommendStatus === 2 ? '推荐' : ''}</span></>,
197
       render: (_, record) => <><span>{record.reportRecommendStatus === 0 ? '未报备' : record.reportRecommendStatus === 1 ? '报备' : record.reportRecommendStatus === 2 ? '推荐' : ''}</span></>,
192
     },
198
     },
194
       title: '操作',
200
       title: '操作',
195
       dataIndex: 'customerId',
201
       dataIndex: 'customerId',
196
       key: 'customerId',
202
       key: 'customerId',
203
+      align: 'center',
197
       // eslint-disable-next-line no-nested-ternary
204
       // eslint-disable-next-line no-nested-ternary
198
       render: (_, record) => (
205
       render: (_, record) => (
199
         <>
206
         <>

+ 64
- 56
src/pages/customer/report/index.jsx View File

67
   // 分页
67
   // 分页
68
   function onChange(pageNum) {
68
   function onChange(pageNum) {
69
     // eslint-disable-next-line react-hooks/rules-of-hooks
69
     // eslint-disable-next-line react-hooks/rules-of-hooks
70
-      getList({ pageNumber: pageNum, pageSize: 9 })
70
+    getList({ pageNumber: pageNum, pageSize: 9 })
71
   }
71
   }
72
 
72
 
73
- /**
74
-   * 重置搜索
75
-   */
73
+  /**
74
+    * 重置搜索
75
+    */
76
   function handleReset() {
76
   function handleReset() {
77
     props.form.resetFields();
77
     props.form.resetFields();
78
   }
78
   }
79
 
79
 
80
   function exportReport() {
80
   function exportReport() {
81
     request({ ...apis.customer.customerRecommendReportExport, responseType: 'blob' })
81
     request({ ...apis.customer.customerRecommendReportExport, responseType: 'blob' })
82
-    .then(response => {
83
-      download(response)
84
-    })
82
+      .then(response => {
83
+        download(response)
84
+      })
85
   }
85
   }
86
 
86
 
87
   function download(data) {
87
   function download(data) {
119
       dataIndex: 'sex',
119
       dataIndex: 'sex',
120
       key: 'sex',
120
       key: 'sex',
121
       // eslint-disable-next-line no-nested-ternary
121
       // eslint-disable-next-line no-nested-ternary
122
-      render: (_, record) => <><span>{ record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知' }</span></>,
122
+      render: (_, record) => <><span>{record.sex === 1 ? '男' : record.sex === 2 ? '女' : '未知'}</span></>,
123
     },
123
     },
124
     {
124
     {
125
       title: '意向项目',
125
       title: '意向项目',
140
 
140
 
141
   return (
141
   return (
142
     <>
142
     <>
143
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} style={{display:'flex'}}>
144
-        <Form.Item>
145
-          {getFieldDecorator('name')(
146
-            <Input
147
-              prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
148
-              placeholder="姓名"
149
-            />,
150
-          )}
151
-        </Form.Item>
152
-        <Form.Item>
153
-          {getFieldDecorator('tel')(
154
-            <Input
155
-              prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
156
-              placeholder="电话"
157
-            />,
158
-          )}
159
-        </Form.Item>
160
-        <Form.Item>
161
-          {getFieldDecorator('consultName')(
162
-            <Input placeholder="置业顾问" />,
163
-          )}
164
-        </Form.Item>
165
-        <Form.Item>
166
-          {getFieldDecorator('consultTel')(
167
-            <Input placeholder="置业顾问电话" />,
168
-          )}
169
-        </Form.Item>
170
-        <Form.Item>
171
-          {getFieldDecorator('sex')(
172
-            <Select style={{ width: '180px' }} placeholder="性别" onChange={handleSelectChange}>
173
-              <Option value="1">男</Option>
174
-              <Option value="0">女</Option>
175
-            </Select>,
176
-          )}
177
-        </Form.Item>
178
-        <Form.Item>
179
-          {getFieldDecorator('buildingId')(
180
-            <BuildSelect />,
181
-          )}
182
-        </Form.Item>
183
-        <Form.Item style={{ position:'absolute',right:'38px' }}>
184
-            <Button type="primary" htmlType="submit">
185
-              搜索
143
+      <Form layout="inline" onSubmit={e => handleSubmit(e, props)} >
144
+        <Row>
145
+          <Col span={21}>
146
+            <Form.Item>
147
+              {getFieldDecorator('name')(
148
+                <Input
149
+                  prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
150
+                  placeholder="姓名"
151
+                />,
152
+              )}
153
+            </Form.Item>
154
+            <Form.Item>
155
+              {getFieldDecorator('tel')(
156
+                <Input
157
+                  prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
158
+                  placeholder="电话"
159
+                />,
160
+              )}
161
+            </Form.Item>
162
+            <Form.Item>
163
+              {getFieldDecorator('consultName')(
164
+                <Input placeholder="置业顾问" />,
165
+              )}
166
+            </Form.Item>
167
+            <Form.Item>
168
+              {getFieldDecorator('consultTel')(
169
+                <Input placeholder="置业顾问电话" />,
170
+              )}
171
+            </Form.Item>
172
+            <Form.Item>
173
+              {getFieldDecorator('sex')(
174
+                <Select style={{ width: '180px' }} placeholder="性别" onChange={handleSelectChange}>
175
+                  <Option value="1">男</Option>
176
+                  <Option value="0">女</Option>
177
+                </Select>,
178
+              )}
179
+            </Form.Item>
180
+            <Form.Item>
181
+              {getFieldDecorator('buildingId')(
182
+                <BuildSelect />,
183
+              )}
184
+            </Form.Item>
185
+          </Col>
186
+          <div style={{minWidth:'150px',position: 'absolute', right: '-12px', }}>
187
+            <Form.Item >
188
+              <Button type="primary" htmlType="submit">
189
+                搜索
186
             </Button>
190
             </Button>
187
-            <Button style={{ marginLeft: 8 }} onClick={handleReset}>
188
-              重置
191
+              <Button style={{ marginLeft: 8 }} onClick={handleReset}>
192
+                重置
189
             </Button>
193
             </Button>
190
-        </Form.Item>
194
+            </Form.Item>
195
+          </div>
196
+        </Row>
197
+        <div >
198
+        </div>
191
       </Form>
199
       </Form>
192
-      <Button type="primary" onClick={() => exportReport()} style={{ float:'right',margin:'20px 0' }}>
200
+      <Button type="primary" onClick={() => exportReport()} style={{ float: 'right', margin: '20px 0' }}>
193
         导出
201
         导出
194
       </Button>
202
       </Button>
195
-      <Table rowKey="report" style={{marginTop:'40px'}} dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
203
+      <Table rowKey="report" style={{ marginTop: '40px' }} dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
196
     </>
204
     </>
197
   );
205
   );
198
 }
206
 }

+ 2
- 2
src/pages/news/list/editNewsList.jsx View File

98
       },
98
       },
99
       {
99
       {
100
         label: '资讯详情',
100
         label: '资讯详情',
101
-        name: 'desc',
101
+        name: 'newsDetail',
102
         render: <Wangedit />,
102
         render: <Wangedit />,
103
-        value: dynamicData.desc,
103
+        value: dynamicData.newsDetail,
104
       },
104
       },
105
     ]
105
     ]
106
   
106
   

+ 1
- 2
src/pages/staff/list/StaffList.jsx View File

65
 
65
 
66
     <Card className={Styles.card}>
66
     <Card className={Styles.card}>
67
       <div>
67
       <div>
68
-
69
         <Avatar src={data.avatar} style={{ width: '0.48rem', height: '0.48rem' }} />
68
         <Avatar src={data.avatar} style={{ width: '0.48rem', height: '0.48rem' }} />
70
-        <Button type="link" style={{ marginLeft: '0.04rem', color: '#FF925C', fontSize: '0.11rem' }} onClick={toEditStaff(data.userId)}>
69
+        <Button type="link" style={{color: '#FF925C', fontSize: '0.11rem',position: 'absolute', top: '40px', left: '0.56rem' }} onClick={toEditStaff(data.userId)}>
71
           编辑
70
           编辑
72
                 <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '0.04rem' }} />
71
                 <Icon type="form" style={{ color: '#C0C4CC', marginLeft: '0.04rem' }} />
73
         </Button>
72
         </Button>

+ 33
- 33
src/pages/staff/list/editStaff.jsx View File

29
   const [roleData, setRoleData] = useState([])
29
   const [roleData, setRoleData] = useState([])
30
 
30
 
31
   const getTagList = () => {
31
   const getTagList = () => {
32
-    request({ ...apis.staff.taTags, params: {pageNum:1,pageSize:999} }).then((data) => {
32
+    request({ ...apis.staff.taTags, params: { pageNum: 1, pageSize: 999 } }).then((data) => {
33
       setTagData(data.records)
33
       setTagData(data.records)
34
     })
34
     })
35
   }
35
   }
36
 
36
 
37
   const getRoleList = () => {
37
   const getRoleList = () => {
38
-    request({ ...apis.role.getRoleList, params: {pageNum:1,pageSize:999} }).then((data) => {
38
+    request({ ...apis.role.getRoleList, params: { pageNum: 1, pageSize: 999 } }).then((data) => {
39
       console.log(data)
39
       console.log(data)
40
       setRoleData(data.records)
40
       setRoleData(data.records)
41
     })
41
     })
43
 
43
 
44
   // 查询列表
44
   // 查询列表
45
   const getUserData = (userId) => {
45
   const getUserData = (userId) => {
46
-    request({ ...apis.staff.getTaUser, urlData: {id:userId} }).then((data) => {
47
-      console.log(data,"tauser")
46
+    request({ ...apis.staff.getTaUser, urlData: { id: userId } }).then((data) => {
47
+      console.log(data, "tauser")
48
       setUserData(data)
48
       setUserData(data)
49
     })
49
     })
50
   }
50
   }
62
   }
62
   }
63
 
63
 
64
   const handleSubmit = val => {
64
   const handleSubmit = val => {
65
-    if(userId){
66
-      request({ ...apis.staff.updateTaUser, urlData: {id:userId},data: val, }).then((data) => {
67
-        console.log(data,"tauser")
65
+    if (userId) {
66
+      request({ ...apis.staff.updateTaUser, urlData: { id: userId }, data: val, }).then((data) => {
67
+        console.log(data, "tauser")
68
         message.info("保存成功")
68
         message.info("保存成功")
69
         router.go(-1)
69
         router.go(-1)
70
       }).catch(error => {
70
       }).catch(error => {
71
         // message.info(error.message)
71
         // message.info(error.message)
72
       })
72
       })
73
-    }else{
73
+    } else {
74
       request({ ...apis.staff.addTaUser, data: val, }).then((data) => {
74
       request({ ...apis.staff.addTaUser, data: val, }).then((data) => {
75
-        console.log(data,"tauser")
75
+        console.log(data, "tauser")
76
         message.info("保存成功")
76
         message.info("保存成功")
77
         router.go(-1)
77
         router.go(-1)
78
       }).catch(error => {
78
       }).catch(error => {
126
       label: '角色',
126
       label: '角色',
127
       name: 'roleIds',
127
       name: 'roleIds',
128
       render: <Select
128
       render: <Select
129
-                mode="multiple"
130
-                style={{ width: '100%' }}
131
-                placeholder="请选择标签"
132
-                onChange={tagsChange} >
133
-                  {roleData.map(item => (
134
-                    <Select.Option key={item.roleId} value={item.roleId}>
135
-                      {item.roleName}
136
-                    </Select.Option>
137
-                  ))}
138
-              </Select>,
129
+        mode="multiple"
130
+        style={{ width: '100%' }}
131
+        placeholder="请选择标签"
132
+        onChange={tagsChange} >
133
+        {roleData.map(item => (
134
+          <Select.Option key={item.roleId} value={item.roleId}>
135
+            {item.roleName}
136
+          </Select.Option>
137
+        ))}
138
+      </Select>,
139
       value: userData.roleIds,
139
       value: userData.roleIds,
140
     },
140
     },
141
     {
141
     {
142
       label: '标签',
142
       label: '标签',
143
       name: 'taTags',
143
       name: 'taTags',
144
       render: <Select
144
       render: <Select
145
-                mode="multiple"
146
-                style={{ width: '100%' }}
147
-                placeholder="请选择标签"
148
-                onChange={tagsChange} >
149
-                  {tagData.map(item => (
150
-                    <Select.Option key={item.tagId} value={item.tagId}>
151
-                      {item.tagName}
152
-                    </Select.Option>
153
-                  ))}
154
-              </Select>,
145
+        mode="multiple"
146
+        style={{ width: '100%' }}
147
+        placeholder="请选择标签"
148
+        onChange={tagsChange} >
149
+        {tagData.map(item => (
150
+          <Select.Option key={item.tagId} value={item.tagId}>
151
+            {item.tagName}
152
+          </Select.Option>
153
+        ))}
154
+      </Select>,
155
       value: userData.taTags,
155
       value: userData.taTags,
156
     },
156
     },
157
     {
157
     {
187
     {
187
     {
188
       label: '状态',
188
       label: '状态',
189
       name: 'status',
189
       name: 'status',
190
-      render: <Radio.Group>
191
-        <Radio.Button style={{background:'#f0f0f0'}} value="0">禁用</Radio.Button>
192
-        <Radio.Button style={{background:'#f0f0f0',color:'#ff7e48'}} value="1">启用</Radio.Button>
190
+      render: <Radio.Group initialValue="1" buttonStyle="solid">
191
+        <Radio.Button value="0">禁用</Radio.Button>
192
+        <Radio.Button value="1">启用</Radio.Button>
193
       </Radio.Group>,
193
       </Radio.Group>,
194
-      value: null != userData.status ? userData.status : '1'
194
+      value: userData.status != null ? userData.status.toString() : "1"
195
     },
195
     },
196
   ]
196
   ]
197
 
197
 

+ 1
- 1
src/pages/staff/list/style.less View File

15
 .card {
15
 .card {
16
   min-width: 240px;
16
   min-width: 240px;
17
   margin-right: 0.1rem;
17
   margin-right: 0.1rem;
18
-  height: 240px;
18
+  height: 1.4rem;
19
   background: rgba(255, 255, 255, 1);
19
   background: rgba(255, 255, 255, 1);
20
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
20
   box-shadow: 0px 0px 16px 2px rgba(0, 0, 0, 0.12);
21
   border-radius: 12px;
21
   border-radius: 12px;

+ 1
- 2
src/pages/user/login/components/Login/index.less View File

12
     margin-left: -150px;
12
     margin-left: -150px;
13
     text-align: center;
13
     text-align: center;
14
     height: 200px;
14
     height: 200px;
15
-    width: 300px;
16
-    overflow: hidden;
15
+    width: 310px;
17
     .welcome{
16
     .welcome{
18
       color: #fff;
17
       color: #fff;
19
       font-size: 62px;
18
       font-size: 62px;