Commit 0b08a8d5 authored by xxx's avatar xxx

修改区域信息时报错问题

parent 3044016b
......@@ -346,7 +346,7 @@ export default {
reqUpdateItem(form, item){
let lastData = {...item};
lastData.card = this.picFileName;
lastData.cars = this.checkDataList;
//lastData.cars = this.checkDataList;
HttpReq.truckDispatching.RegionalInformationUpdate(lastData).then((res) => {
form.visible = false;
if(res.code == 200){
......@@ -367,7 +367,9 @@ export default {
}).catch(function(error) {
form.status.cu = 0
});
HttpReq.truckDispatching.RegionalInformationCarDel(this.oldCheckDataList).then((res) => { })
if(this.oldCheckDataList.length != 0){
HttpReq.truckDispatching.RegionalInformationCarDel(this.oldCheckDataList).then((res) => {})
}
this.$nextTick(()=>{
this.checkDataList.forEach((carItem,index)=>{
let uploadCarData = {};
......
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