|
@@ -28,6 +28,8 @@ const DemandList = React.createClass({
|
|
|
endDate: this.state.releaseDate[1],
|
|
|
dataCategory:this.state.dataCategorySearch,
|
|
|
auditStatus:this.state.auditStatusSearch,
|
|
|
+ cStartDate: this.state.releaseCreateTime[0],
|
|
|
+ cEndDate: this.state.releaseCreateTime[1],
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let theArr = [];
|
|
@@ -71,6 +73,7 @@ const DemandList = React.createClass({
|
|
|
return {
|
|
|
uploadFileLoading:false,
|
|
|
searchMore: true,
|
|
|
+ releaseCreateTime: [],
|
|
|
validityPeriodDate: [],
|
|
|
releaseDate: [],
|
|
|
selectedRowKeys: [],
|
|
@@ -275,11 +278,15 @@ const DemandList = React.createClass({
|
|
|
this.loadData();
|
|
|
},
|
|
|
reset() {
|
|
|
- this.state.nameSearch = '';
|
|
|
- this.state.releaseDate = [];
|
|
|
- this.state.dataCategorySearch = undefined;
|
|
|
- this.state.auditStatusSearch = undefined;
|
|
|
- this.loadData();
|
|
|
+ this.setState({
|
|
|
+ nameSearch: '',
|
|
|
+ releaseDate: [],
|
|
|
+ dataCategorySearch: undefined,
|
|
|
+ auditStatusSearch: undefined,
|
|
|
+ releaseCreateTime: []
|
|
|
+ },()=>{
|
|
|
+ this.loadData();
|
|
|
+ })
|
|
|
},
|
|
|
searchSwitch() {
|
|
|
this.setState({
|
|
@@ -384,12 +391,21 @@ const DemandList = React.createClass({
|
|
|
删除<Icon type="minus" />
|
|
|
</Button>
|
|
|
<span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
|
|
|
- <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
|
- <span>发布时间 :</span>
|
|
|
- <RangePicker
|
|
|
- value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
|
|
|
- this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
|
|
|
- onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
|
|
|
+ <div style={{display:'flex'}}>
|
|
|
+ <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
|
|
|
+ <span>发布时间 :</span>
|
|
|
+ <RangePicker
|
|
|
+ value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
|
|
|
+ this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
|
|
|
+ onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
|
|
|
+ </div>
|
|
|
+ <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {marginLeft:'10px',marginRight:'10px'}}>
|
|
|
+ <span>创建时间 :</span>
|
|
|
+ <RangePicker
|
|
|
+ value={[this.state.releaseCreateTime[0] ? moment(this.state.releaseCreateTime[0]) : null,
|
|
|
+ this.state.releaseCreateTime[1] ? moment(this.state.releaseCreateTime[1]) : null]}
|
|
|
+ onChange={(data, dataString) => { this.setState({ releaseCreateTime: dataString }); }} />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div className="patent-table">
|