|
@@ -12,7 +12,7 @@ import { useSelector } from 'react-redux';
|
12
|
12
|
import { Service } from './Utils/HTTP';
|
13
|
13
|
|
14
|
14
|
import {
|
15
|
|
- IconButton, Tooltip,
|
|
15
|
+ IconButton, Tooltip,
|
16
|
16
|
} from '@mui/material';
|
17
|
17
|
|
18
|
18
|
import {
|
|
@@ -69,7 +69,7 @@ function IconStatus(props) {
|
69
|
69
|
|
70
|
70
|
|
71
|
71
|
|
72
|
|
-function getOperation(estado, SuperPWD,setId) {
|
|
72
|
+function getOperation(estado, SuperPWD, setId) {
|
73
|
73
|
// Patrik: 100 -> Significa que el examen esta completo
|
74
|
74
|
// Patrik: 99 -> Que el candidato lo esta haciendo (como "doing test" del otro servicio)
|
75
|
75
|
// Patrik: 97 -> Que hay un error y que hay mas respuestas de las que deberian
|
|
@@ -78,7 +78,7 @@ function getOperation(estado, SuperPWD,setId) {
|
78
|
78
|
case 1: // solo asignado
|
79
|
79
|
return <IconStatus color="#0bd641" icon={AddTaskIcon} message="Candidato Asignado" />
|
80
|
80
|
case 97: //error en las respuestas
|
81
|
|
- return <IconStatus color="var(--main)" icon={ErrorIcon} message="Hay error en las respuestas" />
|
|
81
|
+ return <IconStatus color="var(--main)" icon={ErrorIcon} message="Hay error en las respuestas" />
|
82
|
82
|
case 99: // el candidato se encuentra realizndolo
|
83
|
83
|
return <IconStatus color="#f5f511" icon={AssignmentTurnedInIcon} message="El candidato se encuentra realizando la prueba" />
|
84
|
84
|
case 100: // finalizado
|
|
@@ -94,10 +94,9 @@ function Asignaciones(props) {
|
94
|
94
|
let { estado, cattest, id: SuperPWD } = asign;
|
95
|
95
|
|
96
|
96
|
return (
|
97
|
|
- <tr>
|
98
|
|
- <td className="asign_status">
|
99
|
|
- {cattest.decription}
|
100
|
|
- {/*
|
|
97
|
+ <div>
|
|
98
|
+ {cattest.decription}
|
|
99
|
+ {/*
|
101
|
100
|
test_result.length > 0 ?
|
102
|
101
|
(
|
103
|
102
|
<Tooltip title="Mostrar resultados">
|
|
@@ -111,11 +110,10 @@ function Asignaciones(props) {
|
111
|
110
|
</Tooltip>
|
112
|
111
|
) : null
|
113
|
112
|
*/}
|
114
|
|
- {
|
115
|
|
- getOperation(estado, SuperPWD, setId)
|
116
|
|
- }
|
117
|
|
- </td>
|
118
|
|
- </tr>
|
|
113
|
+ {
|
|
114
|
+ getOperation(estado, SuperPWD, setId)
|
|
115
|
+ }
|
|
116
|
+ </div>
|
119
|
117
|
)
|
120
|
118
|
}
|
121
|
119
|
|
|
@@ -123,28 +121,28 @@ function Asignaciones(props) {
|
123
|
121
|
|
124
|
122
|
|
125
|
123
|
export function DenseTable(props) {
|
126
|
|
- let { users,setId } = props
|
|
124
|
+ let { users, setId } = props
|
127
|
125
|
// console.log("users", users)
|
128
|
126
|
return (
|
129
|
127
|
<TableContainer component={Paper}>
|
130
|
128
|
<Table sx={{ minWidth: 650 }} size="small" aria-label="a dense table">
|
131
|
129
|
<TableHead>
|
132
|
130
|
<TableRow>
|
133
|
|
- <TableCell align="left">Nombre</TableCell>
|
134
|
|
- <TableCell align="left">Asignaciones</TableCell>
|
|
131
|
+ <TableCell align="left"><strong>Nombre</strong></TableCell>
|
|
132
|
+ <TableCell align="right"><strong>Asignacion</strong></TableCell>
|
135
|
133
|
</TableRow>
|
136
|
134
|
</TableHead>
|
137
|
135
|
<TableBody>
|
138
|
136
|
{users.map((row) => (
|
139
|
137
|
<TableRow
|
140
|
|
- key={row.name }
|
|
138
|
+ key={row.name}
|
141
|
139
|
sx={{ '&:last-child td, &:last-child th': { border: 0 } }}
|
142
|
140
|
>
|
143
|
141
|
<TableCell align="left" component="th" scope="row">
|
144
|
|
- {row.candi.nombre + " " + row.candi.apellidos}
|
|
142
|
+ {row.candi.nombre + " " + row.candi.apellidos}
|
145
|
143
|
</TableCell>
|
146
|
|
- <TableCell align="left">
|
147
|
|
- {row.asignaciones.map(a => <Asignaciones setId={setId} key={a.id} asign={a}/>)}
|
|
144
|
+ <TableCell align="right">
|
|
145
|
+ {row.asignaciones.map(a => <Asignaciones setId={setId} key={a.id} asign={a} />)}
|
148
|
146
|
</TableCell>
|
149
|
147
|
</TableRow>
|
150
|
148
|
))}
|