diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue index d21f21446..312b5d722 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/App.vue @@ -82,10 +82,8 @@

-
+
@@ -108,10 +107,6 @@ >
- @@ -147,8 +142,6 @@ export default { container: '', checkedLayers: [], relations: [], - //relation: null, - //reverse: false, displayHelpMessage: false, listenPersonFlag: 'normal', newEdgeData: {}, @@ -218,9 +211,11 @@ export default { return this.checkedLayers }, + /* toggleIdPerson() { - + console.log('toggleIdPerson') }, + */ relation: { get() { @@ -239,8 +234,6 @@ export default { this.modal.data.reverse = value } }, - /* - */ }, mounted() { @@ -394,24 +387,13 @@ export default { this.modal.data = edgeData this.relation = this.modal.data.relation this.reverse = this.modal.data.reverse - console.log('==- editRelationshipModal', this.modal.data, this.relation, this.reverse) + console.log('==- editRelationshipModal', this.modal.data) this.modal.action = 'edit' this.modal.title = 'visgraph.edit_relationship_link' this.modal.button.class = 'btn-edit' this.modal.button.text = 'action.edit' this.modal.showModal = true }, - /* - deleteRelationshipModal(edgeData) { - this.modal.data = edgeData - console.log('==- deleteRelationshipModal', edgeData) - this.modal.action = 'delete' - this.modal.title = 'visgraph.delete_relationship_link' - this.modal.button.class = 'btn-delete' - this.modal.button.text = 'action.delete' - this.modal.showModal = true - }, - */ resetForm() { console.log('==- reset Form') diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/api.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/api.js index 2035c8e1e..448ff6633 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/api.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/api.js @@ -136,7 +136,7 @@ const getRelationsList = () => { * @returns {Promise} */ const postRelationship = (relationship) => { - console.log(relationship) + //console.log(relationship) return postFetch( `/api/1.0/relations/relationship.json`, { @@ -155,7 +155,7 @@ const postRelationship = (relationship) => { * @returns {Promise} */ const patchRelationship = (relationship) => { - console.log(relationship) + //console.log(relationship) let linkType = splitId(relationship.id, 'link') let id = splitId(linkType, 'id') return patchFetch( @@ -176,7 +176,7 @@ const patchRelationship = (relationship) => { * @returns {Promise} */ const deleteRelationship = (relationship) => { - console.log(relationship) + //console.log(relationship) let linkType = splitId(relationship.id, 'link') let id = splitId(linkType, 'id') return deleteFetch( diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js index 1cdd472d8..edde88f1f 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/store.js @@ -71,7 +71,7 @@ const store = createStore({ //console.log(link.id, state.excludedNodesIds.indexOf(splitId(link.id, 'link'))) } }) - console.log(array.length, array.map(i => i.id)) + console.log('count links', array.length, array.map(i => i.id)) return array.length }, @@ -120,9 +120,8 @@ const store = createStore({ mutations: { addPerson(state, [person, options]) { let debug = '' - /// Debug mode ~ display person_id on visgraph - // uncomment - debug = `\nid ${person.id}` + /// Debug mode: uncomment to display person_id on visgraph + //debug = `\nid ${person.id}` person.group = person.type person._id = person.id person.id = `person_${person.id}` diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js index 98ea88fb5..cf3dc1baa 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js @@ -266,7 +266,8 @@ const getRelationshipTitle = (relationship) => { * @param position * @returns string|integer */ -const splitId = (id, position) => { console.log(id, position) +const splitId = (id, position) => { + //console.log(id, position) switch (position) { case 'type': // return 'accompanying_period' return /(.+)_/.exec(id)[1]