4 Commits

Author SHA1 Message Date
IO 4070d73eae package 2026-03-25 20:46:25 -05:00
IO 6a5f15e247 package 2026-03-25 20:45:40 -05:00
IO 45c3ba3076 Merge branch 'Carlos' of repositorio.acatlan.unam.mx:IO/front-AT into develop 2026-03-20 17:51:33 -05:00
IO c4c06d9ed6 fixed modified machines' programs 2026-03-20 17:50:15 -05:00
4 changed files with 9 additions and 27 deletions
@@ -16,7 +16,7 @@ export default function InformacionEquipo({
defaultKey?: string;
}) {
const [id, setId] = useState<number | null>(null);
const [ubicacion, setUbicacion] = useState<string | null>(null);
const [ubicacion, setUbicacion] = useState<number | null>(null);
return (
<section className="containerSection">
@@ -14,7 +14,7 @@ export default function ProgramSelector({
ubicacion,
id,
}: {
ubicacion?: string | null;
ubicacion?: number | null;
id?: number | null;
}) {
const [programas, setProgramas] = useState<Programa[]>([]);
@@ -56,7 +56,7 @@ export default function ProgramSelector({
.map(Number);
try {
if (ubicacion && ubicacion !== "0") {
if (ubicacion) {
await axios.patch(
`${envConfig.apiUrl}/programa-equipo/equipo/${ubicacion}`,
{
@@ -121,7 +121,7 @@ export default function ProgramSelector({
try {
let res;
if (ubicacion && ubicacion !== "0") {
if (ubicacion) {
res = await axios.get(
`${envConfig.apiUrl}/programa-equipo/${ubicacion}`,
{ headers },
@@ -21,7 +21,7 @@ interface Equipos {
}
interface Props {
onSearch: (ubicacion: string) => void;
onSearch: (id_equipo: number) => void;
}
export default function SelectorEquipo({ onSearch }: Props) {
@@ -57,7 +57,7 @@ export default function SelectorEquipo({ onSearch }: Props) {
const eq = equipos.find(e => e.id_equipo === paramEquipo);
if (eq) {
setSelected(eq);
onSearch(eq.ubicacion);
onSearch(eq.id_equipo);
}
}
}, [paramEquipo, equipos]);
+3 -21
View File
@@ -696,7 +696,6 @@
"version": "2.5.6",
"resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz",
"integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
@@ -736,7 +735,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -757,7 +755,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -778,7 +775,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -799,7 +795,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -820,7 +815,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -841,7 +835,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -862,7 +855,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -883,7 +875,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -904,7 +895,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -925,7 +915,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -946,7 +935,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -967,7 +955,6 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -988,7 +975,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2649,7 +2635,6 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true,
"license": "MIT",
"optional": true,
"engines": {
@@ -2692,7 +2677,6 @@
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
@@ -3206,7 +3190,6 @@
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
"integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==",
"dev": true,
"license": "MIT",
"optional": true
},
@@ -3304,10 +3287,9 @@
"license": "ISC"
},
"node_modules/picomatch": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"license": "MIT",
"optional": true,
"engines": {