Commit 0dc55331 authored by xxx's avatar xxx

解决删除控制点时报错问题

parent 0fd00123
......@@ -247,10 +247,20 @@ export default {
idArr1.push(item1.id);
})
//删除
if(idArr1.length == 0){
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((resDel2) => {
this.$notify({
title: '删除成功!',
type: 'success',
duration: 2500
});
this.resetData();
})
}else{
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((res) => {
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((resDel2) => {
this.$notify({
title: '删除成功,即将重新加载,请勿操作',
title: '删除成功',
type: 'success',
duration: 2500
});
......@@ -258,6 +268,7 @@ export default {
})
})
}
}
})
},
//保存卸点
......@@ -289,10 +300,20 @@ export default {
idArr1.push(item1.id);
})
//删除
if(idArr1.length == 0){
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((resDel2) => {
this.$notify({
title: '删除成功!',
type: 'success',
duration: 2500
});
this.resetData();
})
}else{
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((res) => {
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((resDel2) => {
this.$notify({
title: '删除成功,即将重新加载,请勿操作',
title: '删除成功',
type: 'success',
duration: 2500
});
......@@ -300,6 +321,7 @@ export default {
})
})
}
}
})
},
//保存控制点
......@@ -345,10 +367,20 @@ export default {
idArr1.push(item2.id);
})
//删除
if(idArr1.length == 0){
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((resDel2) => {
this.$notify({
title: '删除成功!',
type: 'success',
duration: 2500
});
this.resetData();
})
}else{
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {
HttpReq.truckDispatching.apiCpointDel([this.faControlPointId]).then((resDel2) => {
this.$notify({
title: '删除成功,即将重新加载,请勿操作',
title: '删除成功',
type: 'success',
duration: 2500
});
......@@ -356,12 +388,11 @@ export default {
})
})
}
}
})
}
})
},
//点击关键点获取对应数据
clickPointFn(item){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment