index.js 1.35 KB
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import user from './modules/user'
import permission_routes from './modules/permission_routes'
import setTabs from './modules/setTabs'

Vue.use(Vuex);
const store = new Vuex.Store({
    state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : {
        zddm:'',        // 宗地代码
        zdbsm: '',      // 宗地标识码
        xmmc: '',       // 项目名称
        zdmj: '',        // 宗地面积
        zdzl: '',         // 宗地坐落
        rightClickZdbsm:'', //右键菜单传入的zdbsm
        tdytList:[],
        tddjList:[],
        qlxzList:[],
        qllxList:[],
        zdtzmList:[],
        qlsdfsList:[],
        zjzlList:[],
        gjList:[],
        ssList:[],
        qlrlxList:[],
        xbList:[],
        sshyList:[],
        xzqList: [],
        djqList: [],
        djzqList: [],
        fwxzOptions:[],
        cbOptions:[],
        cqlyOptions:[],
        jgOptions:[],
        gmjjhyflbsmList:[],
        fwytList:[],
        //创建自然幢时需要用到的临时存储信息
        zrzbsm: '',
        zjlxList: [],
        gyfsList: [],
        hbsm:'',
        contentWidth:''  //内容区域宽度
    },
    modules: {
        user,
        setTabs,
        permission_routes
    },
    getters
})

export default store