浏览代码

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

张延森 5 年前
父节点
当前提交
8524b8f53d

+ 1
- 1
config/routes.js 查看文件

499
               },
499
               },
500
               {
500
               {
501
                 path: '/record/drainage/DrainageVisitRecordList',
501
                 path: '/record/drainage/DrainageVisitRecordList',
502
-                name: '客户访问记录',
502
+                name: '分享记录',
503
                 component: './record/drainage/DrainageVisitRecordList',
503
                 component: './record/drainage/DrainageVisitRecordList',
504
               },
504
               },
505
             ],
505
             ],

+ 15
- 6
src/pages/activity/ActivityList.jsx 查看文件

67
     });
67
     });
68
   }
68
   }
69
 
69
 
70
-
70
+  const getJoinPeople = (dynamicId) => () => {
71
+    router.push({
72
+      pathname: '/activity/SignList',
73
+      query: {
74
+        dynamicId,
75
+      },
76
+    });
77
+  }
71
   /**
78
   /**
72
    *
79
    *
73
    *
80
    *
102
       dataIndex: 'count',
109
       dataIndex: 'count',
103
       key: 'count',
110
       key: 'count',
104
       align: 'center',
111
       align: 'center',
112
+      render:  (x, row) => <><div style={{overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap', width: '201px',title:'content'}}>
113
+                              <span style={{color: 'blue',cursor: 'pointer'}} onClick={getJoinPeople(row.dynamicId)}>{row.count}</span></div></>,
105
       // width: '10%',
114
       // width: '10%',
106
       // width: '6%',
115
       // width: '6%',
107
     },
116
     },
347
         <Button type="danger" className={styles.addBtn} onClick={toEditGoods()}>新增</Button>
356
         <Button type="danger" className={styles.addBtn} onClick={toEditGoods()}>新增</Button>
348
       </AuthButton>
357
       </AuthButton>
349
       <Table
358
       <Table
350
-        onRow={record => {
351
-          return {
352
-            onClick: getActivityDetail(record.dynamicId),
353
-          };
354
-        }}
359
+        // onRow={record => {
360
+        //   return {
361
+        //     onClick: getActivityDetail(record.dynamicId),
362
+        //   };
363
+        // }}
355
        dataSource={data.list} columns={columns} pagination={false} rowKey="activityList" />
364
        dataSource={data.list} columns={columns} pagination={false} rowKey="activityList" />
356
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
365
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
357
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e)} current={data.current}/>
366
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e)} current={data.current}/>

+ 5
- 5
src/pages/activity/drainage/DrainageList.jsx 查看文件

523
           <Formss formsDate={formsdate} />
523
           <Formss formsDate={formsdate} />
524
         </Modal>
524
         </Modal>
525
         <Table 
525
         <Table 
526
-        onRow={record => {
527
-          return {
528
-            onClick: toDrainageDetail(record.drainageId),
529
-          };
530
-        }}
526
+        // onRow={record => {
527
+        //   return {
528
+        //     onClick: toDrainageDetail(record.drainageId),
529
+        //   };
530
+        // }}
531
         columns={columns} dataSource={datas.records} pagination={false} rowKey="drainageList" />
531
         columns={columns} dataSource={datas.records} pagination={false} rowKey="drainageList" />
532
         <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
532
         <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
533
           <Pagination showQuickJumper defaultCurrent={1} total={datas.total} onChange={(e) => changePageNum(e)} current={datas.current} />
533
           <Pagination showQuickJumper defaultCurrent={1} total={datas.total} onChange={(e) => changePageNum(e)} current={datas.current} />

+ 18
- 6
src/pages/activity/groupActivity/list.jsx 查看文件

48
         groupActivityId,
48
         groupActivityId,
49
       },
49
       },
50
     });
50
     });
51
-  }
51
+  } 
52
+
53
+  const getJoinPeople = (groupActivityId) => () => {
54
+    router.push({
55
+      pathname: '/activity/groupActivity/helpRecord',
56
+      query: {
57
+          groupActivityId,
58
+      },
59
+    });
60
+  } 
52
 
61
 
53
   /**
62
   /**
54
    *
63
    *
84
       dataIndex: 'participateNum',
93
       dataIndex: 'participateNum',
85
       key: 'participateNum',
94
       key: 'participateNum',
86
       align: 'center',
95
       align: 'center',
96
+      render: (x, row) => <><div style={{overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap', width: '201px',title:'content'}}>
97
+                            <span style={{color: 'blue',cursor: 'pointer'}} onClick={getJoinPeople(row.groupActivityId)}>{row.participateNum}</span></div></>,
87
     },
98
     },
88
     {
99
     {
89
       title: '成团数',
100
       title: '成团数',
314
       <AuthButton name="admin.taShareActivity.post" noRight={null}>
325
       <AuthButton name="admin.taShareActivity.post" noRight={null}>
315
         <Button type="danger" className={styles.addBtn} onClick={toEditActivity()}>新增</Button>
326
         <Button type="danger" className={styles.addBtn} onClick={toEditActivity()}>新增</Button>
316
       </AuthButton>
327
       </AuthButton>
317
-      <Table onRow={record => {
318
-          return {
319
-            onClick: getActivityDetail(record.groupActivityId),
320
-          };
321
-        }}
328
+      <Table 
329
+      // onRow={record => {
330
+      //     return {
331
+      //       onClick: getActivityDetail(record.groupActivityId),
332
+      //     };
333
+      //   }}
322
         style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />
334
         style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />
323
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
335
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
324
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />
336
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />

+ 16
- 5
src/pages/activity/helpActivity/list.jsx 查看文件

48
     },
48
     },
49
   });
49
   });
50
 }
50
 }
51
+
52
+const getJoinPeople = (helpActivityId) => () => {
53
+  router.push({
54
+    pathname: '/activity/helpActivity/helpRecord',
55
+    query: {
56
+      helpActivityId,
57
+    },
58
+  });
59
+}
51
   
60
   
52
   
61
   
53
   /**
62
   /**
78
       dataIndex: 'enlistNum',
87
       dataIndex: 'enlistNum',
79
       key: 'enlistNum',
88
       key: 'enlistNum',
80
       align: 'center',
89
       align: 'center',
90
+      render:  (x, row) => <><div style={{overflow: 'hidden',textOverflow: 'ellipsis',whiteSpace: 'nowrap', width: '201px',title:'content'}}>
91
+                              <span style={{color: 'blue',cursor: 'pointer'}} onClick={getJoinPeople(row.helpActivityId)}>{row.enlistNum}</span></div></>,
81
     },
92
     },
82
     {
93
     {
83
       title: '助力成功数',
94
       title: '助力成功数',
309
         <Button name="admin.helpActivity.add.post" noRight={null} type="danger" className={styles.addBtn} onClick={toEditGoods()}>新增</Button>
320
         <Button name="admin.helpActivity.add.post" noRight={null} type="danger" className={styles.addBtn} onClick={toEditGoods()}>新增</Button>
310
       </AuthButton>
321
       </AuthButton>
311
       <Table 
322
       <Table 
312
-        onRow={record => {
313
-          return {
314
-            onClick: getActivityDetail(record.helpActivityId),
315
-          };
316
-        }}
323
+        // onRow={record => {
324
+        //   return {
325
+        //     onClick: getActivityDetail(record.helpActivityId),
326
+        //   };
327
+        // }}
317
       dataSource={data.records} columns={columns} pagination={false} rowKey="activityList"/>
328
       dataSource={data.records} columns={columns} pagination={false} rowKey="activityList"/>
318
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
329
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
319
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
330
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>

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

4
 import moment from 'moment';
4
 import moment from 'moment';
5
 import request from '../../../../../utils/request';
5
 import request from '../../../../../utils/request';
6
 import apis from '../../../../../services/apis';
6
 import apis from '../../../../../services/apis';
7
+import router from 'umi/router';
7
 
8
 
8
 const { Header, Footer, Sider, Content } = Layout;
9
 const { Header, Footer, Sider, Content } = Layout;
9
 
10
 
221
 
222
 
222
   return (
223
   return (
223
     <>
224
     <>
225
+      <Button type="danger" style={{ marginLeft: '18px', float: 'right' }} onClick={() => router.go(-1)}>返回</Button>
224
       <span style={{ marginTop: '10px', marginBottom: '10px' }}>{props.apartment.apartmentName}({imageList.length})</span>
226
       <span style={{ marginTop: '10px', marginBottom: '10px' }}>{props.apartment.apartmentName}({imageList.length})</span>
225
       <Button type="link" style={{ color: 'blue' }} onClick={() => edi()}>重命名</Button>
227
       <Button type="link" style={{ color: 'blue' }} onClick={() => edi()}>重命名</Button>
226
       <Button type="link" style={{ color: 'blue' }} onClick={() => deletePhoto()}>删除相册</Button>
228
       <Button type="link" style={{ color: 'blue' }} onClick={() => deletePhoto()}>删除相册</Button>

+ 8
- 1
src/pages/building/list/add/components/buildingProjectType.jsx 查看文件

144
   }
144
   }
145
 
145
 
146
   onClose = e => {
146
   onClose = e => {
147
+    console.log(2)
147
     const { data } = this.state
148
     const { data } = this.state
148
     console.log('onClose——data: ', data)
149
     console.log('onClose——data: ', data)
149
     console.log('onClose: ', e.buildingTypeId)
150
     console.log('onClose: ', e.buildingTypeId)
240
         <Modal
241
         <Modal
241
           title="项目类型"
242
           title="项目类型"
242
           visible={this.state.visible}
243
           visible={this.state.visible}
243
-          onOk={this.handleOk}
244
+          // onOk={this.handleOk}
244
           onCancel={this.handleCancel}
245
           onCancel={this.handleCancel}
246
+          footer={
247
+            [
248
+            <Button key="submit" type="primary" onClick={this.handleOk}>
249
+             确定  
250
+            </Button>] 
251
+          }
245
         >
252
         >
246
           <Checkbox.Group options={this.state.projectType.map(item => ({ label: item.buildingTypeName, value: item.buildingTypeId }))} onChange={e => this.onCheckboxChange(e)} value={this.state.defaultCheckboxValue}/>
253
           <Checkbox.Group options={this.state.projectType.map(item => ({ label: item.buildingTypeName, value: item.buildingTypeId }))} onChange={e => this.onCheckboxChange(e)} value={this.state.defaultCheckboxValue}/>
247
         </Modal>
254
         </Modal>

+ 1
- 0
src/pages/building/list/add/components/imageSet.jsx 查看文件

149
   return (
149
   return (
150
     <>
150
     <>
151
       <Button type="primary" onClick={() => showEdi()}>新增户型</Button>
151
       <Button type="primary" onClick={() => showEdi()}>新增户型</Button>
152
+      <Button type="danger" style={{ marginLeft: '18px'}} onClick={() => router.go(-1)}>返回</Button>
152
       <Table dataSource={data} columns={columns} pagination={false} rowKey="imageSet" />
153
       <Table dataSource={data} columns={columns} pagination={false} rowKey="imageSet" />
153
 
154
 
154
       {/* 编辑页 */}
