|
@@ -121,8 +121,8 @@ const DemandList = React.createClass({
|
|
url: globalConfig.context + '/api/admin/demand/listDemandFollow',
|
|
url: globalConfig.context + '/api/admin/demand/listDemandFollow',
|
|
data: {
|
|
data: {
|
|
id:demandId,
|
|
id:demandId,
|
|
- pageNo: pageNo || 1,
|
|
|
|
- pageSize: this.state.matepagination.pageSize,
|
|
|
|
|
|
+ pNo: pageNo || 1,
|
|
|
|
+ pSize: this.state.matepagination.pageSize,
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
let theArr = [];
|
|
let theArr = [];
|
|
@@ -183,8 +183,8 @@ const DemandList = React.createClass({
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
url: globalConfig.context + '/api/admin/demand/listDemandFollowDetail',
|
|
url: globalConfig.context + '/api/admin/demand/listDemandFollowDetail',
|
|
data: {
|
|
data: {
|
|
- pageNo: pageNo || 1,
|
|
|
|
- pageSize: this.state.lookpagination.pageSize,
|
|
|
|
|
|
+ pNo: pageNo || 1,
|
|
|
|
+ pSize: this.state.lookpagination.pageSize,
|
|
id:rowItem.id
|
|
id:rowItem.id
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
@@ -206,12 +206,12 @@ const DemandList = React.createClass({
|
|
createTimeFormattedDate: thisdata.createTimeFormattedDate,//录入时间转格式
|
|
createTimeFormattedDate: thisdata.createTimeFormattedDate,//录入时间转格式
|
|
});
|
|
});
|
|
};
|
|
};
|
|
- this.state.pagination.current = data.data.pageNo;
|
|
|
|
- this.state.pagination.total = data.data.totalCount;
|
|
|
|
|
|
+ this.state.lookpagination.current = data.data.pageNo;
|
|
|
|
+ this.state.lookpagination.total = data.data.totalCount;
|
|
};
|
|
};
|
|
this.setState({
|
|
this.setState({
|
|
lookDataSource: theArr,
|
|
lookDataSource: theArr,
|
|
- pagination: this.state.pagination
|
|
|
|
|
|
+ lookpagination: this.state.lookpagination
|
|
});
|
|
});
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(function () {
|
|
}).always(function () {
|
|
@@ -261,7 +261,7 @@ const DemandList = React.createClass({
|
|
showQuickJumper: true,
|
|
showQuickJumper: true,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
onChange: function (page) {
|
|
onChange: function (page) {
|
|
- this.lookLoadData(page);
|
|
|
|
|
|
+ this.lookLoadData(page);
|
|
}.bind(this),
|
|
}.bind(this),
|
|
showTotal: function (total) {
|
|
showTotal: function (total) {
|
|
return '共' + total + '条数据';
|
|
return '共' + total + '条数据';
|
|
@@ -645,7 +645,6 @@ const DemandList = React.createClass({
|
|
id:demandId,
|
|
id:demandId,
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- console.log(data.data);
|
|
|
|
this.setState({
|
|
this.setState({
|
|
mademandId:data.data.id,//录入人
|
|
mademandId:data.data.id,//录入人
|
|
adminName: data.data.techBrokerId,//录入人
|
|
adminName: data.data.techBrokerId,//录入人
|
|
@@ -1345,7 +1344,6 @@ const DemandList = React.createClass({
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="add-form">
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="add-form">
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <Spin spinning={this.state.loading}>
|
|
|
|
<Form horizontal id="demand-form" onSubmit={this.contactSave} >
|
|
<Form horizontal id="demand-form" onSubmit={this.contactSave} >
|
|
<Table
|
|
<Table
|
|
pagination={this.state.lookpagination}
|
|
pagination={this.state.lookpagination}
|
|
@@ -1355,7 +1353,6 @@ const DemandList = React.createClass({
|
|
onRowClick={this.lookTableRowClick}
|
|
onRowClick={this.lookTableRowClick}
|
|
/>
|
|
/>
|
|
</Form>
|
|
</Form>
|
|
- </Spin>
|
|
|
|
</div>
|
|
</div>
|
|
</Spin>
|
|
</Spin>
|
|
</Form >
|
|
</Form >
|