Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11071 Rev 11072
Línea 80... Línea 80...
80
						:
80
						:
81
						dispatch(addNotification({
81
						dispatch(addNotification({
82
							style: 'danger',
82
							style: 'danger',
83
							msg: 'Ha ocurrido un error'
83
							msg: 'Ha ocurrido un error'
84
						}))
84
						}))
-
 
85
					return
85
				}
86
				}
Línea 86... Línea 87...
86
 
87
 
87
				history.goBack()
88
				history.goBack()
88
				dispatch(addNotification({
89
				dispatch(addNotification({
Línea 103... Línea 104...
103
							style: 'danger',
104
							style: 'danger',
104
							msg: 'Ha ocurrido un error'
105
							msg: 'Ha ocurrido un error'
105
						}))
106
						}))
106
					}
107
					}
Línea 107... Línea -...
107
 
-
 
108
					resData.interview.content.map((behavior) => {
-
 
109
						register(`${behavior.competencyUuid}_${behavior.behaviorUuid}-comment`)
-
 
110
						register(`${behavior.competencyUuid}_${behavior.behaviorUuid}-points`)
-
 
111
						setValue(`${behavior.competencyUuid}_${behavior.behaviorUuid}-comment`, behavior.comment)
-
 
112
						setValue(`${behavior.competencyUuid}_${behavior.behaviorUuid}-points`, behavior.evaluation)
-
 
113
					})
108
 
114
					setValue('comment', resData.interview.comment)
109
					setValue('comment', resData.interview.comment)
115
					setValue('points', resData.interview.points)
110
					setValue('points', resData.interview.points)
116
					setValue('status', resData.interview.status)
111
					setValue('status', resData.interview.status)
117
					setCompetencies(resData.job_description.competencies)
112
					setCompetencies(resData.job_description.competencies)
Línea 270... Línea 265...
270
																						name={`${behavior.competency_uuid}_${behavior.uuid}-comment`}
265
																						name={`${behavior.competency_uuid}_${behavior.uuid}-comment`}
271
																						cols="30"
266
																						cols="30"
272
																						rows="3"
267
																						rows="3"
273
																						ref={register}
268
																						ref={register}
274
																						className='form-control w100'
269
																						className='form-control w100'
-
 
270
																						defaultValue={behavior.comment}
275
																					/>
271
																					/>
276
																				</td>
272
																				</td>
277
																				<td style={{ width: '20%' }}>
273
																				<td style={{ width: '20%' }}>
278
																					<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}>
279
																						{
275
																						{
280
																							pointsOptions.map(({ label, value }) => {
276
																							pointsOptions.map(({ label, value }) => {
281
																								return <option selected={watch(`${behavior.competency_uuid}_${behavior.uuid}-points`) === value} key={value} value={value}>{label}</option>
277
																								return <option selected={behavior.points === value} key={value} value={value}>{label}</option>
282
																							})
278
																							})
283
																						}
279
																						}
284
																					</select>
280
																					</select>
285
																				</td>
281
																				</td>
286
																			</tr>
282
																			</tr>