瀏覽代碼

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

许静 5 年之前
父節點
當前提交
c111e53179

+ 5
- 3
src/pages/activity/editActivity.jsx 查看文件

66
         name: 'imgUrl',
66
         name: 'imgUrl',
67
         type: FieldTypes.ImageUploader,
67
         type: FieldTypes.ImageUploader,
68
         value: dynamicData.imgUrl,
68
         value: dynamicData.imgUrl,
69
+        help: '建议图片尺寸:750px*560px',
69
       },
70
       },
70
       {
71
       {
71
         label: '活动标题',
72
         label: '活动标题',
80
         label: '活动时间',
81
         label: '活动时间',
81
         name: 'activityTime',
82
         name: 'activityTime',
82
         type: FieldTypes.RangePicker,
83
         type: FieldTypes.RangePicker,
83
-        value: dynamicData.startDate != null ? [moment(dynamicData.startDate, 'YYYY-MM-DD'), moment(dynamicData.endDate, 'YYYY-MM-DD')] : null,
84
+        value: dynamicData.startDate != null ? [moment(dynamicData.startDate, 'YYYY-MM-DD HH:mm'), moment(dynamicData.endDate, 'YYYY-MM-DD HH:mm')] : null,
85
+        props: {showTime:{ format: 'HH:mm' }},
84
         rules: [
86
         rules: [
85
           { required: true, message: '请选择活动时间' },
87
           { required: true, message: '请选择活动时间' },
86
         ]
88
         ]
141
     const handleSubmit = val => {
143
     const handleSubmit = val => {
142
       let { activityTime, signupTime, ...submitValue } = val
144
       let { activityTime, signupTime, ...submitValue } = val
143
       const [startDate, endDate] = activityTime
145
       const [startDate, endDate] = activityTime
144
-      submitValue.startDate = moment(startDate).format('YYYY-MM-DD');
145
-      submitValue.endDate = moment(endDate).format('YYYY-MM-DD');
146
+      submitValue.startDate = moment(startDate).format('YYYY-MM-DD HH:mm');
147
+      submitValue.endDate = moment(endDate).format('YYYY-MM-DD HH:mm');
146
       const [enlistStart, enlistEnd] = signupTime
148
       const [enlistStart, enlistEnd] = signupTime
147
       submitValue.enlistStart = moment(enlistStart).format('YYYY-MM-DD');
149
       submitValue.enlistStart = moment(enlistStart).format('YYYY-MM-DD');
148
       submitValue.enlistEnd = moment(enlistEnd).format('YYYY-MM-DD');
150
       submitValue.enlistEnd = moment(enlistEnd).format('YYYY-MM-DD');

+ 3
- 3
src/pages/building/list/add/components/base.jsx 查看文件

157
               </Select>,
157
               </Select>,
158
             )}
158
             )}
159
           </Form.Item>
159
           </Form.Item>
160
-          <Form.Item label="项目主图" >
160
+          <Form.Item label="项目主图" help="建议图片尺寸:640px*360px">
161
             {getFieldDecorator('avatarImage')(
161
             {getFieldDecorator('avatarImage')(
162
               <ImageListUpload />,
162
               <ImageListUpload />,
163
             )}
163
             )}
164
           </Form.Item>
164
           </Form.Item>
165
-          <Form.Item label="地址图片" >
165
+          <Form.Item label="地址图片" help="建议图片尺寸:750px*455px">
166
             {getFieldDecorator('mapImg')(
166
             {getFieldDecorator('mapImg')(
167
               <ImageUpload />,
167
               <ImageUpload />,
168
             )}
168
             )}
169
           </Form.Item>
169
           </Form.Item>
170
-          <Form.Item label="海报底图" >
170
+          <Form.Item label="海报底图" help="建议图片尺寸:640px*1136px" >
171
             {getFieldDecorator('poster')(
171
             {getFieldDecorator('poster')(
172
               <ImageUpload />,
172
               <ImageUpload />,
173
             )}
173
             )}

+ 2
- 2
src/pages/building/list/add/components/share.jsx 查看文件

80
       </div>
80
       </div>
81
     </div>
81
     </div>
82
     <div style={{ display: 'flex', alignItems: 'center', width: '100%' }}>
82
     <div style={{ display: 'flex', alignItems: 'center', width: '100%' }}>
83
-      <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题</p>
84
-      <Input placeholder="请输入海报标题" value={inputValue} onChange={e => changeInput(e.target.value)} />
83
+      <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享标题</p>
84
+      <Input placeholder="请输入分享标题" value={inputValue} onChange={e => changeInput(e.target.value)} />
85
     </div>
