en mapa ruta: se filtra operador y linea por vigentes
parent
f38fe5d0cd
commit
dd305eb15e
|
@ -22,7 +22,12 @@
|
||||||
* Typecheck JS in `.svelte` and `.js` files by default.
|
* Typecheck JS in `.svelte` and `.js` files by default.
|
||||||
* Disable this if you'd like to use dynamic types.
|
* 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
|
* Use global.d.ts instead of compilerOptions.types
|
||||||
|
|
|
@ -36,11 +36,11 @@
|
||||||
lineas.filter(el => el.id_operador === id_operador)
|
lineas.filter(el => el.id_operador === id_operador)
|
||||||
.sort((a,b) => a.route_short_name < b.route_short_name ? -1 : 1) : [];
|
.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 => data.sort((a,b) => a.nombre_operador < b.nombre_operador? -1 : 1))
|
||||||
.then(data => operadores = data)
|
.then(data => operadores = data)
|
||||||
.catch(error => alert(error))
|
.catch(error => alert(error))
|
||||||
getLineas()
|
getLineas({ vigente: 1 })
|
||||||
.then(data => data.sort((a,b) => a.nombre_linea < b.nombre_linea? -1 : 1))
|
.then(data => data.sort((a,b) => a.nombre_linea < b.nombre_linea? -1 : 1))
|
||||||
.then(data => lineas = data)
|
.then(data => lineas = data)
|
||||||
.catch(error => alert(error))
|
.catch(error => alert(error))
|
||||||
|
|
Loading…
Reference in New Issue