Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11072 Rev 11073
Línea 55... Línea 55...
55
		competencies.forEach(competency => competency.behaviors.forEach(behavior => {
55
		competencies.forEach(competency => competency.behaviors.forEach(behavior => {
56
			content.push({
56
			content.push({
57
				competencyUuid: behavior.competency_uuid,
57
				competencyUuid: behavior.competency_uuid,
58
				behaviorUuid: behavior.uuid,
58
				behaviorUuid: behavior.uuid,
59
				comment: watch(`${behavior.competency_uuid}_${behavior.uuid}-comment`),
59
				comment: watch(`${behavior.competency_uuid}_${behavior.uuid}-comment`),
60
				evaluation: watch(`${behavior.competency_uuid}_${behavior.uuid}-points`)
60
				evaluation: watch(`select-${behavior.competency_uuid}-${behavior.uuid}`)
61
			})
61
			})
62
		}))
62
		}))
Línea 63... Línea 63...
63
 
63
 
64
		const submitData = new FormData()
64
		const submitData = new FormData()
Línea 119... Línea 119...
119
						uuid: resData.vacancy.uuid,
119
						uuid: resData.vacancy.uuid,
120
						description: resData.vacancy.description,
120
						description: resData.vacancy.description,
121
						functions: resData.job_description.functions,
121
						functions: resData.job_description.functions,
122
						objectives: resData.job_description.objectives
122
						objectives: resData.job_description.objectives
123
					})
123
					})
-
 
124
					resData.interview.content.forEach((obj) => {
-
 
125
						setValue(`select-${obj.competencyUuid}-${obj.behaviorUuid}`, obj.evaluation)
-
 
126
					})
124
				})
127
				})
125
		}
128
		}
126
	}, [action])
129
	}, [action])
Línea 127... Línea 130...
127
 
130
 
Línea 269... Línea 272...
269
																						className='form-control w100'
272
																						className='form-control w100'
270
																						defaultValue={behavior.comment}
273
																						defaultValue={behavior.comment}
271
																					/>
274
																					/>
272
																				</td>
275
																				</td>
273
																				<td style={{ width: '20%' }}>
276
																				<td style={{ width: '20%' }}>
274
																					<select className='form-control' name={`${behavior.competency_uuid}_${behavior.uuid}-points`} ref={register}>
277
																					<select className='form-control' name={`select-${behavior.competency_uuid}-${behavior.uuid}`} ref={register}>
275
																						{
278
																						{
276
																							pointsOptions.map(({ label, value }) => {
279
																							pointsOptions.map(({ label, value }) => {
277
																								return <option selected={behavior.points === value} key={value} value={value}>{label}</option>
280
																								return <option selected={watch(`select-${behavior.competency_uuid}-${behavior.uuid}`) === value} key={value} value={value}>{label}</option>
278
																							})
281
																							})
279
																						}
282
																						}
280
																					</select>
283
																					</select>
281
																				</td>
284
																				</td>
282
																			</tr>
285
																			</tr>