Parcourir la source

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

张延森 il y a 5 ans
Parent
révision
8524b8f53d

+ 1
- 1
config/routes.js Voir le fichier

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

+ 15
- 6
src/pages/activity/ActivityList.jsx Voir le fichier

@@ -67,7 +67,14 @@ const header = props => {
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,6 +109,8 @@ const header = props => {
102 109
       dataIndex: 'count',
103 110
       key: 'count',
104 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 114
       // width: '10%',
106 115
       // width: '6%',
107 116
     },
@@ -347,11 +356,11 @@ const header = props => {
347 356
         <Button type="danger" className={styles.addBtn} onClick={toEditGoods()}>新增</Button>
348 357
       </AuthButton>
349 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 364
        dataSource={data.list} columns={columns} pagination={false} rowKey="activityList" />
356 365
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
357 366
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={e => changePageNum(e)} current={data.current}/>

+ 5
- 5
src/pages/activity/drainage/DrainageList.jsx Voir le fichier

@@ -523,11 +523,11 @@ const header = (props) => {
523 523
           <Formss formsDate={formsdate} />
524 524
         </Modal>
525 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 531
         columns={columns} dataSource={datas.records} pagination={false} rowKey="drainageList" />
532 532
         <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
533 533
           <Pagination showQuickJumper defaultCurrent={1} total={datas.total} onChange={(e) => changePageNum(e)} current={datas.current} />

+ 18
- 6
src/pages/activity/groupActivity/list.jsx Voir le fichier

@@ -48,7 +48,16 @@ const header = props => {
48 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,6 +93,8 @@ const header = props => {
84 93
       dataIndex: 'participateNum',
85 94
       key: 'participateNum',
86 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 100
       title: '成团数',
@@ -314,11 +325,12 @@ const header = props => {
314 325
       <AuthButton name="admin.taShareActivity.post" noRight={null}>
315 326
         <Button type="danger" className={styles.addBtn} onClick={toEditActivity()}>新增</Button>
316 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 334
         style={{marginTop:'30px'}} dataSource={data.records} columns={columns} pagination={false} rowKey="activityList" />
323 335
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
324 336
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />

+ 16
- 5
src/pages/activity/helpActivity/list.jsx Voir le fichier

@@ -48,6 +48,15 @@ const getActivityDetail = (helpActivityId) => () => {
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,6 +87,8 @@ const getActivityDetail = (helpActivityId) => () => {
78 87
       dataIndex: 'enlistNum',
79 88
       key: 'enlistNum',
80 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 94
       title: '助力成功数',
@@ -309,11 +320,11 @@ const handleSubmit = (e, props) => {
309 320
         <Button name="admin.helpActivity.add.post" noRight={null} type="danger" className={styles.addBtn} onClick={toEditGoods()}>新增</Button>
310 321
       </AuthButton>
311 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 328
       dataSource={data.records} columns={columns} pagination={false} rowKey="activityList"/>
318 329
       <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
319 330
         <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>

+ 2
- 0
src/pages/building/list/add/components/buildingImage.jsx Voir le fichier

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

+ 8
- 1
src/pages/building/list/add/components/buildingProjectType.jsx Voir le fichier

@@ -144,6 +144,7 @@ class ProjectTypeBody extends React.Component {
144 144
   }
145 145
 
146 146
   onClose = e => {
147
+    console.log(2)
147 148
     const { data } = this.state
148 149
     console.log('onClose——data: ', data)
149 150
     console.log('onClose: ', e.buildingTypeId)
@@ -240,8 +241,14 @@ class ProjectTypeBody extends React.Component {
240 241
         <Modal
241 242
           title="项目类型"
242 243
           visible={this.state.visible}
243
-          onOk={this.handleOk}
244
+          // onOk={this.handleOk}
244 245
           onCancel={this.handleCancel}
246
+          footer={
247
+            [
248
+            <Button key="submit" type="primary" onClick={this.handleOk}>
249
+             确定  
250
+            </Button>] 
251
+          }
245 252
         >
246 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 254
         </Modal>

+ 1
- 0
src/pages/building/list/add/components/imageSet.jsx Voir le fichier

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

+ 2
- 2
src/pages/building/list/add/components/modalImage.jsx Voir le fichier

@@ -198,7 +198,7 @@ class ModalImage extends React.Component {
198 198
                 {getFieldDecorator('buildingArea', {
199 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 202
                             message: '只允许输入数字',
203 203
                           },
204 204
                   ],
@@ -209,7 +209,7 @@ class ModalImage extends React.Component {
209 209
                   rules: [
210 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 213
                             message: '只允许输入数字',
214 214
                           },
215 215
                   ],

+ 1
- 1
src/pages/carouselFigure/editCarousel.jsx Voir le fichier

@@ -164,7 +164,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
164 164
           name: 'image',
165 165
           type: FieldTypes.ImageUploader,
166 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 168
           rules: [
169 169
             { required: true, message: '请上传轮播图' },
170 170
           ],

+ 11
- 10
src/pages/customer/customerlist/index.jsx Voir le fichier

@@ -449,18 +449,19 @@ function body(props) {
449 449
           </Radio.Group>
450 450
       </div>
451 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 458
         dataSource={dataSource.records} columns={privateColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> :
458 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 465
         dataSource={dataSource.records} columns={publicColumns} pagination={{ total: dataSource.total, onChange }} rowKey="customerList" /> 
465 466
       }
466 467
       

+ 4
- 0
src/pages/indexEcharts/userBehavior.jsx Voir le fichier

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

+ 1
- 1
src/pages/news/list/editNewsList.jsx Voir le fichier

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