work on system settings page

This commit is contained in:
ori
2019-04-23 14:42:51 -07:00
parent d5a0cb00fa
commit cbbd34abcf
5 changed files with 3296 additions and 3262 deletions

View File

@@ -14,15 +14,27 @@
<script>
export default {
name: 'ch-InputNumber',
props:['title'],
props:{
title:String,
Xkey:String
},
data() {
return {
content:this.value
}
},
methods: {
handleInput() {
this.$emit('input',this.value);
this.$socket.sendObj({[this.Xkey]:this.value});
}
},
computed:{
value:{
get: function(){
return this.$store.state[this.Xkey];
},
set: function(value){
this.$store.commit(this.Xkey,value);
}
}
}
}