zlisen 3 年之前
父節點
當前提交
cdecdb4fb2
共有 2 個文件被更改,包括 11 次插入5 次删除
  1. 10
    4
      src/pages/staff/staff/components/BatchAssistConsultant.jsx
  2. 1
    1
      src/pages/staff/staff/list/index.jsx

+ 10
- 4
src/pages/staff/staff/components/BatchAssistConsultant.jsx 查看文件

@@ -3,7 +3,7 @@ import { Form, Icon, Input, Button, DatePicker, Select, Card, Row, Col, Paginati
3 3
 import moment from 'moment';
4 4
 import apis from '@/services/apis';
5 5
 import request from '@/utils/request';
6
-
6
+import BuildSelect from '@/components/SelectButton/BuildSelect'
7 7
 
8 8
 /**
9 9
  * 分配置业顾问
@@ -58,7 +58,11 @@ class ModalAttribution extends React.Component {
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 67
   onChange(pageNum) {
64 68
 
@@ -102,19 +106,21 @@ class ModalAttribution extends React.Component {
102 106
         key: 'personId',
103 107
         width: 80,
104 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 112
     return (
109 113
       <>
110 114
         <Modal
111 115
           title="分配置业顾问"
112
-          width={600}
113 116
           destroyOnClose="true"
114 117
           footer={null}
118
+          width={900}
115 119
           visible={this.state.visibleData.visible}
116 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 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 125
         </Modal>
120 126
       </>

+ 1
- 1
src/pages/staff/staff/list/index.jsx 查看文件

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