浏览代码

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

许静 5 年前
父节点
当前提交
c111e53179

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

@@ -66,6 +66,7 @@ const Edit = (props) => {
66 66
         name: 'imgUrl',
67 67
         type: FieldTypes.ImageUploader,
68 68
         value: dynamicData.imgUrl,
69
+        help: '建议图片尺寸:750px*560px',
69 70
       },
70 71
       {
71 72
         label: '活动标题',
@@ -80,7 +81,8 @@ const Edit = (props) => {
80 81
         label: '活动时间',
81 82
         name: 'activityTime',
82 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 86
         rules: [
85 87
           { required: true, message: '请选择活动时间' },
86 88
         ]
@@ -141,8 +143,8 @@ const Edit = (props) => {
141 143
     const handleSubmit = val => {
142 144
       let { activityTime, signupTime, ...submitValue } = val
143 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 148
       const [enlistStart, enlistEnd] = signupTime
147 149
       submitValue.enlistStart = moment(enlistStart).format('YYYY-MM-DD');
148 150
       submitValue.enlistEnd = moment(enlistEnd).format('YYYY-MM-DD');

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

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

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

@@ -80,8 +80,8 @@ const Share = props => {
80 80
       </div>
81 81
     </div>
82 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 85
     </div>
86 86
     <div style={{ display: 'flex', width: '100%', marginTop: '40px' }}>
87 87
       <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享图片</p>

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

@@ -66,10 +66,15 @@ function body(props) {
66 66
 
67 67
     // 修改
68 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 78
         router.go(-1)
74 79
       })
75 80
     }

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

@@ -74,6 +74,7 @@ import request from '../../utils/request'
74 74
         name: 'image',
75 75
         type: FieldTypes.ImageUploader,
76 76
         value: data.image,
77
+        help: '建议图片尺寸:640px*960px',
77 78
       },
78 79
       {
79 80
         label: '标题',

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

@@ -53,6 +53,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
53 53
         name: 'image',
54 54
         type: FieldTypes.ImageUploader,
55 55
         value: data.image,
56
+        help: '建议图片尺寸:640px*330px',
56 57
       },
57 58
       {
58 59
         label: '标题',

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

@@ -201,7 +201,12 @@ function body(props) {
201 201
       align: 'center',
202 202
       width: '10%',
203 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 212
       title: '操作',
@@ -232,21 +237,23 @@ function body(props) {
232 237
 
233 238
   return (
234 239
     <>
240
+    {console.log('customerType', customerType)}
235 241
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
236
-        <Form.Item>
242
+      {customerType === 'private' && <Form.Item>
237 243
           {getFieldDecorator('buildingId')(
238 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 249
             <Select style={{ width: '180px' }} placeholder="状态" onChange={handleSelectChange}>
244
-              <Option value={0}>未报备</Option>
245 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 254
             </Select>,
248 255
           )}
249
-        </Form.Item>
256
+        </Form.Item>}
250 257
         <Form.Item>
251 258
           {getFieldDecorator('name')(
252 259
             <Input
@@ -263,16 +270,16 @@ function body(props) {
263 270
             />,
264 271
           )}
265 272
         </Form.Item>
266
-        <Form.Item>
273
+        {customerType === 'private' && <Form.Item>
267 274
           {getFieldDecorator('consultName')(
268 275
             <Input placeholder="置业顾问" />,
269 276
           )}
270
-        </Form.Item>
271
-        <Form.Item>
277
+        </Form.Item>}
278
+        {customerType === 'private' && <Form.Item>
272 279
           {getFieldDecorator('consultTel')(
273 280
             <Input placeholder="置业顾问电话" />,
274 281
           )}
275
-        </Form.Item>
282
+        </Form.Item>}
276 283
         <Form.Item>
277 284
             <Button type="primary" htmlType="submit" >
278 285
               查询

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

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

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

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

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

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

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

@@ -48,6 +48,7 @@ const header = props => {
48 48
       name: 'newsTypeImg',
49 49
       type: FieldTypes.ImageUploader,
50 50
       value: newsData.newsTypeImg,
51
+      help: '建议图片尺寸:660px*416px',
51 52
     },
52 53
     {
53 54
       label: '名称',

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

@@ -52,6 +52,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
52 52
         name: 'policyImg',
53 53
         type: FieldTypes.ImageUploader,
54 54
         value: policyData.policyImg,
55
+        help: '建议图片尺寸:660px*416px',
55 56
       },
56 57
       {
57 58
         label: '政策标题',