zlisen 3 years ago
parent
commit
cdecdb4fb2

+ 10
- 4
src/pages/staff/staff/components/BatchAssistConsultant.jsx View File

3
 import moment from 'moment';
3
 import moment from 'moment';
4
 import apis from '@/services/apis';
4
 import apis from '@/services/apis';
5
 import request from '@/utils/request';
5
 import request from '@/utils/request';
6
-
6
+import BuildSelect from '@/components/SelectButton/BuildSelect'
7
 
7
 
8
 /**
8
 /**
9
  * 分配置业顾问
9
  * 分配置业顾问
58
         '',
58
         '',
59
     });
59
     });
60
   };
60
   };
61
-
61
+  changBuilding(buildingId){
62
+    this.getUserList({ pageNumber: 1, pageSize: 5, buildingId: buildingId })
63
+    this.setState({ visibleData: { visible: this.props.visible, buildingId: buildingId } });
64
+    // this.setState({ visibleData: { visible: this.props.visibleData.visible, customerId: this.props.visibleData.customerId, buildingName: buildingId } });
65
+  }
62
   // 分页
66
   // 分页
63
   onChange(pageNum) {
67
   onChange(pageNum) {
64
 
68
 
102
         key: 'personId',
106
         key: 'personId',
103
         width: 80,
107
         width: 80,
104
         // eslint-disable-next-line no-nested-ternary
108
         // eslint-disable-next-line no-nested-ternary
105
-        render: (_, record) => <>{record.userId !== this.props.userId ? <Button type="danger" onClick={() => this.submitGm(record)}>确定</Button> : ''}</>,
109
+        render: (_, record) => <>{record.realUserId !== this.props.userId ? <Button type='primary' onClick={() => this.submitGm(record)}>确定</Button> : ''}</>,
106
       },
110
       },
107
     ]
111
     ]
108
     return (
112
     return (
109
       <>
113
       <>
110
         <Modal
114
         <Modal
111
           title="分配置业顾问"
115
           title="分配置业顾问"
112
-          width={600}
113
           destroyOnClose="true"
116
           destroyOnClose="true"
114
           footer={null}
117
           footer={null}
118
+          width={900}
115
           visible={this.state.visibleData.visible}
119
           visible={this.state.visibleData.visible}
116
           onCancel={(e) => this.handleCancel(e)}
120
           onCancel={(e) => this.handleCancel(e)}
117
         >
121
         >
122
+           {/* onChange={this.changBuilding.bind(this)} */}
123
+          {/* <BuildSelect onChange={(e)=>this.changBuilding(e)} value={this.state.visibleData.buildingId} /> */}
118
           <Table rowKey="userId" dataSource={this.state.dataSource.records} columns={columns} pagination={{ pageSize: 5, total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
124
           <Table rowKey="userId" dataSource={this.state.dataSource.records} columns={columns} pagination={{ pageSize: 5, total: this.state.dataSource.total, onChange: e => this.onChange(e) }} />
119
         </Modal>
125
         </Modal>
120
       </>
126
       </>

+ 1
- 1
src/pages/staff/staff/list/index.jsx View File

265
         title="分配归属"
265
         title="分配归属"
266
         onCancel={() => setVisible(false)}
266
         onCancel={() => setVisible(false)}
267
         footer={null}
267
         footer={null}
268
-        width={900}
268
+        width={1200}
269
       >
269
       >
270
         {data && (
270
         {data && (
271
           <CustomerChange
271
           <CustomerChange