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.
|
|
|
const state = {
|
|
|
|
chooseName: {
|
|
|
|
orgId: "",
|
|
|
|
level: "",
|
|
|
|
},
|
|
|
|
commonLoading: false,
|
|
|
|
realScale: null,
|
|
|
|
};
|
|
|
|
|
|
|
|
const mutations = {
|
|
|
|
CHOOSE_NAME: (state, name) => {
|
|
|
|
state.chooseName = name;
|
|
|
|
},
|
|
|
|
CHOOSE_REAL_SCALE: (state, name) => {
|
|
|
|
state.realScale = name;
|
|
|
|
},
|
|
|
|
COMMON_LOADING: (state, flag) => {
|
|
|
|
state.commonLoading = flag;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const actions = {
|
|
|
|
chooseName({ commit }, name) {
|
|
|
|
commit("CHOOSE_NAME", name);
|
|
|
|
},
|
|
|
|
chooseScale({ commit }, name) {
|
|
|
|
commit("CHOOSE_REAL_SCALE", name);
|
|
|
|
},
|
|
|
|
chooseLoading({ commit }, flag) {
|
|
|
|
commit("COMMON_LOADING", flag);
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state,
|
|
|
|
mutations,
|
|
|
|
actions,
|
|
|
|
};
|