Browse Source

修复配送全部列表配送司机显示

dev
qb 5 days ago
parent
commit
0fe113a606
  1. 21
      src/views/distribution/deliverylist/distributionDeliveryList.vue

21
src/views/distribution/deliverylist/distributionDeliveryList.vue

@ -716,17 +716,16 @@ export default {
getDriverList(1, 10, '').then(res => { getDriverList(1, 10, '').then(res => {
const data = res.data.data; const data = res.data.data;
let po = []; let po = [];
if (data.records?.length) {
data.records.forEach(item => { data.forEach(item => {
let a = { let a = {
dictKey: item.id, dictKey: item.id,
dictValue: item.name, dictValue: item.name,
}; };
po.push(a); po.push(a);
}); });
this.driverData = po; this.driverData = po;
rv(res.data.data.records); rv(res.data.data.records);
}
}); });
}); });
}, },

Loading…
Cancel
Save