|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
|
|
|
|
Vue.use(Vuex)
|
|
|
|
|
|
|
|
export default new Vuex.Store({
|
|
|
|
state: {
|
|
|
|
showSidebar: false,
|
|
|
|
showFooter:false,
|
|
|
|
showHeader:false,
|
|
|
|
menuList:[],//目录菜单
|
|
|
|
showBreadcrumb:false,//是否展示面包屑
|
|
|
|
pageTitle:'一般新文献',//页面标题
|
|
|
|
addServiceList:[]//选中的服务
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
SET_HEADER({ commit }) {
|
|
|
|
commit('SET_HEADER');
|
|
|
|
},
|
|
|
|
SET_SIDEBAR({ commit }) {
|
|
|
|
commit('SET_SIDEBAR');
|
|
|
|
},
|
|
|
|
SET_FOOTER({ commit }) {
|
|
|
|
commit('SET_FOOTER');
|
|
|
|
},
|
|
|
|
SHOW_BREAD({ commit }) {
|
|
|
|
commit('SHOW_BREAD');
|
|
|
|
},
|
|
|
|
SET_PAGETITLE({ commit }) {
|
|
|
|
commit('SET_PAGETITLE');
|
|
|
|
},
|
|
|
|
SET_ADDSERVICELIST({ commit }) {
|
|
|
|
commit('SET_ADDSERVICELIST');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mutations: {
|
|
|
|
SET_SIDEBAR(state, show) {
|
|
|
|
state.showSidebar = show;
|
|
|
|
},
|
|
|
|
SET_FOOTER(state, show) {
|
|
|
|
state.showFooter = show;
|
|
|
|
},
|
|
|
|
SET_HEADER(state, show) {
|
|
|
|
state.showHeader = show;
|
|
|
|
},
|
|
|
|
SHOW_BREAD(state, show) {
|
|
|
|
state.showBreadcrumb = show;
|
|
|
|
},
|
|
|
|
SET_PAGETITLE(state, title) {
|
|
|
|
state.pageTitle = title;
|
|
|
|
},
|
|
|
|
SET_ADDSERVICELIST(state, list) {
|
|
|
|
state.addServiceList = list;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
getters: {
|
|
|
|
},
|
|
|
|
|
|
|
|
modules: {
|
|
|
|
}
|
|
|
|
})
|