completed system settings page with vuex integration

This commit is contained in:
ori
2019-04-26 00:28:31 +03:00
parent cbbd34abcf
commit 2fd075398c
2 changed files with 129 additions and 17 deletions

View File

@@ -27,7 +27,11 @@ export const store = new Vuex.Store({
ratio:[0,0],
extent:[0,100],
//Settings
teamValue:0
teamValue:0,
connectionType:"DHCP",
ip:0,
gateWay:0,
hostName:""
},
mutations:{
@@ -48,7 +52,11 @@ export const store = new Vuex.Store({
area: set('area'),
ratio: set('ratio'),
extent: set('extent'),
teamValue: set('teamValue')
teamValue: set('teamValue'),
connectionType: set('connectionType'),
ip: set('ip'),
gateWay : set('gateWay'),
hostName : set('hostName')
},
getters:{
camera: state => state.camera,
@@ -65,6 +73,11 @@ export const store = new Vuex.Store({
area: state =>state.area,
ratio: state =>state.ratio,
extent: state =>state.extent,
teamValue: state => state.teamValue
teamValue: state => state.teamValue,
connectionType: state => state.connectionType,
ip: state => state.ip,
gateWay: state => state.gateWay,
hostName: state => state.hostName
},
});