diff --git a/src/components/Map/MapBox.vue b/src/components/Map/MapBox.vue index d511b56..33def0e 100644 --- a/src/components/Map/MapBox.vue +++ b/src/components/Map/MapBox.vue @@ -642,17 +642,17 @@ }, }, //车辆 - // cheliang: { - // method: supervisionRealinformationList, - // fields: { lng: 'longitude', lat: 'latitude', name: 'plateNumber' }, - // groupMethod: data => - // _.groupBy( - // data.supervisionRealinformationList - // .filter(i => i.longitude && i.latitude) - // .map(item => ({ ...item, type: item.vehicleCategory + item.status })), - // v => v.type - // ), - // }, + cheliang: { + method: supervisionRealinformationList, + fields: { lng: 'longitude', lat: 'latitude', name: 'plateNumber' }, + groupMethod: data => + _.groupBy( + data.supervisionRealinformationList + .filter(i => i.longitude && i.latitude) + .map(item => ({ ...item, type: item.vehicleCategory + item.status })), + v => v.type + ), + }, }; const other_data_params = {}; let keys = Object.keys(params || data_default_params);