Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
This commit is contained in:
commit
f402bb5afb
|
@ -11,7 +11,7 @@ export default class inputRange extends Input {
|
||||||
this._value = this.input.value;
|
this._value = this.input.value;
|
||||||
this.$.$applyAsync();
|
this.$.$applyAsync();
|
||||||
if (this._value && this.onChange)
|
if (this._value && this.onChange)
|
||||||
this.onChange();
|
this.emit('change', {value: this._value});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
min="1"
|
min="1"
|
||||||
step="1"
|
step="1"
|
||||||
vn-acl="salesAssistant"
|
vn-acl="salesAssistant"
|
||||||
on-change="$ctrl.saveResponsibility()">
|
on-change="$ctrl.saveResponsibility(value)">
|
||||||
</vn-input-range>
|
</vn-input-range>
|
||||||
</vn-tool-bar>
|
</vn-tool-bar>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
|
|
@ -146,10 +146,10 @@ class Controller {
|
||||||
this.$.descriptor.show();
|
this.$.descriptor.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
saveResponsibility() {
|
saveResponsibility(value) {
|
||||||
let query = `/claim/api/Claims/updateClaim`;
|
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!'));
|
this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-input-range
|
<vn-input-range
|
||||||
vn-one
|
vn-one
|
||||||
|
disabled="true"
|
||||||
label="Responsability"
|
label="Responsability"
|
||||||
value="$ctrl.summary.claim.responsibility"
|
value="$ctrl.summary.claim.responsibility"
|
||||||
max="5"
|
max="5"
|
||||||
|
|
Loading…
Reference in New Issue