Commit 4ce5b4e9 authored by xxx's avatar xxx

解决采点管理报错

parent 9be71e6c
......@@ -341,12 +341,16 @@ export default {
idArr1.push(item1.id);
})
//删除
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {})
if(idArr1.length != 0){
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {})
}
}
})
HttpReq.truckDispatching.apiCpointQuery({name:delname}).then((res2) => {
if(res2.code == 200){
HttpReq.truckDispatching.apiCpointDel([res2.data.content[0].id]).then((res) => {})
if(res2.data.content[0].id){
HttpReq.truckDispatching.apiCpointDel([res2.data.content[0].id]).then((res) => {})
}
}
})
......
......@@ -418,12 +418,16 @@ export default {
idArr1.push(item1.id);
})
//删除
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {})
if(idArr1.length != 0){
HttpReq.truckDispatching.apiPathmapDel(idArr1).then((resDel1) => {})
}
}
})
HttpReq.truckDispatching.apiCpointQuery({name:delname}).then((res2) => {
if(res2.code == 200){
HttpReq.truckDispatching.apiCpointDel([res2.data.content[0].id]).then((res) => {})
if(res2.data.content[0].id){
HttpReq.truckDispatching.apiCpointDel([res2.data.content[0].id]).then((res) => {})
}
}
})
}
......
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