85
     </div>
86
     <div style={{ display: 'flex', width: '100%', marginTop: '40px' }}>
86
     <div style={{ display: 'flex', width: '100%', marginTop: '40px' }}>
87
       <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享图片</p>
87
       <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享图片</p>

+ 8
- 3
src/pages/building/type/edi.jsx 查看文件

66
 
66
 
67
     // 修改
67
     // 修改
68
     function updateType(row) {
68
     function updateType(row) {
69
-      const { url, method } = apis.buildingType.update
70
-      const tempUrl = url.substring(0, url.lastIndexOf('id')).concat(row.buildingTypeId)
69
+      // const { url, method } = apis.buildingType.update
70
+      // const tempUrl = url.substring(0, url.lastIndexOf('id')).concat(row.buildingTypeId)
71
 
71
 
72
-      request({ url: tempUrl, method, data: { ...row } }).then(() => {
72
+      // request({ url: tempUrl, method, data: { ...row } }).then(() => {
73
+      //   router.go(-1)
74
+      // })
75
+      request({ ...apis.buildingType.update, urlData: { id: row.buildingTypeId }, data: { ...row } }).then(() => {
76
+        // eslint-disable-next-line no-unused-expressions
77
+        openNotificationWithIcon('success', '操作成功')
73
         router.go(-1)
78
         router.go(-1)
74
       })
79
       })
75
     }
80
     }

+ 1
- 0
src/pages/carouselFigure/editAdvertising.jsx 查看文件

74
         name: 'image',
74
         name: 'image',
75
         type: FieldTypes.ImageUploader,
75
         type: FieldTypes.ImageUploader,
76
         value: data.image,
76
         value: data.image,
77
+        help: '建议图片尺寸:640px*960px',
77
       },
78
       },
78
       {
79
       {
79
         label: '标题',
80
         label: '标题',

+ 1
- 0
src/pages/carouselFigure/editCarousel.jsx 查看文件

53
         name: 'image',
53
         name: 'image',
54
         type: FieldTypes.ImageUploader,
54
         type: FieldTypes.ImageUploader,
55
         value: data.image,
55
         value: data.image,
56
+        help: '建议图片尺寸:640px*330px',
56
       },
57
       },
57
       {
58
       {
58
         label: '标题',
59
         label: '标题',

+ 19
- 12
src/pages/customer/customerlist/index.jsx 查看文件

201
       align: 'center',
201
       align: 'center',
202
       width: '10%',
202
       width: '10%',
203
       // eslint-disable-next-line no-nested-ternary
203
       // eslint-disable-next-line no-nested-ternary
204
-      render: (_, record) => <><span>{record.reportRecommendStatus === 0 ? '未报备' : record.reportRecommendStatus === 1 ? '报备' : record.reportRecommendStatus === 2 ? '推荐' : ''}</span></>,
204
+      render: (text, records) => {
205
+        if (records.status === 1) { return '报备' }
206
+        if (records.status === 2) { return '到访' }
207
+        if (records.status === 3) { return '认筹' }
208
+        if (records.status === 4) { return '签约' }
209
+      },
205
     },
210
     },
206
     {
211
     {
207
       title: '操作',
212
       title: '操作',
232
 
237
 
233
   return (
238
   return (
234
     <>
239
     <>
240
+    {console.log('customerType', customerType)}
235
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
241
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
236
-        <Form.Item>
242
+      {customerType === 'private' && <Form.Item>
237
           {getFieldDecorator('buildingId')(
243
           {getFieldDecorator('buildingId')(
238
             <BuildSelect />,
244
             <BuildSelect />,
239
           )}
245
           )}
240
-        </Form.Item>
241
-        <Form.Item>
242
-          {getFieldDecorator('reportRecommendStatus')(
246
+        </Form.Item>}
247
+        {customerType === 'private' && <Form.Item>
248
+          {getFieldDecorator('status')(
243
             <Select style={{ width: '180px' }} placeholder="状态" onChange={handleSelectChange}>
249
             <Select style={{ width: '180px' }} placeholder="状态" onChange={handleSelectChange}>
244
-              <Option value={0}>未报备</Option>
245
               <Option value={1}>报备</Option>
250
               <Option value={1}>报备</Option>
246
-              <Option value={2}>推荐</Option>
251
+              <Option value={2}>到访</Option>
252
+              <Option value={3}>认筹</Option>
253
+              <Option value={4}>签约</Option>
247
             </Select>,
254
             </Select>,
248
           )}
255
           )}
249
-        </Form.Item>
256
+        </Form.Item>}
250
         <Form.Item>
257
         <Form.Item>
251
           {getFieldDecorator('name')(
258
           {getFieldDecorator('name')(
252
             <Input
259
             <Input
263
             />,
270
             />,
264
           )}
271
           )}
265
         </Form.Item>
272
         </Form.Item>
266
-        <Form.Item>
273
+        {customerType === 'private' && <Form.Item>
267
           {getFieldDecorator('consultName')(
274
           {getFieldDecorator('consultName')(
268
             <Input placeholder="置业顾问" />,
275
             <Input placeholder="置业顾问" />,
269
           )}
276
           )}
270
-        </Form.Item>
271
-        <Form.Item>
277
+        </Form.Item>}
278
+        {customerType === 'private' && <Form.Item>
272
           {getFieldDecorator('consultTel')(
279
           {getFieldDecorator('consultTel')(
273
             <Input placeholder="置业顾问电话" />,
280
             <Input placeholder="置业顾问电话" />,
274
           )}
281
           )}
275
-        </Form.Item>
282
+        </Form.Item>}
276
         <Form.Item>
283
         <Form.Item>
277
             <Button type="primary" htmlType="submit" >
284
             <Button type="primary" htmlType="submit" >
278
               查询
285
               查询

+ 1
- 0
src/pages/integralMall/editGoods.jsx 查看文件

44
       name: 'imgUrl',
44
       name: 'imgUrl',
45
       type: FieldTypes.ImageUploader,
45
       type: FieldTypes.ImageUploader,
46
       value: goodsData.imgUrl,
46
       value: goodsData.imgUrl,
47
+      help: '建议图片尺寸:164px*164px',
47
     },
48
     },
48
     {
49
     {
49
       label: '商品名称',
50
       label: '商品名称',

+ 2
- 2
src/pages/news/list/NewsList.jsx 查看文件

253
             <BuildSelect />,
253
             <BuildSelect />,
254
           )}
254
           )}
255
         </Form.Item>
255
         </Form.Item>
256
-        {/* <Form.Item>
256
+        <Form.Item>
257
           {getFieldDecorator('title')(
257
           {getFieldDecorator('title')(
258
             <Input
258
             <Input
259
               prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
259
               prefix={<Icon type="text" style={{ color: 'rgba(0,0,0,.25)' }} />}
260
               placeholder="请输入标题"
260
               placeholder="请输入标题"
261
             />,
261
             />,
262
           )}
262
           )}
263
-        </Form.Item> */}
263
+        </Form.Item>
264
         <Form.Item>
264
         <Form.Item>
265
           {getFieldDecorator('newsTypeId')(
265
           {getFieldDecorator('newsTypeId')(
266
             <NewsTypeSelect />,
266
             <NewsTypeSelect />,

+ 1
- 0
src/pages/news/list/editNewsList.jsx 查看文件

68
         name: 'newsImg',
68
         name: 'newsImg',
69
         type: FieldTypes.ImageUploader,
69
         type: FieldTypes.ImageUploader,
70
         value: dynamicData.newsImg,
70
         value: dynamicData.newsImg,
71
+        help: '建议图片尺寸:660px*416px',
71
       },
72
       },
72
       {
73
       {
73
         label: '资讯标题',
74
         label: '资讯标题',

+ 1
- 0
src/pages/news/type/editNews.jsx 查看文件

48
       name: 'newsTypeImg',
48
       name: 'newsTypeImg',
49
       type: FieldTypes.ImageUploader,
49
       type: FieldTypes.ImageUploader,
50
       value: newsData.newsTypeImg,
50
       value: newsData.newsTypeImg,
51
+      help: '建议图片尺寸:660px*416px',
51
     },
52
     },
52
     {
53
     {
53
       label: '名称',
54
       label: '名称',

+ 1
- 0
src/pages/system/editPolicy.jsx 查看文件

52
         name: 'policyImg',
52
         name: 'policyImg',
53
         type: FieldTypes.ImageUploader,
53
         type: FieldTypes.ImageUploader,
54
         value: policyData.policyImg,
54
         value: policyData.policyImg,
55
+        help: '建议图片尺寸:660px*416px',
55
       },
56
       },
56
       {
57
       {
57
         label: '政策标题',
58
         label: '政策标题',