|
@@ -20,27 +20,17 @@ const store = new Vuex.Store({
|
|
thisDetai: {},
|
|
thisDetai: {},
|
|
//查询是否有未读消息
|
|
//查询是否有未读消息
|
|
messageNumber: false,
|
|
messageNumber: false,
|
|
- //最近消息列表集合
|
|
|
|
- messageList: [],
|
|
|
|
- //记录消息的状态
|
|
|
|
- messageStatus: 2,
|
|
|
|
// 弹窗集合
|
|
// 弹窗集合
|
|
popups: '',
|
|
popups: '',
|
|
theme: 'light', //控制界面的颜色,
|
|
theme: 'light', //控制界面的颜色,
|
|
- // 查询的点的坐标
|
|
|
|
- searchPointInfo: {},
|
|
|
|
//所有社区下拉
|
|
//所有社区下拉
|
|
areaSelect: [],
|
|
areaSelect: [],
|
|
- //所有民族
|
|
|
|
- nationArray: [],
|
|
|
|
- //所有籍贯
|
|
|
|
- nativeArray: [],
|
|
|
|
//公司部门
|
|
//公司部门
|
|
companyArray: [],
|
|
companyArray: [],
|
|
- departmentArray: [],
|
|
|
|
communityArray: [],
|
|
communityArray: [],
|
|
homeCommunityAll: '',
|
|
homeCommunityAll: '',
|
|
- scale: ""
|
|
|
|
|
|
+ scale: "",
|
|
|
|
+ globalCommunity: {}
|
|
},
|
|
},
|
|
getters: {
|
|
getters: {
|
|
getTheme(state) {
|
|
getTheme(state) {
|
|
@@ -52,9 +42,6 @@ const store = new Vuex.Store({
|
|
getToken(state) {
|
|
getToken(state) {
|
|
return state.token;
|
|
return state.token;
|
|
},
|
|
},
|
|
- getSearchPointInfo(state) {
|
|
|
|
- return state.searchPointInfo;
|
|
|
|
- },
|
|
|
|
getCollapse(state) {
|
|
getCollapse(state) {
|
|
return state.collapse;
|
|
return state.collapse;
|
|
},
|
|
},
|
|
@@ -86,18 +73,9 @@ const store = new Vuex.Store({
|
|
getAreaSelect(state) {
|
|
getAreaSelect(state) {
|
|
return state.areaSelect;
|
|
return state.areaSelect;
|
|
},
|
|
},
|
|
- getNationArray(state) {
|
|
|
|
- return state.nationArray;
|
|
|
|
- },
|
|
|
|
- getNativeArray(state) {
|
|
|
|
- return state.nativeArray;
|
|
|
|
- },
|
|
|
|
getCompanyArray(state) {
|
|
getCompanyArray(state) {
|
|
return state.companyArray;
|
|
return state.companyArray;
|
|
},
|
|
},
|
|
- getDepartmentArray(state) {
|
|
|
|
- return state.departmentArray;
|
|
|
|
- },
|
|
|
|
getCommunityArray(state) {
|
|
getCommunityArray(state) {
|
|
return state.communityArray;
|
|
return state.communityArray;
|
|
},
|
|
},
|
|
@@ -107,11 +85,11 @@ const store = new Vuex.Store({
|
|
getScale(state) {
|
|
getScale(state) {
|
|
return state.scale;
|
|
return state.scale;
|
|
},
|
|
},
|
|
|
|
+ getGlobalCommunity(state) {
|
|
|
|
+ return state.globalCommunity;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mutations: {
|
|
mutations: {
|
|
- setSearchPointInfo(state, data) {
|
|
|
|
- state.searchPointInfo = data;
|
|
|
|
- },
|
|
|
|
setPopups(state, data) {
|
|
setPopups(state, data) {
|
|
state.popups = data;
|
|
state.popups = data;
|
|
},
|
|
},
|
|
@@ -142,30 +120,15 @@ const store = new Vuex.Store({
|
|
setmessageNumber(state, data) {
|
|
setmessageNumber(state, data) {
|
|
state.messageNumber = data;
|
|
state.messageNumber = data;
|
|
},
|
|
},
|
|
- setmessageList(state, data) {
|
|
|
|
- state.messageList = data;
|
|
|
|
- },
|
|
|
|
- setmessageStatus(state, data) {
|
|
|
|
- state.messageStatus = data;
|
|
|
|
- },
|
|
|
|
setTheme(state, data) {
|
|
setTheme(state, data) {
|
|
state.theme = data;
|
|
state.theme = data;
|
|
},
|
|
},
|
|
setAreaSelect(state, data) {
|
|
setAreaSelect(state, data) {
|
|
state.areaSelect = data;
|
|
state.areaSelect = data;
|
|
},
|
|
},
|
|
- setNationArray(state, data) {
|
|
|
|
- state.nationArray = data;
|
|
|
|
- },
|
|
|
|
- setNativeArray(state, data) {
|
|
|
|
- state.nativeArray = data;
|
|
|
|
- },
|
|
|
|
setCompanyArray(state, data) {
|
|
setCompanyArray(state, data) {
|
|
state.companyArray = data;
|
|
state.companyArray = data;
|
|
},
|
|
},
|
|
- setDepartmentArray(state, data) {
|
|
|
|
- state.departmentArray = data;
|
|
|
|
- },
|
|
|
|
setCommunityArray(state, data) {
|
|
setCommunityArray(state, data) {
|
|
state.communityArray = data;
|
|
state.communityArray = data;
|
|
},
|
|
},
|
|
@@ -175,6 +138,9 @@ const store = new Vuex.Store({
|
|
setScale(state, data) {
|
|
setScale(state, data) {
|
|
state.scale = data;
|
|
state.scale = data;
|
|
},
|
|
},
|
|
|
|
+ setGlobalCommunity(state, data) {
|
|
|
|
+ state.globalCommunity = data;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
actions: {
|
|
actions: {
|
|
tags(ctx, data) {
|
|
tags(ctx, data) {
|
|
@@ -245,7 +211,7 @@ const store = new Vuex.Store({
|
|
ctx.commit('setModalParams', params);
|
|
ctx.commit('setModalParams', params);
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
- this.$message.error(`${err.message},请刷新页面重试`);
|
|
|
|
|
|
+ this.$message.error(`${err.message},请刷新页面重试`);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
closeModal(ctx) {
|
|
closeModal(ctx) {
|