|
@@ -141,15 +141,17 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
},
|
|
|
success: function (data) {
|
|
|
let theArr = [];
|
|
|
- if (!data.data || !data.data.list) {
|
|
|
+ let ad;
|
|
|
+ if (data.data.list=="") {
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
+ ad=data.data.list[0].aid;
|
|
|
for (let i = 0; i < data.data.list.length; i++) {
|
|
|
let thisdata = data.data.list[i];
|
|
|
theArr.push({
|
|
|
- key: i,
|
|
|
+ key: i,
|
|
|
id: thisdata.id,
|
|
|
companyName:thisdata.companyName,//公司名称
|
|
|
_shareType:thisdata._shareType,//客户类型
|
|
@@ -165,15 +167,14 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
adminName:thisdata.adminName, //跟进人
|
|
|
followDate:thisdata.followDate,
|
|
|
customerStatus:thisdata.customerStatus,//客户状态
|
|
|
- companyIntention:thisdata.companyIntention,//意向服务
|
|
|
-
|
|
|
+ companyIntention:thisdata.companyIntention,//意向服务
|
|
|
});
|
|
|
};
|
|
|
this.state.pagination.current = data.data.pageNumber;
|
|
|
this.state.pagination.total = data.data.totalCount;
|
|
|
};
|
|
|
this.setState({
|
|
|
- aid:data.data.list[0].aid,
|
|
|
+ aid:ad,
|
|
|
dataSource: theArr,
|
|
|
pagination: this.state.pagination
|
|
|
});
|
|
@@ -398,7 +399,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
|
|
|
//删除历史记录
|
|
|
onDelete(index){
|
|
|
- alert(index);
|
|
|
+
|
|
|
let deleteID=this.state.theFollowID[index];
|
|
|
$.ajax({
|
|
|
method: "get",
|
|
@@ -520,7 +521,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
//查看所有的联系人
|
|
|
setModal7VisibleOk(e) {
|
|
|
this.setState({ modal7Visible:true }); //需要一个请求数据
|
|
|
- alert(369);
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -574,12 +575,12 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
if (rowItem.id) {
|
|
|
deletedIds=rowItem.id;
|
|
|
};
|
|
|
- alert(deletedIds);
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
changefollow(e){
|
|
|
e.preventDefault();
|
|
|
- alert(963);
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "post",
|
|
|
dataType: "json",
|
|
@@ -718,7 +719,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
console.log(this.state.kid)
|
|
|
let customerStatus= getcustomerStatueOn(this.state.customerStatus);
|
|
|
let followSituation= getfllowSituationOn(this.state.followSituation);
|
|
|
- alert("这是1234");
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
@@ -815,7 +816,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
}
|
|
|
let companyIntentions= getCompanyIntentionOn(values.companyIntention);
|
|
|
let followSituations= getfllowSituationOn(values.followSituation);
|
|
|
- alert("这是112233");
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
@@ -868,7 +869,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
},
|
|
|
|
|
|
submitcontactman(e){
|
|
|
- alert(190);
|
|
|
+
|
|
|
let deletedIds;
|
|
|
for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
|
let rowItem = this.state.selectedRows[idx];
|
|
@@ -885,7 +886,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
|
- alert(23333);
|
|
|
+
|
|
|
$.ajax({
|
|
|
method: "POST",
|
|
|
dataType: "json",
|
|
@@ -973,7 +974,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
if (data.error && data.error.length) {
|
|
|
message.warning(data.error[0].message);
|
|
|
};
|
|
|
- alert(111);
|
|
|
+
|
|
|
} else {
|
|
|
for (let i = 0; i < data.data.length; i++) {
|
|
|
|