|
@@ -11,19 +11,21 @@ const DemandList = React.createClass({
|
|
|
loadData(pageNo) {
|
|
|
this.state.data = [];
|
|
|
this.setState({
|
|
|
+ selectedRowKeys:[],
|
|
|
loading: true
|
|
|
});
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
|
dataType: "json",
|
|
|
crossDomain: false,
|
|
|
- url: globalConfig.context + "/api/admin/demand/list",
|
|
|
+ url: globalConfig.context + "/api/user/getExpertAuditList",
|
|
|
data: {
|
|
|
pageNo: pageNo || 1,
|
|
|
pageSize: this.state.pagination.pageSize,
|
|
|
- identifyName: this.state.nameSearch,
|
|
|
+ username: this.state.nameSearch,
|
|
|
industry:this.state.demandTypeSearch,
|
|
|
- authType: this.state.statusSearch
|
|
|
+ expert: this.state.statusSearch,
|
|
|
+ expertAudit:'1'
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let theArr = [];
|
|
@@ -37,16 +39,13 @@ const DemandList = React.createClass({
|
|
|
theArr.push({
|
|
|
key: i,
|
|
|
id: thisdata.id,
|
|
|
+ uid:thisdata.uid,
|
|
|
serialNumber: thisdata.serialNumber,
|
|
|
- status: thisdata.status,
|
|
|
- name: thisdata.name,
|
|
|
- demandType: thisdata.demandType,
|
|
|
- auditStatus: thisdata.auditStatus,
|
|
|
- isHot: thisdata.isHot,
|
|
|
- isUrgent: thisdata.isUrgent,
|
|
|
- employerName:thisdata.employerName,
|
|
|
- createTime:thisdata.createTime?(new Date(thisdata.createTime)).toLocaleString():'',
|
|
|
- releaseDate:thisdata.releaseDate?(new Date(thisdata.releaseDate)).toLocaleString():''
|
|
|
+ identifyName: thisdata.username,
|
|
|
+ mobile: thisdata.contactMobile,
|
|
|
+ industry: thisdata.industry,
|
|
|
+ expert:thisdata.expert,
|
|
|
+
|
|
|
});
|
|
|
};
|
|
|
}
|
|
@@ -111,12 +110,11 @@ const DemandList = React.createClass({
|
|
|
key: 'industry',
|
|
|
render: (text) => { return getIndustry(text); }
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
title: '认证类型',
|
|
|
- dataIndex: 'authType',
|
|
|
- key: 'authType',
|
|
|
- render: text => { return text=='0'?'专家认证':text=='1'?'顾问认证':'未认证' }
|
|
|
+ dataIndex: 'expert',
|
|
|
+ key: 'expert',
|
|
|
+ render: text => { return text=='1'?'专家认证':text=='2'?'顾问认证':'未认证' }
|
|
|
},
|
|
|
{
|
|
|
title: '认证审核',
|
|
@@ -166,10 +164,7 @@ const DemandList = React.createClass({
|
|
|
reset() {
|
|
|
this.state.nameSearch = '';
|
|
|
this.state.demandTypeSearch = undefined;
|
|
|
- this.state.auditStatus = undefined;
|
|
|
this.state.statusSearch = undefined;
|
|
|
- this.state.employerNameSearch='';
|
|
|
- this.state.releaseDate = [];
|
|
|
this.loadData();
|
|
|
},
|
|
|
searchSwitch() {
|