From 6a9bbd93e896fb204b2a3d2d56eccc35a2c4f4e4 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 27 Jan 2025 08:16:29 +0100 Subject: [PATCH] feat: refs #8322 fix route.js and unify with /roadmap --- src/pages/Route/Roadmap/RoadmapFilter.vue | 17 ---- src/pages/Route/RouteRoadmap.vue | 30 ++++++- src/router/modules/index.js | 2 - src/router/modules/roadmap.js | 79 ------------------- src/router/modules/route.js | 53 ++++++++++++- src/router/routes.js | 2 - .../route/agency/agencyWorkCenter.spec.js | 2 +- .../route/roadMap/roadmapList.spec.js | 3 +- 8 files changed, 81 insertions(+), 107 deletions(-) delete mode 100644 src/router/modules/roadmap.js diff --git a/src/pages/Route/Roadmap/RoadmapFilter.vue b/src/pages/Route/Roadmap/RoadmapFilter.vue index ecf8d39fc..246b03cb2 100644 --- a/src/pages/Route/Roadmap/RoadmapFilter.vue +++ b/src/pages/Route/Roadmap/RoadmapFilter.vue @@ -18,22 +18,6 @@ const props = defineProps({ const emit = defineEmits(['search']); const supplierList = ref([]); -const exprBuilder = (param, value) => { - switch (param) { - case 'tractorPlate': - case 'trailerPlate': - case 'driverName': - case 'phone': - return { [param]: { like: `%${value}%` } }; - case 'supplierFk': - case 'price': - return { [param]: value }; - case 'from': - return { etd: { gte: value } }; - case 'to': - return { etd: { lte: value } }; - } -};