padronizado url de grafico
This commit is contained in:
parent
78acaa0816
commit
bdc72f7e38
4 changed files with 7 additions and 20 deletions
|
|
@ -47,20 +47,15 @@ export const serie_consultar =
|
|||
}
|
||||
|
||||
const url = (): string => {
|
||||
const pr = {
|
||||
cliente,
|
||||
parametros,
|
||||
}
|
||||
|
||||
const vUrl = new URL(
|
||||
`${
|
||||
cliente.emDesenvolvimento
|
||||
? "http://127.0.0.1:5081"
|
||||
: "https://carro-de-boi.idz.one"
|
||||
}${PREFIXO}/${tiposSeriesAgregacoes.enum.contagem}`,
|
||||
}${PREFIXO}/${tiposSeriesAgregacoes.enum.contagem}/${cliente.produto}/${cliente.conta}`,
|
||||
)
|
||||
|
||||
const serie = encodeURIComponent(JSON.stringify(pr, null, 2))
|
||||
const serie = encodeURIComponent(JSON.stringify(parametros, null, 2))
|
||||
|
||||
return `${vUrl.href}?serie=${serie}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue