|
@@ -114,12 +114,16 @@ const SubContent = React.createClass({
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ this.state.firstField = e;
|
|
|
+ this.state.secondField = undefined;
|
|
|
+ this.state.thirdField = undefined;
|
|
|
this.setState({
|
|
|
fieldSecondOption: theArr,
|
|
|
firstField: e,
|
|
|
secondField: undefined,
|
|
|
thirdField: undefined
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.loadData();
|
|
|
},
|
|
|
fieldSecondChange(e) {
|
|
|
let theArr = [], _me = this;
|
|
@@ -136,11 +140,14 @@ const SubContent = React.createClass({
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ this.state.secondField = e;
|
|
|
+ this.state.thirdField = undefined;
|
|
|
this.setState({
|
|
|
fieldThirdOption: theArr,
|
|
|
secondField: e,
|
|
|
thirdField: undefined
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.loadData();
|
|
|
},
|
|
|
provinceChange(e) {
|
|
|
let theArr = [];
|
|
@@ -153,12 +160,16 @@ const SubContent = React.createClass({
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ this.state.province = e;
|
|
|
+ this.state.city = undefined;
|
|
|
+ this.state.area = undefined;
|
|
|
this.setState({
|
|
|
cityOption: theArr,
|
|
|
province: e,
|
|
|
city: undefined,
|
|
|
area: undefined
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.loadData();
|
|
|
},
|
|
|
cityChange(e) {
|
|
|
let theArr = [], _me = this;
|
|
@@ -175,55 +186,18 @@ const SubContent = React.createClass({
|
|
|
});
|
|
|
};
|
|
|
});
|
|
|
+ this.state.city = e;
|
|
|
+ this.state.area = undefined;
|
|
|
this.setState({
|
|
|
areaOption: theArr,
|
|
|
city: e,
|
|
|
area: undefined
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.loadData();
|
|
|
},
|
|
|
tableRowClick(record, index) {
|
|
|
window.open(globalConfig.context + '/user/subscriberDetail.html?rid=' + record.uid + '&type=' + record.type);
|
|
|
},
|
|
|
- interest(e) {
|
|
|
- this.setState({
|
|
|
- loading: true
|
|
|
- });
|
|
|
- $.ajax({
|
|
|
- method: "POST",
|
|
|
- dataType: "json",
|
|
|
- url: globalConfig.context + "/api/user/interest/interestUser",
|
|
|
- data: {
|
|
|
- toUid: e
|
|
|
- }
|
|
|
- }).done(function (data) {
|
|
|
- if (data.error && data.error.length) {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- this.setState({
|
|
|
- loading: false
|
|
|
- });
|
|
|
- }.bind(this));
|
|
|
- },
|
|
|
- cancelInterest(e) {
|
|
|
- this.setState({
|
|
|
- loading: true
|
|
|
- });
|
|
|
- $.ajax({
|
|
|
- method: "POST",
|
|
|
- dataType: "json",
|
|
|
- url: globalConfig.context + "/api/user/interest/cancelInterest",
|
|
|
- data: {
|
|
|
- interestId: e
|
|
|
- }
|
|
|
- }).done(function (data) {
|
|
|
- if (data.error && data.error.length) {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- };
|
|
|
- this.setState({
|
|
|
- loading: false
|
|
|
- });
|
|
|
- }.bind(this));
|
|
|
- },
|
|
|
render() {
|
|
|
const { pageNo, pageSize, total } = this.state.pagination;
|
|
|
const _me = this;
|
|
@@ -281,7 +255,11 @@ const SubContent = React.createClass({
|
|
|
notFoundContent="未获取到行业分类"
|
|
|
showSearch
|
|
|
filterOption={companySearch}
|
|
|
- onChange={(e) => { this.setState({ thirdField: e }) }}>
|
|
|
+ onChange={(e) => {
|
|
|
+ this.state.thirdField = e;
|
|
|
+ this.setState({ thirdField: e });
|
|
|
+ this.loadData();
|
|
|
+ }}>
|
|
|
{this.state.fieldThirdOption}
|
|
|
</Select>
|
|
|
<Button type="ghost" style={{ marginLeft: '20px' }}
|
|
@@ -327,7 +305,11 @@ const SubContent = React.createClass({
|
|
|
notFoundContent="未获取到行政区列表"
|
|
|
showSearch
|
|
|
filterOption={companySearch}
|
|
|
- onChange={(e) => { this.setState({ area: e }) }}>
|
|
|
+ onChange={(e) => {
|
|
|
+ this.state.area = e;
|
|
|
+ this.setState({ area: e });
|
|
|
+ this.loadData();
|
|
|
+ }}>
|
|
|
{this.state.areaOption}
|
|
|
</Select>
|
|
|
<Button type="ghost" style={{ marginLeft: '20px' }}
|
|
@@ -381,12 +363,12 @@ const SubContent = React.createClass({
|
|
|
<div className="text">
|
|
|
<span style={{ letterSpacing: '32px' }}>需</span>
|
|
|
<span>求: </span>
|
|
|
- <span className="text-Number"> {item.demandNum} </span>
|
|
|
+ <span className="text-Number"> {item.demandNum || 0} </span>
|
|
|
<span className="text-unit"> 条</span>
|
|
|
</div>
|
|
|
<div className="text">
|
|
|
<span>技术成果: </span>
|
|
|
- <span className="text-Number"> {item.achievementNum} </span>
|
|
|
+ <span className="text-Number"> {item.achievementNum || 0} </span>
|
|
|
<span className="text-unit"> 条</span>
|
|
|
</div>
|
|
|
</li>
|