拖旺项目:聊城公交辅助决策系统
zhaoxing
2022-04-28 76950affed3e62fbc4e322432f874a2a797c0ba7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import Vue from 'vue'
import Vuex from 'vuex'
 
Vue.use(Vuex)
 
export default new Vuex.Store({
  state: {
    selAttr: {
      visa: false,
      type: "",
      id: "",
      value: ""
    },
    maptool: false,
    headerIndex: 0,
    parentCompany: true,
    companyId: '',
    mapMenu: "分公司",
    lineName: '411'
  },
  mutations: {
    SET_SelAttr: (state, selAttr) => {
      state.selAttr = selAttr
    },
    SET_Maptool: (state, maptool) => {
      state.maptool = maptool
    },
    SET_MapMenu: (state, mapMenu) => {
      state.mapMenu = mapMenu
    },
    SET_HeaderIndex: (state, headerIndex) => {
      state.headerIndex = headerIndex
    },
    SET_ParentCompany: (state, parentCompany) => {
      state.parentCompany = parentCompany
    },
    SET_CompanyId: (state, companyId) => {
      state.companyId = companyId
    },
    SET_LineName: (state, lineName) => {
      state.lineName = lineName
    },
  },
  actions: {
    setSelAttr({ commit }, selAttr) {
      commit('SET_SelAttr', selAttr)
    },
    setMaptool({ commit }, maptool) {
      commit('SET_Maptool', maptool)
    },
    setMapMenu({ commit }, mapMenu) {
      commit('SET_MapMenu', mapMenu)
    },
    setLineName({ commit }, lineName) {
      commit('SET_LineName', lineName)
    },
  }
})