diff --git a/front/core/components/input-range/index.js b/front/core/components/input-range/index.js index e24bb1a08..8cfd898c7 100644 --- a/front/core/components/input-range/index.js +++ b/front/core/components/input-range/index.js @@ -11,7 +11,7 @@ export default class inputRange extends Input { this._value = this.input.value; this.$.$applyAsync(); if (this._value && this.onChange) - this.onChange(); + this.emit('change', {value: this._value}); }); } diff --git a/modules/claim/front/action/index.html b/modules/claim/front/action/index.html index 538588c1d..dad2e333d 100644 --- a/modules/claim/front/action/index.html +++ b/modules/claim/front/action/index.html @@ -35,7 +35,7 @@ min="1" step="1" vn-acl="salesAssistant" - on-change="$ctrl.saveResponsibility()"> + on-change="$ctrl.saveResponsibility(value)"> diff --git a/modules/claim/front/action/index.js b/modules/claim/front/action/index.js index 07778b91d..4d571312b 100644 --- a/modules/claim/front/action/index.js +++ b/modules/claim/front/action/index.js @@ -146,10 +146,10 @@ class Controller { this.$.descriptor.show(); } - saveResponsibility() { + saveResponsibility(value) { let query = `/claim/api/Claims/updateClaim`; - this.$http.post(query, {responsibility: this.claim.responsibility}).then(res => { + this.$http.post(query, {responsibility: value}).then(() => { this.vnApp.showSuccess(this.$translate.instant('Data saved!')); }); } diff --git a/modules/claim/front/summary/index.html b/modules/claim/front/summary/index.html index 18cb23d84..b9e9f0744 100644 --- a/modules/claim/front/summary/index.html +++ b/modules/claim/front/summary/index.html @@ -30,6 +30,7 @@