Parcourir la source

Merge branch 'master' of http://git.ycjcjy.com/marketing/pc-admin into master

zlisen il y a 3 ans
Parent
révision
4ab3192c21

+ 2
- 2
config/proxy.js Voir le fichier

8
 export default {
8
 export default {
9
   dev: {
9
   dev: {
10
     '/api/': {
10
     '/api/': {
11
-      target: 'https://xlk.njyz.tech/',
11
+      // target: 'https://xlk.njyz.tech/',
12
       // target: 'http://localhost:8081/',
12
       // target: 'http://localhost:8081/',
13
-      // target: 'https://xlj.newlandsh.com/',
13
+      target: 'https://xlj.newlandsh.com/',
14
       changeOrigin: true,
14
       changeOrigin: true,
15
       pathRewrite: {
15
       pathRewrite: {
16
         '^': '',
16
         '^': '',

+ 4
- 4
src/pages/customer/Customer/PrivateCustomer/CustomerDetail.jsx Voir le fichier

132
       render: (_, record) => <span>{record.intention}</span>,
132
       render: (_, record) => <span>{record.intention}</span>,
133
     },
133
     },
134
   ];
134
   ];
135
- const  {customerInfo={},taRecommendCustomer={},realtyConsultantPerson={},taUser={},taBuildingList=[],personIntentions=[],personVisitRecords=[]} = data
136
- const records =buildingIdValue?personVisitRecords?.filter(x=>x.buildingId===buildingIdValue):personVisitRecords
135
+  const {customerInfo={},taRecommendCustomer={},realtyConsultantPerson={},taUser={},taBuildingList=[],personIntentions=[],personVisitRecords=[]} = data
136
+  const records =buildingIdValue?personVisitRecords?.filter(x=>x.buildingId===buildingIdValue):personVisitRecords
137
 
137
 
138
   return (
138
   return (
139
     <>
139
     <>
230
             bordered={false}
230
             bordered={false}
231
             columnWidth={10}
231
             columnWidth={10}
232
             columns={intention}
232
             columns={intention}
233
-            dataSource={personIntentions}
233
+            // dataSource={personIntentions}
234
             pagination={false}
234
             pagination={false}
235
             key='personId'
235
             key='personId'
236
-            scroll={personIntentions?.length >= 3 ? { y: 240 } : false}
236
+            // scroll={personIntentions?.length >= 3 ? { y: 240 } : false}
237
             width={500}
237
             width={500}
238
           />
238
           />
239
           {/* </div> */}
239
           {/* </div> */}

+ 1
- 1
src/pages/customer/Customer/PrivateCustomer/index.jsx Voir le fichier

6
 import request from '@/utils/request';
6
 import request from '@/utils/request';
7
 import withActions from '@/components/ActionList';
7
 import withActions from '@/components/ActionList';
8
 import AuthButton from '@/components/AuthButton';
8
 import AuthButton from '@/components/AuthButton';
9
-import Styles from '../style.less';
9
+
10
 import ChangeStatus from './components/ChangeStatus';
10
 import ChangeStatus from './components/ChangeStatus';
11
 import Attribution from './components/Attribution';
11
 import Attribution from './components/Attribution';
12
 import IntegralRecord from './components/IntegralRecord';
12
 import IntegralRecord from './components/IntegralRecord';

+ 1
- 1
src/pages/customer/Customer/PublicCustomer/AssistConsultant/AssistConsultant.jsx Voir le fichier

2
 import { Table, Modal, notification } from 'antd';
2
 import { Table, Modal, notification } from 'antd';
3
 import request from '@/utils/request';
3
 import request from '@/utils/request';
4
 import apis from '@/services/apis';
4
 import apis from '@/services/apis';
5
-import BuildSelect from '../../../../../components/SelectButton/BuildSelect';
5
+import BuildSelect from '@/components/SelectButton/BuildSelect';
6
 
6
 
7
 /**
7
 /**
8
  * 分配置业顾问
8
  * 分配置业顾问

+ 3
- 3
src/pages/customer/Customer/PublicCustomer/AssistConsultant/BatchAssistConsultant.jsx Voir le fichier

1
 import React, { useState, useEffect } from 'react';
1
 import React, { useState, useEffect } from 'react';
2
 import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Pagination, Alert, Table, Avatar, Radio, Modal, Descriptions, notification } from 'antd';
2
 import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Pagination, Alert, Table, Avatar, Radio, Modal, Descriptions, notification } from 'antd';
3
 import moment from 'moment';
3
 import moment from 'moment';
4
-import request from '../../../../utils/request';
5
-import apis from '../../../../services/apis';
4
+import request from '@/utils/request';
5
+import apis from '@/services/apis';
6
 import Styles from '../style.less';
6
 import Styles from '../style.less';
7
-import BuildSelect from '../../../../components/SelectButton/BuildSelect'
7
+import BuildSelect from '@/components/SelectButton/BuildSelect'
8
 
8
 
9
 
9
 
10
 const { Option } = Select;
10
 const { Option } = Select;

+ 1
- 1
src/pages/customer/Customer/PublicCustomer/components/AssistConsultant.jsx Voir le fichier

2
 import { Table, Modal, notification,Button } from 'antd';
2
 import { Table, Modal, notification,Button } from 'antd';
3
 import request from '@/utils/request';
3
 import request from '@/utils/request';
4
 import apis from '@/services/apis';
4
 import apis from '@/services/apis';
5
-import BuildSelect from '../../../../../components/SelectButton/BuildSelect';
5
+import BuildSelect from '@/components/SelectButton/BuildSelect';
6
 
6
 
7
 /**
7
 /**
8
  * 分配置业顾问
8
  * 分配置业顾问

+ 1
- 1
src/pages/customer/Customer/PublicCustomer/index.jsx Voir le fichier

6
 import request from '@/utils/request';
6
 import request from '@/utils/request';
7
 import withActions from '@/components/ActionList';
7
 import withActions from '@/components/ActionList';
8
 import AuthButton from '@/components/AuthButton';
8
 import AuthButton from '@/components/AuthButton';
9
-import Styles from '../style.less';
9
+
10
 import IntegralRecord from './components/IntegralRecord';
10
 import IntegralRecord from './components/IntegralRecord';
11
 import Recommend from './components/Recommend';
11
 import Recommend from './components/Recommend';
12
 import AssistConsultant from './components/assistConsultant';
12
 import AssistConsultant from './components/assistConsultant';

+ 5
- 5
src/pages/customer/Customer/PublicCustomer/publicCustomerDetail.jsx Voir le fichier

26
   // eslint-disable-next-line react-hooks/rules-of-hooks
26
   // eslint-disable-next-line react-hooks/rules-of-hooks
27
   useEffect(() => {
27
   useEffect(() => {
28
     getById();
28
     getById();
29
-    toLoadIntention();
29
+    // toLoadIntention();
30
   }, []);
30
   }, []);
31
 
31
 
32
   function toLoadIntention() {
32
   function toLoadIntention() {
134
     },
134
     },
135
   ];
135
   ];
136
 
136
 
137
-  const  {customerInfo={},taRecommendCustomer={},realtyConsultantPerson={},taBuildingList=[],personIntentions=[],personVisitRecords=[]} = data
138
- const records =buildingIdValue?personVisitRecords?.filter(x=>x.buildingId===buildingIdValue):personVisitRecords
137
+  const {customerInfo={},taRecommendCustomer={},realtyConsultantPerson={},taBuildingList=[],personIntentions=[],personVisitRecords=[]} = data
138
+  const records =buildingIdValue?personVisitRecords?.filter(x=>x.buildingId===buildingIdValue):personVisitRecords
139
   return (
139
   return (
140
     <>
140
     <>
141
       <div style={{ textAlign: 'right', marginBottom: '16px' }}>
141
       <div style={{ textAlign: 'right', marginBottom: '16px' }}>
204
              bordered={false}
204
              bordered={false}
205
              columnWidth={10}
205
              columnWidth={10}
206
              columns={intention}
206
              columns={intention}
207
-             dataSource={personIntentions}
207
+            //  dataSource={personIntentions}
208
              pagination={false}
208
              pagination={false}
209
              key='personId'
209
              key='personId'
210
-             scroll={personIntentions?.length >= 3 ? { y: 240 } : false}
210
+            //  scroll={personIntentions?.length >= 3 ? { y: 240 } : false}
211
     
211
     
212
             />
212
             />
213
           </div>
213
           </div>

+ 4
- 11
src/pages/customer/Customer/PublicCustomer/publicStyle.less Voir le fichier

24
   align-items: center;
24
   align-items: center;
25
   position: relative;
25
   position: relative;
26
   line-height: 1.5;
26
   line-height: 1.5;
27
-  font-size: 0.106rem;
28
-  margin-bottom: 0.08rem;
27
+  margin-bottom: 8px;
29
 
28
 
30
 }
29
 }
31
 .cardItem{
30
 .cardItem{
33
   display: flex;
32
   display: flex;
34
   align-items: center; 
33
   align-items: center; 
35
   line-height: 1.5;
34
   line-height: 1.5;
36
-  font-size: 0.106rem;
37
-  margin-bottom: 0.08rem; 
35
+  margin-bottom: 8px; 
38
 }
36
 }
39
 .ediText {
37
 .ediText {
40
-  font-size: 0.106rem;
41
   color: #ff925c;
38
   color: #ff925c;
42
   line-height: 24px;
39
   line-height: 24px;
43
   position: absolute;
40
   position: absolute;
45
 }
42
 }
46
 .title{
43
 .title{
47
   display: inline-block;
44
   display: inline-block;
48
-  width:  0.54rem;
45
+  width:  54px;
49
   justify-content: space-between;
46
   justify-content: space-between;
50
   text-align: justify;
47
   text-align: justify;
51
   text-align-last:justify
48
   text-align-last:justify
136
     position: relative;
133
     position: relative;
137
   }
134
   }
138
   .tit{
135
   .tit{
139
-    font-size:0.15rem;
136
+    font-size: 1.5em;
140
     font-weight:600;
137
     font-weight:600;
141
     color:#222;
138
     color:#222;
142
     margin: 10px 0 0 0;
139
     margin: 10px 0 0 0;
149
   }
146
   }
150
   .infoItem{
147
   .infoItem{
151
     color:#666;
148
     color:#666;
152
-    font-size: 0.1rem;
153
     margin: 0 0 10px 0;
149
     margin: 0 0 10px 0;
154
     
150
     
155
   }
151
   }
156
   .rightItem{
152
   .rightItem{
157
     color:#666;
153
     color:#666;
158
-    font-size: 0.1rem;
159
     margin: 0 0 15px 0;
154
     margin: 0 0 15px 0;
160
   }
155
   }
161
   .right{
156
   .right{
180
     left:50%;
175
     left:50%;
181
     margin: 0 0 15px 0;
176
     margin: 0 0 15px 0;
182
     color:#666;
177
     color:#666;
183
-    font-size: 0.1rem;
184
   }
178
   }
185
 
179
 
186
   .rightCentered{
180
   .rightCentered{
189
     left:55%;
183
     left:55%;
190
     margin: 0 0 15px 0;
184
     margin: 0 0 15px 0;
191
     color:#666;
185
     color:#666;
192
-    font-size: 0.1rem;
193
   }
186
   }
194
   
187
   
195
 }
188
 }

+ 22
- 49
src/pages/customer/Customer/style.less Voir le fichier

120
   position: relative;
120
   position: relative;
121
 }
121
 }
122
 .tit{
122
 .tit{
123
-  font-size:0.15rem;
123
+  font-size: 1.5em;
124
   font-weight:600;
124
   font-weight:600;
125
   color:#222;
125
   color:#222;
126
   margin: 10px 0 0 0;
126
   margin: 10px 0 0 0;
142
 }
142
 }
143
 .infoItem{
143
 .infoItem{
144
   color:#666;
144
   color:#666;
145
-  font-size: 0.1rem;
146
   margin: 0 0 30px 0;
145
   margin: 0 0 30px 0;
147
   
146
   
148
 }
147
 }
149
 .rightItem{
148
 .rightItem{
150
   color:#666;
149
   color:#666;
151
-  font-size: 0.1rem;
152
   margin: 0 0 15px 0;
150
   margin: 0 0 15px 0;
153
   display: flex;
151
   display: flex;
154
 }
152
 }
155
 .right{
153
 .right{
156
   width: 25%;
154
   width: 25%;
157
-  min-width: 1.3rem;
158
-  margin-left: 0.1rem;
159
-  padding-top: 0.3rem;
160
-  // position: absolute;
161
-  // top:108px;
162
-  // left:170px;
155
+  min-width: 130px;
156
+  margin-left: 10px;
157
+  padding-top: 30px;
163
 }
158
 }
164
 .rightphone{
159
 .rightphone{
165
 
160
 
175
 }
170
 }
176
 .rightInfo{
171
 .rightInfo{
177
   width: 28%;
172
   width: 28%;
178
-  min-width: 1.3rem;
179
-  margin-right: 0.1rem;
180
-  padding-top: 0.3rem;
181
-  // position: absolute;
182
-  // top:108px;
183
-  // left:80%;
173
+  min-width: 130px;
174
+  margin-right: 10px;
175
+  padding-top: 30px;
184
 }
176
 }
185
 
177
 
186
 .Centered{
178
 .Centered{
187
   width: 28%;
179
   width: 28%;
188
-  // position: absolute;
189
-  // top:108px;
190
-  // left:30%;
191
-  min-width: 1.3rem;
180
+  min-width: 130px;
192
   margin: 0 0 15px 0;
181
   margin: 0 0 15px 0;
193
   color:#666;
182
   color:#666;
194
-  font-size: 0.1rem;
195
-  padding-top: 0.3rem;
183
+  padding-top: 30px;
196
 }
184
 }
197
 
185
 
198
 .rightCentered{
186
 .rightCentered{
199
-  // position: absolute;
200
-  // top:108px;
201
-  // left:55%;
202
   flex: 1;
187
   flex: 1;
203
-  // width: 25%;
204
-  min-width: 1.3rem;
188
+  min-width: 130px;
205
   margin: 0 0 15px 0;
189
   margin: 0 0 15px 0;
206
-  padding-top: 0.3rem;
190
+  padding-top: 30px;
207
   color:#666;
191
   color:#666;
208
-  font-size: 0.1rem;
209
 }
192
 }
210
 
193
 
211
 
194
 
260
     position: relative;
243
     position: relative;
261
   }
244
   }
262
   .tit{
245
   .tit{
263
-    // font-size:0.15rem;
246
+    font-size: 1.5em;
264
     font-weight:600;
247
     font-weight:600;
265
     color:#222;
248
     color:#222;
266
     margin: 10px 0 0 0;
249
     margin: 10px 0 0 0;
282
   }
265
   }
283
   .infoItem{
266
   .infoItem{
284
     color:#666;
267
     color:#666;
285
-    // font-size: 0.1rem;
286
     margin: 0 0 30px 0;
268
     margin: 0 0 30px 0;
287
     
269
     
288
   }
270
   }
289
   .rightItem{
271
   .rightItem{
290
     color:#666;
272
     color:#666;
291
-    // font-size: 0.1rem;
292
     margin: 0 0 15px 0;
273
     margin: 0 0 15px 0;
293
     display: flex;
274
     display: flex;
294
   }
275
   }
295
   .right{
276
   .right{
296
     width: 25%;
277
     width: 25%;
297
-    min-width: 1.3rem;
298
-    margin-left: 0.1rem;
299
-    padding-top: 0.3rem;
278
+    min-width: 130px;
279
+    margin-left: 10px;
280
+    padding-top: 30px;
300
     // position: absolute;
281
     // position: absolute;
301
     // top:108px;
282
     // top:108px;
302
     // left:170px;
283
     // left:170px;
315
   }
296
   }
316
   .rightInfo{
297
   .rightInfo{
317
     width: 25%;
298
     width: 25%;
318
-    min-width: 1.3rem;
319
-    margin-right: 0.1rem;
320
-    padding-top: 0.3rem;
321
-    // position: absolute;
322
-    // top:108px;
323
-    // left:80%;
299
+    min-width: 130px;
300
+    margin-right: 10px;
301
+    padding-top: 30px;
324
   }
302
   }
325
 
303
 
326
   .Centered{
304
   .Centered{
328
     // position: absolute;
306
     // position: absolute;
329
     // top:108px;
307
     // top:108px;
330
     // left:30%;
308
     // left:30%;
331
-    min-width: 1.3rem;
309
+    min-width: 130px;
332
     margin: 0 0 15px 0;
310
     margin: 0 0 15px 0;
333
     color:#666;
311
     color:#666;
334
-    // font-size: 0.1rem;
335
-    padding-top: 0.3rem;
312
+    padding-top: 30px;
336
   }
313
   }
337
 
314
 
338
   .rightCentered{
315
   .rightCentered{
339
-    // position: absolute;
340
-    // top:108px;
341
-    // left:55%;
342
     width: 25%;
316
     width: 25%;
343
-    min-width: 1.3rem;
317
+    min-width: 130px;
344
     margin: 0 0 15px 0;
318
     margin: 0 0 15px 0;
345
-    padding-top: 0.3rem;
319
+    padding-top: 30px;
346
     color:#666;
320
     color:#666;
347
-    // font-size: 0.1rem;
348
   }
321
   }
349
   
322
   
350
 }
323
 }