rutas
This commit is contained in:
parent
4067c89c8d
commit
2e0348e0e7
|
@ -1,6 +1,6 @@
|
||||||
async function recuperarCantidadGenero(tipoConsulta) {
|
async function recuperarCantidadGenero(tipoConsulta) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("../controllers/graficosController.php", {
|
const response = await fetch("/controllers/graficosController.php", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
@ -18,7 +18,7 @@ async function recuperarCantidadGenero(tipoConsulta) {
|
||||||
|
|
||||||
async function recuperarCantidadEdad(tipoConsulta) {
|
async function recuperarCantidadEdad(tipoConsulta) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("../controllers/graficosController.php", {
|
const response = await fetch("/controllers/graficosController.php", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
@ -36,7 +36,7 @@ async function recuperarCantidadEdad(tipoConsulta) {
|
||||||
|
|
||||||
async function recuperarCantidadEstado(tipoConsulta) {
|
async function recuperarCantidadEstado(tipoConsulta) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("../controllers/graficosController.php", {
|
const response = await fetch("/controllers/graficosController.php", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
@ -59,7 +59,7 @@ async function recuperarCantidadEstado(tipoConsulta) {
|
||||||
|
|
||||||
async function recuperarCantidadExamen(tipoConsulta) {
|
async function recuperarCantidadExamen(tipoConsulta) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("../controllers/graficosController.php", {
|
const response = await fetch("/controllers/graficosController.php", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
|
@ -163,7 +163,7 @@ allProgress.forEach(item=> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { obtenerDatosGeneros, obtenerDatosEdades, obtenerDatosEstados,obtenerDatosExamenes } from '../js/funcionesGraficos.js';
|
import { obtenerDatosGeneros, obtenerDatosEdades, obtenerDatosEstados,obtenerDatosExamenes } from './funcionesGraficos.js';
|
||||||
|
|
||||||
async function inicializarGrafico() {
|
async function inicializarGrafico() {
|
||||||
const [femenino, masculino, noDefinido] = await obtenerDatosGeneros("");
|
const [femenino, masculino, noDefinido] = await obtenerDatosGeneros("");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
async function recuperarCantidadGenero(tipoConsulta) {
|
async function recuperarCantidadGenero(tipoConsulta) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("../controllers/graficos.php", {
|
const response = await fetch("../controllers/graficosController.php", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|
Loading…
Reference in New Issue