@@ -81,8 +81,10 @@
</b-form-group>
+ {{request}}
+
<b-row align-h="end">
- <b-button size="lg" variant="primary">
+ <b-button size="lg" variant="primary" @click="send">
Envoyer les paramètres au système
</b-button>
@@ -113,7 +115,24 @@
status: false
}
},
- show: true
+ show: true,
+ request: ''
+ }
+ },
+ methods: {
+ send: function() {
+ let that = this;
+ let params = Object.keys(this.form)
+ .map(k => {
+ let e = that.form[k];
+ if (e.status) {
+ return k+"="+e.value
+ })
+ .filter((e) => e !== undefined)
+ .join('&')
+ this.request = params;