Browse Source

去除经纪人页面和渠道管理里面的邀请经纪人

dingxin 5 years ago
parent
commit
f2070427a2

+ 7
- 7
src/pages/channel/brokerList.jsx View File

64
     align: 'center',
64
     align: 'center',
65
     render: (text, list) => <a style={ { color: '#66B3FF' } } onClick= {() => torecommend(list.personId)} >{ list.recommendCount }</a>,
65
     render: (text, list) => <a style={ { color: '#66B3FF' } } onClick= {() => torecommend(list.personId)} >{ list.recommendCount }</a>,
66
   },
66
   },
67
-  {
68
-    title: '邀请经纪人',
69
-    dataIndex: 'inviteCount',
70
-    key: 'inviteCount',
71
-    align: 'center',
72
-    render: (text, list) => <a style={ { color: '#66B3FF' } } onClick= {() => toinvite(list.personId)} >{ list.inviteCount }</a>,
73
-  },
67
+  // {
68
+  //   title: '邀请经纪人',
69
+  //   dataIndex: 'inviteCount',
70
+  //   key: 'inviteCount',
71
+  //   align: 'center',
72
+  //   render: (text, list) => <a style={ { color: '#66B3FF' } } onClick= {() => toinvite(list.personId)} >{ list.inviteCount }</a>,
73
+  // },
74
 ];
74
 ];
75
 
75
 
76
 // 跳转到推荐客户
76
 // 跳转到推荐客户

+ 1
- 1
src/pages/customer/customerlist/components/changeStatus.jsx View File

23
 
23
 
24
   // 弹框取消按钮
24
   // 弹框取消按钮
25
   handleCancel() {
25
   handleCancel() {
26
-    this.setState({ visibleData: { visible: false, customerId: '' } })
26
+    this.props.onCancel()
27
   }
27
   }
28
 
28
 
