en mapa ruta: se filtra operador y linea por vigentes

develop/frontend
Francisco Sandoval 2023-11-26 12:44:21 -03:00
parent f38fe5d0cd
commit dd305eb15e
2 changed files with 8 additions and 3 deletions

View File

@ -22,7 +22,12 @@
* Typecheck JS in `.svelte` and `.js` files by default.
* Disable this if you'd like to use dynamic types.
*/
"checkJs": true
"checkJs": true,
"baseUrl": ".",
"paths": {
"$/*": ["src/*"]
}
},
/**
* Use global.d.ts instead of compilerOptions.types

View File

@ -36,11 +36,11 @@
lineas.filter(el => el.id_operador === id_operador)
.sort((a,b) => a.route_short_name < b.route_short_name ? -1 : 1) : [];
getOperadores()
getOperadores({ vigente: 1 })
.then(data => data.sort((a,b) => a.nombre_operador < b.nombre_operador? -1 : 1))
.then(data => operadores = data)
.catch(error => alert(error))
getLineas()
getLineas({ vigente: 1 })
.then(data => data.sort((a,b) => a.nombre_linea < b.nombre_linea? -1 : 1))
.then(data => lineas = data)
.catch(error => alert(error))