移风店大屏前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.1 KiB

export default {
state: {
mapLevel: 'community', // 当前地图等级 community-社区 grid-网格
streetId: '12121212121212ab', // 锦水街道id 1215437824174608386
communityId: '', // 社区id
gridId: '', // 网格id
navId:'sy'//选中nav
},
mutations: {
set_mapLevel (state, mapLevel) {
state.mapLevel = mapLevel
},
set_streetId (state, streetId) {
state.streetId = streetId
},
set_communityId (state, communityId) {
state.communityId = communityId
},
set_nav (state, navId){
state.navId = navId
}
},
actions: {
SET_MAPLEVEL (context, mapLevel) {
context.commit('set_mapLevel', mapLevel)
},
SET_STREETID (context, streetId) {
context.commit('set_streetId', streetId)
},
SET_COMMUNITYID (context, communityId) {
context.commit('set_communityId', communityId)
},
SET_NAV(context, navId){
context.commit('set_nav', navId)
}
},
getters: {
mapLevel: state => state.mapLevel,
streetId: state => state.streetId,
communityId: state => state.communityId,
navId: state => state.navId
}
}