29
   onChange = e => {
29
   onChange = e => {

+ 3
- 3
src/pages/customer/customerlist/components/integralRecord.jsx View File

27
 
27
 
28
   // 挂载之后
28
   // 挂载之后
29
   componentDidMount() {
29
   componentDidMount() {
30
-    this.getList({ pageNumber: 1, pageSize: 5 })
30
+    // this.getList({ pageNumber: 1, pageSize: 5 })
31
   }
31
   }
32
 
32
 
33
   componentDidUpdate(preProps, preState) {
33
   componentDidUpdate(preProps, preState) {
40
   // 弹框确定按钮
40
   // 弹框确定按钮
41
   // eslint-disable-next-line react/sort-comp
41
   // eslint-disable-next-line react/sort-comp
42
   handleOk() {
42
   handleOk() {
43
-    this.setState({ visibleData: { visible: false, customerId: '' } })
43
+    this.props.onCancel()
44
   }
44
   }
45
 
45
 
46
   // 弹框取消按钮
46
   // 弹框取消按钮
47
   handleCancel() {
47
   handleCancel() {
48
-    this.setState({ visibleData: { visible: false, customerId: '' } })
48
+    this.props.onCancel()
49
   }
49
   }
50
 
50
 
51
   openNotificationWithIcon = (type, message) => {
51
   openNotificationWithIcon = (type, message) => {

+ 2
- 2
src/pages/customer/customerlist/components/recommend.jsx View File

41
   // 弹框确定按钮
41
   // 弹框确定按钮
42
   // eslint-disable-next-line react/sort-comp
42
   // eslint-disable-next-line react/sort-comp
43
   handleOk() {
43
   handleOk() {
44
-    this.setState({ visibleData: { visible: false, customerId: '' } })
44
+    this.props.onCancel()
45
   }
45
   }
46
 
46
 
47
   // 弹框取消按钮
47
   // 弹框取消按钮
48
   handleCancel() {
48
   handleCancel() {
49
-    this.setState({ visibleData: { visible: false, customerId: '' } })
49
+    this.props.onCancel()
50
   }
50
   }
51
 
51
 
52
   openNotificationWithIcon = (type, message) => {
52
   openNotificationWithIcon = (type, message) => {

+ 1
- 1
src/pages/customer/customerlist/customerDetail.jsx View File

83
       dataIndex: 'visitTime',
83
       dataIndex: 'visitTime',
84
       key: 'visitTime',
84
       key: 'visitTime',
85
       align: 'center',
85
       align: 'center',
86
-
86
+      render: (_, record) => <span> {moment(record.visitTime).format('YYYY-MM-DD hh:mm:ss') }</span>,
87
     },
87
     },
88
     {
88
     {
89
       title: '停留时间',
89
       title: '停留时间',

+ 0
- 2
src/pages/customer/customerlist/index.jsx View File

198
 
198
 
199
   // 关闭调整归属的窗口
199
   // 关闭调整归属的窗口
200
   function closeAttribution() {
200
   function closeAttribution() {
201
-    alert(1)
202
     setGVisibleData({ visible: false, customerId: '', realtyConsultant: '', buildingId: '' })
201
     setGVisibleData({ visible: false, customerId: '', realtyConsultant: '', buildingId: '' })
203
     getList({ pageNum: 1, pageSize: 10, customerType, ...props.form.getFieldsValue() })
202
     getList({ pageNum: 1, pageSize: 10, customerType, ...props.form.getFieldsValue() })
204
   }
203
   }
205
   // 回调关闭所有弹框
204
   // 回调关闭所有弹框
206
   function closeAll() {
205
   function closeAll() {
207
-    alert(1)
208
     setRecordVisibleData({ visible: false, customerId: '' })
206
     setRecordVisibleData({ visible: false, customerId: '' })
209
     setGVisibleData({ visible: false, customerId: '', realtyConsultant: '', buildingId: '' })
207
     setGVisibleData({ visible: false, customerId: '', realtyConsultant: '', buildingId: '' })
210
     setStatusVisibleData({ visible: false, customerId: '', status: '' })
208
     setStatusVisibleData({ visible: false, customerId: '', status: '' })

+ 1
- 1
src/pages/customer/customerlist/publicCustomerDetail.jsx View File

84
       dataIndex: 'visitTime',
84
       dataIndex: 'visitTime',
85
       key: 'visitTime',
85
       key: 'visitTime',
86
       align: 'center',
86
       align: 'center',
87
-
87
+      render: (_, record) => <span> {moment(record.visitTime).format('YYYY-MM-DD hh:mm:ss') }</span>,
88
     },
88
     },
89
     {
89
     {
90
       title: '停留时间',
90
       title: '停留时间',

+ 3
- 3
src/pages/customer/independentList/index.jsx View File

403
           {
403
           {
404
             <>
404
             <>
405
               {/* <span style={{ color: 'rgba(239,39,58,1)' }}>查看详细</span> */}
405
               {/* <span style={{ color: 'rgba(239,39,58,1)' }}>查看详细</span> */}
406
-              <AuthButton name="admin.channel.InviteClientsList.get" noRight={null}>
406
+              {/* <AuthButton name="admin.channel.InviteClientsList.get" noRight={null}>
407
                 <a style={{ color: 'rgba(239,39,58,1)' }} onClick={() => Invite(record)}>邀请经纪人</a>
407
                 <a style={{ color: 'rgba(239,39,58,1)' }} onClick={() => Invite(record)}>邀请经纪人</a>
408
-              </AuthButton>
409
-              &nbsp;&nbsp;&nbsp;&nbsp;
408
+              </AuthButton> */}
409
+              {/* &nbsp;&nbsp;&nbsp;&nbsp; */}
410
               <AuthButton name="admin.customer.recommend.id.get" noRight={null}>
410
               <AuthButton name="admin.customer.recommend.id.get" noRight={null}>
411
                 <a style={{ color: 'rgba(239,39,58,1)' }} onClick={() => gM(record)}>推荐客户</a>
411
                 <a style={{ color: 'rgba(239,39,58,1)' }} onClick={() => gM(record)}>推荐客户</a>
412
               </AuthButton>
412
               </AuthButton>