Explorar el Código

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

dingxin hace 5 años
padre
commit
f2070427a2

+ 7
- 7
src/pages/channel/brokerList.jsx Ver fichero

@@ -64,13 +64,13 @@ const columns = [
64 64
     align: 'center',
65 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 Ver fichero

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

+ 3
- 3
src/pages/customer/customerlist/components/integralRecord.jsx Ver fichero

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

+ 2
- 2
src/pages/customer/customerlist/components/recommend.jsx Ver fichero

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

+ 1
- 1
src/pages/customer/customerlist/customerDetail.jsx Ver fichero

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

+ 0
- 2
src/pages/customer/customerlist/index.jsx Ver fichero

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

+ 1
- 1
src/pages/customer/customerlist/publicCustomerDetail.jsx Ver fichero

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

+ 3
- 3
src/pages/customer/independentList/index.jsx Ver fichero

@@ -403,10 +403,10 @@ function body (props) {
403 403
           {
404 404
             <>
405 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 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 410
               <AuthButton name="admin.customer.recommend.id.get" noRight={null}>
411 411
                 <a style={{ color: 'rgba(239,39,58,1)' }} onClick={() => gM(record)}>推荐客户</a>
412 412
               </AuthButton>