This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require":{ | |
"silex/silex":"^1.3", | |
"twig/twig": "^1.3", | |
"firebase/php-jwt": "^5.0", | |
"symfony/var-dumper": "^3.4", | |
"symfony/twig-bridge": "^3.4", | |
"symfony/http-kernel": "^4.0" | |
}, | |
"minimum-stability": "dev", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//DADOS ESTRUTURA | |
"data": [ | |
{ | |
"idEstrutura": 1, | |
"nome": "PECUARISTA" | |
}, | |
{ | |
"idEstrutura": 2, | |
"nome": "VINCULO" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.listPrm = (app, req, res, next)=>{ | |
let conn = app.config.dbConn(); | |
let perm = new app.app.models.Permissoes(conn); | |
let jwt = new app.config.jwt; | |
let token = req.body.token; | |
let secret = process.env.SECRET; | |
let validate = jwt.verificar(token, secret); | |
let idGrupo = req.body.idGrupo; | |
if (!validate) { | |
res.status(404).send({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ PECUARISTA: [ RowDataPacket { idSubEstrutura: 1, subEstrutura: 'ID Pec', idEstrutura: 1 }, | |
RowDataPacket { idSubEstrutura: 2, subEstrutura: 'CPF', idEstrutura: 1 }, | |
RowDataPacket { idSubEstrutura: 3, subEstrutura: 'Pec Nome', idEstrutura: 1 } ], | |
VINCULO: [], | |
PROPRIEDADE: [], | |
MONITORAMENTO: [], | |
GRUPO: [], | |
UNIDADE: [], | |
'LOTE NFS': [], | |
INTERSECCOES: [] ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
class AcoesConsulta{ | |
private $token; | |
public function __construct(){ | |
$this->geraToken(); | |
} | |
public function geraToken(){ | |
$vars = array( | |
"user"=>"[email protected]", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$(document).on('click', '#add_certi', function(){ | |
let array; | |
let idLote = $('#id_lote').val(); | |
let idUnidade = $('#id_unidade').val(); | |
let idGrupo = $('#id_grupo').val(); | |
$("#loader").show().fadeTo('fast', 1); | |
$('#add_certificado').fadeTo( "slow" , 0.15); | |
array = $('input:checked').map(function(){ | |
return this.value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"data": [ | |
{ | |
"idUser": 1, | |
"idPermissoes": 239, | |
"idUserPermissoes": 1, | |
"sessao": "ID Pec" | |
}, | |
{ | |
"idUser": 1, | |
"idPermissoes": 240, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[0] => array{ | |
['indice']=> valor, | |
['indice']=> valor, | |
['indice']=> valor, | |
['estrutura']=>cadastro | |
}, | |
[1] => array{ | |
['indice']=> valor, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Collapsible popout defaultActiveKey={1}> | |
{this.state.lotes.map(res=>( | |
<ItemLote {...res} /> | |
))} | |
</Collapsible> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tenho isso | |
data = [{"indice1":"valor1"},{"indice2":"valor2"},{"indice3":"valor3"}]; | |
//quero isso | |
data [{"indice1":"valor1","indice2":"valor2", "indice3":"valor3"}]; | |
//map resolve ? |
OlderNewer