<form action="" @submit.prevent="asignarTrabajoEmpleado">
    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" id="modal-asignar-trabajo-empleado" data-backdrop="static" data-keyboard="false">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header mh">
                    <h4 class="modal-title">Asignar trabajo</h4>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="te_categoria">Categorias</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="flaticon-mark-1"></i>
                                </span> 
                            </div>
                            <select name="te_categoria" id="te_categoria" class="form-control" @change="selectCategoriaEmpleado($event)">
                                <option value="" disabled selected>Seleccionar categoria</option>
                                <option value="todas">TODOS LOS EMPLEADOS</option>
                                <?php foreach ($categorias as $row) : ?>
                                    <option value="<?= $row['id'] ?>">
                                        <?= $row['categoria'] ?>
                                    </option>
                                <?php endforeach; ?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="select_empleado">Empleados</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">
                                    <i class="fas fa-user-tie"></i>
                                </span>
                            </div>
                            <v-select id="tselect_empleado" v-model="select_empleado" :options="empleados" :reduce="row => row.id" label="empleado" style="width: 410px;" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-12">
                            <div class=" alert alert-warning" role="alert" v-for="row in errorForm">
                                {{ row }}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary  btn-sm" data-dismiss="modal">Cerrar</button>
                    <button v-if="cargando" class="btn btn-sm btn-primary" disabled>
                        <i class="loader loader-info"></i>
                    </button>
                    <button v-else type="submit" class="btn btn-primary btn-sm">Registrar</button>
                </div>
            </div>
        </div>
    </div>
</form>