mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	fix most of vue warnings for accompanyingCourse component
This commit is contained in:
		| @@ -81,13 +81,13 @@ export default { | ||||
|             showModal: false, | ||||
|             modalDialogClass: "modal-dialog-scrollable modal-xl" | ||||
|          }, | ||||
|          action: this.action | ||||
|          //action: this.action | ||||
|       } | ||||
|    }, | ||||
|    computed: { | ||||
|       action() { | ||||
|          return this.$data.action; | ||||
|       }, | ||||
|       //action() { | ||||
|       //   return this.$data.action; | ||||
|       //}, | ||||
|       classAction() { | ||||
|          switch (this.action) { | ||||
|             case 'show': | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
|    <div v-if="accompanyingCourse.requestor" class="flex-table"> | ||||
|        | ||||
|       <label> | ||||
|          <input type="checkbox" v-model="isAnonymous" :value="value" /> | ||||
|          <input type="checkbox" v-model="isAnonymous" /><!--  :value="value" --> | ||||
|          {{ $t('requestor.is_anonymous') }} | ||||
|       </label> | ||||
|        | ||||
| @@ -112,7 +112,7 @@ export default { | ||||
|       }, | ||||
|       isAnonymous: { | ||||
|          set(value) { | ||||
|             console.log('requestorIsAnonymous value',value); | ||||
|             //console.log('requestorIsAnonymous value',value); | ||||
|             this.$store.dispatch('requestorIsAnonymous', value); | ||||
|          }, | ||||
|          get() { | ||||
| @@ -122,11 +122,11 @@ export default { | ||||
|    }, | ||||
|    methods: { | ||||
|       removeRequestor() { | ||||
|          console.log('@@ CLICK remove requestor: item'); | ||||
|          //console.log('@@ CLICK remove requestor: item'); | ||||
|          this.$store.dispatch('removeRequestor'); | ||||
|       }, | ||||
|       addNewPersons({ selected, modal }) { | ||||
|          console.log('@@@ CLICK button addNewPersons', selected); | ||||
|          //console.log('@@@ CLICK button addNewPersons', selected); | ||||
|          this.$store.dispatch('addRequestor', selected.shift()); | ||||
|          this.$refs.addPersons.resetSearch(); // to cast child method | ||||
|          modal.showModal = false; | ||||
|   | ||||
| @@ -53,7 +53,7 @@ export default { | ||||
|       this.ready(); | ||||
|       window.addEventListener('scroll', this.handleScroll); | ||||
|    }, | ||||
|    destroyed() { | ||||
|    unmounted() { | ||||
|       window.removeEventListener('scroll', this.handleScroll); | ||||
|    }, | ||||
|    methods: { | ||||
|   | ||||
| @@ -155,9 +155,9 @@ export default { | ||||
|          ])]; | ||||
|          return uniqBy(union, k => k.key); | ||||
|       }, | ||||
|       options() { | ||||
|          return this.options; | ||||
|       }, | ||||
|       //options() { | ||||
|       //   return this.options; | ||||
|       //}, | ||||
|       checkUniq() { | ||||
|          if (this.options.uniq === true) { | ||||
|             return 'radio'; | ||||
|   | ||||
| @@ -162,7 +162,7 @@ export default { | ||||
|          getPerson(this.id) | ||||
|             .then(person => new Promise((resolve, reject) => { | ||||
|                this.person = person; | ||||
|                console.log('get person', this.person); | ||||
|                //console.log('get person', this.person); | ||||
|                resolve(); | ||||
|          })); | ||||
|       }, | ||||
| @@ -170,7 +170,7 @@ export default { | ||||
|          postPerson(this.person) | ||||
|             .then(person => new Promise((resolve, reject) => { | ||||
|                this.person = person; | ||||
|                console.log('post person', person); | ||||
|                //console.log('post person', person); | ||||
|                resolve(); | ||||
|          })); | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user