|
@@ -136,7 +136,8 @@ const AchievementList = Form.create()(React.createClass({
|
|
}.bind(this));
|
|
}.bind(this));
|
|
},
|
|
},
|
|
//点击+号进行两次查询,这个是查询联系人的函数
|
|
//点击+号进行两次查询,这个是查询联系人的函数
|
|
- getNewWoman(index) {
|
|
|
|
|
|
+ getNewWoman(index) {
|
|
|
|
+ console.log(index)
|
|
this.state.data = []
|
|
this.state.data = []
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "post",
|
|
method: "post",
|
|
@@ -222,6 +223,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
|
|
|
//通过ID查询这一条的信息
|
|
//通过ID查询这一条的信息
|
|
Detailload(deletedIds,record){
|
|
Detailload(deletedIds,record){
|
|
|
|
+ console.log(deletedIds)
|
|
this.RowClick;
|
|
this.RowClick;
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "post",
|
|
method: "post",
|
|
@@ -297,16 +299,10 @@ const AchievementList = Form.create()(React.createClass({
|
|
setModal1VisibleOk(e) {
|
|
setModal1VisibleOk(e) {
|
|
this.setState({modal1Visible:true});
|
|
this.setState({modal1Visible:true});
|
|
this.state.remarkst='';
|
|
this.state.remarkst='';
|
|
- let deletedIds;
|
|
|
|
- for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
|
|
- let rowItem = this.state.selectedRows[idx];
|
|
|
|
- if (rowItem.id) {
|
|
|
|
- deletedIds=rowItem.id;
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
|
|
+ let deletedIds=this.state.recordt;
|
|
this.setState({
|
|
this.setState({
|
|
remarks:'',
|
|
remarks:'',
|
|
- selectedRowKeys: [],
|
|
|
|
|
|
+ selectedRowKeys: this.state.selectedRowKeys,
|
|
});
|
|
});
|
|
this.Detailload(deletedIds);
|
|
this.Detailload(deletedIds);
|
|
this.getNewWoman(deletedIds);
|
|
this.getNewWoman(deletedIds);
|
|
@@ -342,9 +338,9 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
|
|
|
rescordlist(deletedIds){
|
|
rescordlist(deletedIds){
|
|
this.setState({
|
|
this.setState({
|
|
- selectedRowKeys:[],
|
|
|
|
|
|
+ selectedRowKeys:this.state.selectedRowKeys,
|
|
});
|
|
});
|
|
- this.state.data = [];
|
|
|
|
|
|
+ this.state.data = [];
|
|
$.ajax({
|
|
$.ajax({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
@@ -403,13 +399,10 @@ const AchievementList = Form.create()(React.createClass({
|
|
this.setState({
|
|
this.setState({
|
|
loading: true
|
|
loading: true
|
|
});
|
|
});
|
|
- let deletedIds=this.state.rowId;
|
|
|
|
- for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
|
|
- let rowItem = this.state.selectedRows[idx];
|
|
|
|
- if (rowItem.id) {
|
|
|
|
- deletedIds=rowItem.id;
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
|
|
+ this.setState({
|
|
|
|
+ selectedRowKeys:this.state.selectedRowKeys,
|
|
|
|
+ });
|
|
|
|
+ let deletedIds=this.state.recordt;
|
|
this.rescordlist(deletedIds)
|
|
this.rescordlist(deletedIds)
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1425,6 +1418,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
this.findCustomerHistory(record.id);
|
|
this.findCustomerHistory(record.id);
|
|
this.historyList(record.id);
|
|
this.historyList(record.id);
|
|
this.setState({
|
|
this.setState({
|
|
|
|
+ selectedRowKeys:[],
|
|
rowId:record.id ,
|
|
rowId:record.id ,
|
|
before_customerStatus:record._customerStatus,
|
|
before_customerStatus:record._customerStatus,
|
|
before_companyIntention:record._companyIntention,
|
|
before_companyIntention:record._companyIntention,
|
|
@@ -1720,7 +1714,12 @@ const AchievementList = Form.create()(React.createClass({
|
|
selectedRows: selectedRows.slice(-1),
|
|
selectedRows: selectedRows.slice(-1),
|
|
selectedRowKeys: selectedRowKeys.slice(-1)
|
|
selectedRowKeys: selectedRowKeys.slice(-1)
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ onSelect: (recordt, selected, selectedRows) => {
|
|
|
|
+ this.setState({
|
|
|
|
+ recordt:recordt.id
|
|
|
|
+ })
|
|
|
|
+ },
|
|
};
|
|
};
|
|
const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
const hasSelected = this.state.selectedRowKeys.length > 0;
|
|
const { RangePicker } = DatePicker;
|
|
const { RangePicker } = DatePicker;
|