155
       {/* 编辑页 */}

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

198
                 {getFieldDecorator('buildingArea', {
198
                 {getFieldDecorator('buildingArea', {
199
                   rules: [{ message: '请填写面积' },
199
                   rules: [{ message: '请填写面积' },
200
                           {
200
                           {
201
-                            pattern: new RegExp('^[0-9]+\.[0-9]{2}$'),
201
+                            pattern: new RegExp('^[1-9][0-9]*(\.[0-9]{1,2})?$'),
202
                             message: '只允许输入数字',
202
                             message: '只允许输入数字',
203
                           },
203
                           },
204
                   ],
204
                   ],
209
                   rules: [
209
                   rules: [
210
                     // { required: true, message: '请填写套内面积' },
210
                     // { required: true, message: '请填写套内面积' },
211
                           {
211
                           {
212
-                            pattern: new RegExp('^[0-9]+\.[0-9]{2}$'),
212
+                            pattern: new RegExp('^[1-9][0-9]*(\.[0-9]{1,2})?$'),
213
                             message: '只允许输入数字',
213
                             message: '只允许输入数字',
214
                           },
214
                           },
215
                   ],
215
                   ],

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

164
           name: 'image',
164
           name: 'image',
165
           type: FieldTypes.ImageUploader,
165
           type: FieldTypes.ImageUploader,
166
           value: data.image,
166
           value: data.image,
167
-          help: () => (locationType ? '建议图片尺寸:750*250px,比例16:9,格式:jpg,用于积分商城banner轮播' : '建议图片尺寸:750*464px,比例1.:0.618,格式:jpg,用于:首页顶部banner轮播'),
167
+          help: () => (locationType ? '建议图片尺寸:750*420px,比例16:9,格式:jpg,用于积分商城banner轮播' : '建议图片尺寸:750*464px,比例1.:0.618,格式:jpg,用于:首页顶部banner轮播'),
168
           rules: [
168
           rules: [
169
             { required: true, message: '请上传轮播图' },
169
             { required: true, message: '请上传轮播图' },
170
           ],
170
           ],

+ 11
- 10
src/pages/customer/customerlist/index.jsx 查看文件

449
           </Radio.Group>
449
           </Radio.Group>
450
       </div>
450
       </div>
451
       {customerType === 'private' ? 
451
       {customerType === 'private' ? 
452
-        <Table onRow={record => {
453
-          return {
454
-            onClick: () => toCustomerDateil(record),
455
-          };
456
-        }}
452
+        <Table 
453
+        // onRow={record => {
454
+        //   return {
455
+        //     onClick: () => toCustomerDateil(record),
456
+        //   };
457
+        // }}
457
         dataSource={dataSource.records} columns={privateColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> :
458
         dataSource={dataSource.records} columns={privateColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> :
458
         <Table 
459
         <Table 
459
-        onRow={record => {
460
-          return {
461
-            onClick: () => publicCustomerDetail(record),
462
-          };
463
-        }}
460
+        // onRow={record => {
461
+        //   return {
462
+        //     onClick: () => publicCustomerDetail(record),
463
+        //   };
464
+        // }}
464
         dataSource={dataSource.records} columns={publicColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> 
465
         dataSource={dataSource.records} columns={publicColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> 
465
       }
466
       }
466
       
467
       

+ 4
- 0
src/pages/indexEcharts/userBehavior.jsx 查看文件

8
 import apis from '../../services/apis';
8
 import apis from '../../services/apis';
9
 import BuildSelect from '../../components/SelectButton/BuildSelect'
9
 import BuildSelect from '../../components/SelectButton/BuildSelect'
10
 import { func } from 'prop-types';
10
 import { func } from 'prop-types';
11
+import router from 'umi/router';
12
+
11
 
13
 
12
 // const formatDate = (start, end) => {
14
 // const formatDate = (start, end) => {
13
 //   const startDate = moment(start).format('YYYY-MM-DDT00:00:00.000') + 'Z'
15
 //   const startDate = moment(start).format('YYYY-MM-DDT00:00:00.000') + 'Z'
182
               重置
184
               重置
183
             </Button>
185
             </Button>
184
 
186
 
187
+            <Button type="danger" style={{ marginLeft: '18px', float: 'right' }} onClick={() => router.go(-1)}>返回</Button>
188
+
185
           <div style={{ display: 'flex', margin: '24px 0' }}>
189
           <div style={{ display: 'flex', margin: '24px 0' }}>
186
             <Form.Item>
190
             <Form.Item>
187
               {getFieldDecorator('buildingId')(
191
               {getFieldDecorator('buildingId')(

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

78
         name: 'newsImg',
78
         name: 'newsImg',
79
         type: FieldTypes.ImageUploader,
79
         type: FieldTypes.ImageUploader,
80
         value: dynamicData.newsImg,
80
         value: dynamicData.newsImg,
81
-        help: '建议图片尺寸:320*256px,比例5:4,格式:jpg,用于资讯列表',
81
+        help: '建议图片尺寸:320*240px,比例5:4,格式:jpg,用于资讯列表',
82
         rules: [
82
         rules: [
83
           {required: true, message: '请选择资讯列表'},
83
           {required: true, message: '请选择资讯列表'},
84
         ]
84
         ]