carreara
This commit is contained in:
parent
16bdd67b34
commit
5f988712ab
@ -7,7 +7,9 @@
|
||||
expanded
|
||||
rounded
|
||||
>
|
||||
<option :disabled="deshabilitarOptVacia" :value="0">
|
||||
<option v-if="!idInstitucion" disabled>Selecciona una institución</option>
|
||||
|
||||
<option :disabled="deshabilitarOptVacia" :value="0" v-else>
|
||||
Selecciona una opción
|
||||
</option>
|
||||
|
||||
@ -59,6 +61,10 @@ export default {
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
idInstitucion(nuevoIdInstitucion) {
|
||||
this.institucionCarreras = []
|
||||
if (nuevoIdInstitucion) this.obtenerInstitucionCarreras()
|
||||
},
|
||||
idInstitucionCarrera(institucionCarreraSeleccionada) {
|
||||
this.$emit(
|
||||
'institucion-carrera-seleccionada',
|
||||
|
@ -15,6 +15,20 @@
|
||||
v-if="operador.tipoUsuario.id_tipo_usuario === 2"
|
||||
/>
|
||||
|
||||
<SelectCarrera
|
||||
:idInstitucion="
|
||||
operador.institucion
|
||||
? operador.institucion.id_institucion
|
||||
: idInstitucion
|
||||
"
|
||||
:idInstitucionCarreraPadre="idInstitucionCarrera"
|
||||
@institucion-carrera-seleccionada="
|
||||
(nuevaInstitucionCarrera) =>
|
||||
(idInstitucionCarrera = nuevaInstitucionCarrera)
|
||||
"
|
||||
v-if="!activos"
|
||||
/>
|
||||
|
||||
<SelectModulo
|
||||
columnSize="is-3"
|
||||
:deshabilitarOptVacia="false"
|
||||
@ -193,6 +207,7 @@ import InputCarrito from '@/components/inputs/InputCarrito'
|
||||
import InputEquipo from '@/components/inputs/InputEquipo'
|
||||
import InputIdPrestamo from '@/components/inputs/InputIdPrestamo'
|
||||
import InputNumeroCuenta from '@/components/inputs/InputNumeroCuenta'
|
||||
import SelectCarrera from '@/components/selects/SelectCarrera'
|
||||
import SelectInstitucion from '@/components/selects/SelectInstitucion'
|
||||
import SelectModulo from '@/components/selects/SelectModulo'
|
||||
import SelectOperador from '@/components/selects/SelectOperador'
|
||||
@ -210,6 +225,7 @@ export default {
|
||||
InputEquipo,
|
||||
InputIdPrestamo,
|
||||
InputNumeroCuenta,
|
||||
SelectCarrera,
|
||||
SelectInstitucion,
|
||||
SelectModulo,
|
||||
SelectOperador,
|
||||
@ -238,6 +254,7 @@ export default {
|
||||
prestamos: [],
|
||||
isLoadingTable: false,
|
||||
idInstitucion: 0,
|
||||
idInstitucionCarrera: 0,
|
||||
idModulo: 0,
|
||||
idOperadorEntrega: 0,
|
||||
idOperadorRegreso: 0,
|
||||
@ -269,6 +286,7 @@ export default {
|
||||
this.equipo != this.lastSearch.equipo ||
|
||||
this.fechaInicio != this.lastSearch.fechaInicio ||
|
||||
this.fechaFin != this.lastSearch.fechaFin ||
|
||||
this.idInstitucionCarrera != this.lastSearch.idInstitucionCarrera ||
|
||||
this.idModulo != this.lastSearch.idModulo ||
|
||||
this.idPrestamo != this.lastSearch.idPrestamo ||
|
||||
this.idOperadorEntrega != this.lastSearch.idOperadorEntrega ||
|
||||
@ -289,6 +307,7 @@ export default {
|
||||
this.operador.institucion.id_institucion
|
||||
else if (this.idInstitucion)
|
||||
this.lastSearch.idInstitucion = this.idInstitucion
|
||||
this.lastSearch.idInstitucionCarrera = this.idInstitucionCarrera
|
||||
this.lastSearch.idModulo = this.idModulo
|
||||
this.lastSearch.idTipoCarrito = this.idTipoCarrito
|
||||
this.lastSearch.idTipoUsuario = this.idTipoUsuario
|
||||
@ -309,6 +328,8 @@ export default {
|
||||
data += `&id_institucion=${this.operador.institucion.id_institucion}`
|
||||
else if (this.idInstitucion)
|
||||
data += `&id_institucion=${this.idInstitucion}`
|
||||
if (this.idInstitucionCarrera)
|
||||
data += `&id_institucion_carrera=${this.idInstitucionCarrera}`
|
||||
if (this.idModulo) data += `&id_modulo=${this.idModulo}`
|
||||
if (this.idTipoCarrito) data += `&id_tipo_carrito=${this.idTipoCarrito}`
|
||||
if (this.idTipoUsuario) data += `&id_tipo_usuario=${this.idTipoUsuario}`
|
||||
@ -358,6 +379,8 @@ export default {
|
||||
data += `&id_institucion=${this.operador.institucion.id_institucion}`
|
||||
else if (this.idInstitucion)
|
||||
data += `&id_institucion=${this.idInstitucion}`
|
||||
if (this.idInstitucionCarrera)
|
||||
data += `&id_institucion_carrera=${this.idInstitucionCarrera}`
|
||||
if (this.idModulo) data += `&id_modulo=${this.idModulo}`
|
||||
if (this.idTipoCarrito) data += `&id_tipo_carrito=${this.idTipoCarrito}`
|
||||
if (this.idTipoUsuario) data += `&id_tipo_usuario=${this.idTipoUsuario}`
|
||||
|
Loading…
Reference in New Issue
Block a user