Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 10935 | Rev 10946 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 10935 Rev 10941
Línea 100... Línea 100...
100
							msg: 'Ha ocurrido un error'
100
							msg: 'Ha ocurrido un error'
101
						}))
101
						}))
102
					}
102
					}
Línea 103... Línea 103...
103
 
103
 
104
					resData.interview.content.map((behavior) => {
104
					resData.interview.content.map((behavior) => {
105
						setValue(`${behavior.competencyUuid}_${behavior.behaviorUuid}-comment`, behavior.comment)
105
						register(`${behavior.competencyUuid}_${behavior.behaviorUuid}-comment`)
-
 
106
						register(`${behavior.competencyUuid}_${behavior.behaviorUuid}-points`)
-
 
107
						console.log(behavior.comment)
106
						setValue(`${behavior.competencyUuid}_${behavior.behaviorUuid}-points`, behavior.evaluation)
108
						console.log(behavior.evaluation)
107
					})
109
					})
108
					setValue('comment', resData.interview.comment)
110
					setValue('comment', resData.interview.comment)
109
					setValue('points', resData.interview.points)
111
					setValue('points', resData.interview.points)
110
					setValue('status', resData.interview.status)
112
					setValue('status', resData.interview.status)
Línea 270... Línea 272...
270
																				</td>
272
																				</td>
271
																				<td style={{ width: '20%' }}>
273
																				<td style={{ width: '20%' }}>
272
																					<select className='form-control' name={`${behavior.competency_uuid}_${behavior.uuid}-points`} ref={register}>
274
																					<select className='form-control' name={`${behavior.competency_uuid}_${behavior.uuid}-points`} ref={register}>
273
																						{
275
																						{
274
																							pointsOptions.map(({ label, value }) => {
276
																							pointsOptions.map(({ label, value }) => {
275
																								console.log(watch(`${behavior.competency_uuid}_${behavior.uuid}-points`))
-
 
276
																								console.log(value)
-
 
277
																								return <option selected={watch(`${behavior.competency_uuid}_${behavior.uuid}-points`) === value} key={value} value={value}>{label}</option>
277
																								return <option selected={watch(`${behavior.competency_uuid}_${behavior.uuid}-points`) === value} key={value} value={value}>{label}</option>
278
																							})
278
																							})
279
																						}
279
																						}
280
																					</select>
280
																					</select>
281
																				</td>
281
																				</td>