ocultar fixed
This commit is contained in:
@@ -62,7 +62,6 @@ class ShowUsuarios extends Component
|
||||
public $precioTarifa;
|
||||
public $tarifasGestion;
|
||||
|
||||
public $estadoTarifa = true;
|
||||
|
||||
public $usuarioGestion_id;
|
||||
public $precioTarifasGestion;
|
||||
@@ -73,7 +72,6 @@ class ShowUsuarios extends Component
|
||||
public $consulta_usuarioPromo;
|
||||
public $precioPromoGestion;
|
||||
public $promoGestion;
|
||||
public $estadoPromo;
|
||||
public $buscar_promo;
|
||||
|
||||
public $servicio_modTarifas;
|
||||
@@ -86,6 +84,9 @@ class ShowUsuarios extends Component
|
||||
public $editarTarifaRol = false;
|
||||
public $informacionTarifaRol;
|
||||
|
||||
public $estadoTarifa = false;
|
||||
public $estadoPromo = false;
|
||||
|
||||
protected $rules = [
|
||||
'nombre' => 'required',
|
||||
'email' => 'required',
|
||||
@@ -391,7 +392,7 @@ class ShowUsuarios extends Component
|
||||
$usuarioTarifa->utilidad = $this->utilidad;
|
||||
$usuarioTarifa->tarifa_id = $this->tarifasGestion;
|
||||
$usuarioTarifa->usuario_id = $this->usuarioGestion_id;
|
||||
$usuarioTarifa->visible = $this->estadoTarifa ? 'activo' : 'inactivo';
|
||||
$usuarioTarifa->visible = $this->estadoTarifa ? 'inactivo' : 'activo';
|
||||
$usuarioTarifa->save();
|
||||
|
||||
$this->alert('success', '¡Tarifas del usuario actualizadas correctamente!', [
|
||||
@@ -399,12 +400,7 @@ class ShowUsuarios extends Component
|
||||
]);
|
||||
}
|
||||
|
||||
$this->consulta_usuarioTarifas = Usuario_tarifa::where('usuario_id', $this->usuarioGestion_id)
|
||||
->with('tarifa')
|
||||
->get();
|
||||
|
||||
|
||||
$this->precioTarifasGestion = null;
|
||||
$this->consulta_usuarioTarifas = Usuario_tarifa::where('usuario_id', $this->usuarioGestion_id)->with('tarifa')->get();
|
||||
}
|
||||
|
||||
public function eliminarUsuarioTarifa($id)
|
||||
|
||||
Reference in New Issue
Block a user