diff --git a/src/components/common/VnCard.vue b/src/components/common/VnCard.vue index 17fa74317..b211a3c7f 100644 --- a/src/components/common/VnCard.vue +++ b/src/components/common/VnCard.vue @@ -23,6 +23,7 @@ const props = defineProps({ searchCustomRouteRedirect: { type: String, default: undefined }, searchRedirect: { type: Boolean, default: true }, searchMakeFetch: { type: Boolean, default: true }, + searchUrlQuery: { type: String, default: undefined }, }); const stateStore = useStateStore(); @@ -70,6 +71,7 @@ if (props.baseUrl) { :url="props.searchUrl" :label="props.searchbarLabel" :info="props.searchbarInfo" + :search-url="props.searchUrlQuery" :custom-route-redirect-name="searchCustomRouteRedirect" :redirect="searchRedirect" /> diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 0c7a8a3f6..2053efd62 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -67,6 +67,10 @@ const props = defineProps({ type: Boolean, default: true, }, + searchUrl: { + type: String, + default: 'params', + }, }); const searchText = ref(''); diff --git a/src/pages/Route/Card/RouteForm.vue b/src/pages/Route/Card/RouteForm.vue index db7dede1e..b80b4536d 100644 --- a/src/pages/Route/Card/RouteForm.vue +++ b/src/pages/Route/Card/RouteForm.vue @@ -26,9 +26,6 @@ const defaultInitialData = { isOk: false, }; const maxDistance = ref(); -const workerList = ref([]); -const agencyList = ref([]); -const vehicleList = ref([]); const routeFilter = { fields: [ @@ -79,30 +76,6 @@ const onSave = (data, response) => {