|
@@ -108,25 +108,27 @@ const OrgList = React.createClass({
|
|
auditStatus: this.state.searchAuditStatus
|
|
auditStatus: this.state.searchAuditStatus
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- if (data.error.length || !data.data || !data.data.list) {
|
|
+ if (!data.data || !data.data.list) {
|
|
- message.warning(data.error[0].message);
|
|
+ if (data.error && data.error.length) {
|
|
- return;
|
|
+ message.warning(data.error[0].message);
|
|
- }
|
|
+ };
|
|
- for (let i = 0; i < data.data.list.length; i++) {
|
|
+ } else {
|
|
- let thisdata = data.data.list[i];
|
|
+ for (let i = 0; i < data.data.list.length; i++) {
|
|
- this.state.data.push({
|
|
+ let thisdata = data.data.list[i];
|
|
- key: i,
|
|
+ this.state.data.push({
|
|
- id: thisdata.id,
|
|
+ key: i,
|
|
- mobile: thisdata.mobile,
|
|
+ id: thisdata.id,
|
|
- email: thisdata.email,
|
|
+ mobile: thisdata.mobile,
|
|
- createTime: thisdata.createTime,
|
|
+ email: thisdata.email,
|
|
- aftUsername: thisdata.aftUsername,
|
|
+ createTime: thisdata.createTime,
|
|
- number: thisdata.number,
|
|
+ aftUsername: thisdata.aftUsername,
|
|
- orgAuditStatus: thisdata.orgAuditStatus,
|
|
+ number: thisdata.number,
|
|
- createTimeFormattedDate: thisdata.createTimeFormattedDate,
|
|
+ orgAuditStatus: thisdata.orgAuditStatus,
|
|
- adminName: thisdata.adminName,
|
|
+ createTimeFormattedDate: thisdata.createTimeFormattedDate,
|
|
- unitName: thisdata.unitName
|
|
+ adminName: thisdata.adminName,
|
|
- });
|
|
+ unitName: thisdata.unitName
|
|
|
|
+ });
|
|
|
|
+ };
|
|
this.state.pagination.current = data.data.pageNo;
|
|
this.state.pagination.current = data.data.pageNo;
|
|
this.state.pagination.total = data.data.totalCount;
|
|
this.state.pagination.total = data.data.totalCount;
|
|
};
|
|
};
|