vue_visgraph: basically display persons, household, courses and edges between them

This commit is contained in:
2021-10-25 18:38:36 +02:00
parent e7f555077e
commit 136c6f19de
5 changed files with 92 additions and 23 deletions

View File

@@ -78,14 +78,14 @@ const getHouseholdByPerson = (person) => {
}
/**
* @function getCourseByPerson
* @function getCoursesByPerson
* @param person
* @returns {Promise<Response>}
*/
const getCourseByPerson = (person) => {
//console.log('getCourseByPerson', person.id)
const getCoursesByPerson = (person) => {
//console.log('getCoursesByPerson', person._id)
return getFetch(
`/api/1.0/person/accompanying-course/by-person/${person.id}.json`)
`/api/1.0/person/accompanying-course/by-person/${person._id}.json`)
}
/**
@@ -119,7 +119,7 @@ const postRelationship = (person) => {
export {
getHouseholdByPerson,
getCourseByPerson,
getCoursesByPerson,
getRelationship,
postRelationship
}