fix(admin): solo mostrar paradas de la ruta en dropdown de inicio/fin

This commit is contained in:
2026-03-11 14:22:45 -05:00
parent 65b8bc1f43
commit 512711ecf5
2 changed files with 124 additions and 2 deletions

122
frontend/out.json Normal file
View File

@ -0,0 +1,122 @@
[
{
"stop_order": 0,
"bus_stops": {
"name": "Parada Parque Boquete",
"latitude": 8.7764706,
"longitude": -82.4324993
}
},
{
"stop_order": 1,
"bus_stops": {
"name": "P. Supermercado Rey",
"latitude": 8.7688041,
"longitude": -82.4332474
}
},
{
"stop_order": 2,
"bus_stops": {
"name": "P. Entrada Volcancito",
"latitude": 8.7569716,
"longitude": -82.4317303
}
},
{
"stop_order": 3,
"bus_stops": {
"name": "P. Villa La Paz",
"latitude": 8.7543505,
"longitude": -82.4316283
}
},
{
"stop_order": 4,
"bus_stops": {
"name": "P. Terpel Alto Boquete",
"latitude": 8.7520024,
"longitude": -82.4318432
}
},
{
"stop_order": 5,
"bus_stops": {
"name": "P. Mini Super Alto Dorado",
"latitude": 8.7500574,
"longitude": -82.4320427
}
},
{
"stop_order": 6,
"bus_stops": {
"name": "P. BTA",
"latitude": 8.7451912,
"longitude": -82.4324671
}
},
{
"stop_order": 7,
"bus_stops": {
"name": "P. Plaza San Francisco",
"latitude": 8.7382538,
"longitude": -82.4330994
}
},
{
"stop_order": 8,
"bus_stops": {
"name": "P. Escuela Alto Boquete",
"latitude": 8.7321499,
"longitude": -82.4336354
}
},
{
"stop_order": 9,
"bus_stops": {
"name": "P. 10",
"latitude": 8.729323,
"longitude": -82.4340776
}
},
{
"stop_order": 10,
"bus_stops": {
"name": "P. 11",
"latitude": 8.7275817,
"longitude": -82.4348154
}
},
{
"stop_order": 11,
"bus_stops": {
"name": "P. MercaMax",
"latitude": 8.7255787,
"longitude": -82.4359451
}
},
{
"stop_order": 12,
"bus_stops": {
"name": "P. Seminario",
"latitude": 8.7218976,
"longitude": -82.4379503
}
},
{
"stop_order": 13,
"bus_stops": {
"name": "P. Instituto Guadalupano",
"latitude": 8.7197081,
"longitude": -82.4391483
}
},
{
"stop_order": 14,
"bus_stops": {
"name": "P. UNACHI Boquete",
"latitude": 8.7165669,
"longitude": -82.4408624
}
}
]

View File

@ -117,7 +117,7 @@
</label> </label>
<select v-model="selectedRoute.origin_stop_id" @change="updateRouteDetails"> <select v-model="selectedRoute.origin_stop_id" @change="updateRouteDetails">
<option :value="null"> Sin definir </option> <option :value="null"> Sin definir </option>
<option v-for="stop in allStops" :key="stop.id" :value="stop.id"> <option v-for="stop in routeStops" :key="stop.id" :value="stop.id">
{{ stop.name }} {{ stop.name }}
</option> </option>
</select> </select>
@ -129,7 +129,7 @@
</label> </label>
<select v-model="selectedRoute.destination_stop_id" @change="updateRouteDetails"> <select v-model="selectedRoute.destination_stop_id" @change="updateRouteDetails">
<option :value="null"> Sin definir </option> <option :value="null"> Sin definir </option>
<option v-for="stop in allStops" :key="stop.id" :value="stop.id"> <option v-for="stop in routeStops" :key="stop.id" :value="stop.id">
{{ stop.name }} {{ stop.name }}
</option> </option>
</select> </select>