Commit 1896c1b910393208916cc370433edef137e1e3a2
1 parent
f5d1d667
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
ferramentas/identifica/index.js
... | ... | @@ -1667,7 +1667,6 @@ i3GEOF.identifica = |
1667 | 1667 | return ins; |
1668 | 1668 | }, |
1669 | 1669 | listaVariaveis : function(codigo_tipo_regiao,idjanela){ |
1670 | - return; | |
1671 | 1670 | var p, temp; |
1672 | 1671 | temp = function (retorno){ |
1673 | 1672 | var ins = "", n, i, m, j, d, dd, nc, ic, ndd, idd; |
... | ... | @@ -1681,21 +1680,21 @@ i3GEOF.identifica = |
1681 | 1680 | m = d.dados.length; |
1682 | 1681 | //cada medida |
1683 | 1682 | for(j = 0; j<m; j++){ |
1684 | - dd = d.dados; | |
1685 | - ins += "<b>" + dd["medida"] + "</b>"; | |
1686 | - nc = dd["colunas"].length; | |
1687 | - ins += "<table><tr>"; | |
1683 | + dd = d.dados[j]; | |
1684 | + //ins += " -> " + dd.medida; | |
1685 | + nc = dd.dados.colunas.length; | |
1686 | + ins += "<table class='lista4' ><tr>"; | |
1688 | 1687 | //cabecalho |
1689 | 1688 | for(ic=0; ic<nc; ic++){ |
1690 | - ins += "<td>" + dd["colunas"][ic] + "</td>"; | |
1689 | + ins += "<td>" + dd.dados.aliascolunas[ic] + "</td>"; | |
1691 | 1690 | } |
1692 | 1691 | ins += "</tr>"; |
1693 | - ndd = dd.length; | |
1692 | + ndd = dd.dados.dados.length; | |
1694 | 1693 | //cada valor |
1695 | 1694 | for(idd=0; idd<ndd;idd++){ |
1696 | 1695 | ins += "<tr>"; |
1697 | 1696 | for(ic=0; ic<nc; ic++){ |
1698 | - ins += "<td>" + dd["dados"][idd][ic] + "</td>"; | |
1697 | + ins += "<td>" + dd.dados.dados[idd][dd.dados.colunas[ic]] + "</td>"; | |
1699 | 1698 | } |
1700 | 1699 | ins += "</tr>"; |
1701 | 1700 | } | ... | ... |