This commit is contained in:
Hectorgh24 2025-05-19 05:43:05 -06:00
parent 4067c89c8d
commit 2e0348e0e7
3 changed files with 6 additions and 6 deletions

View File

@ -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",

View File

@ -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("");

View File

@ -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",