import Vue from 'vue';
import Vuex from 'vuex';
import * as ustate from '@common/src/store/user/state';
import * as umutations from '@common/src/store/user/mutations';
// 活动时间
import activitys from '@common/src/store/activitys';
// 重要成果
import outcome from '@common/src/store/outcome';
// 人才称号
import personnelname from '@common/src/store/personnelname';
// 职称提升
import title from '@common/src/store/title';
// 博硕培养
import doctor from '@common/src/store/doctor';
// 固定人员
import fixedpersonnel from '@common/src/store/fixedpersonnel';
// 字典表类型表
import sysdicttype from '@common/src/store/sysdicttype';
// 字典表数据表
import sysdictdata from '@common/src/store/sysdictdata';
// 所属方向
import direction from '@common/src/store/direction';
// 省级及以上活动
import sjactivity from '@common/src/store/sjactivity';
// 技术服务、转移、检测
import technicalservice from '@common/src/store/technicalservice';
// 科普活动
import scienceactivities from '@common/src/store/scienceactivities';
// 发表，提交报告
import report from '@common/src/store/report';
// 获奖情况
import award from '@common/src/store/award';
// 承担科研任务
import science from '@common/src/store/science';
// 标准明细
import tecAward from '@common/src/store/tecAward';
// 项目来源
import resource from '@common/src/store/resource';
// 其他成果
import otherAward from '@common/src/store/otherAward';
// 设备情况
import equipment from '@common/src/store/equipment';
// 发表论文情况
import paper from '@common/src/store/paper';
// 固定投入
import fixInput from '@common/src/store/fixInput';
// 流动人员
import flowpersonnel from '@common/src/store/flowpersonnel';
// 学术委员会
import committee from '@common/src/store/committee';
// 实验室基本信息
import basic from '@common/src/store/basic';
// 主任及科研助理
import chief from '@common/src/store/chief';
// 用户
import users from '@common/src/store/user';
// 公共方法
import usual from '@common/src/store/usual';
// 菜单
import menu from '@common/src/store/menu';
// 通知公告
import notice from '@common/src/store/notice';
// 角色
import role from '@common/src/store/role';

Vue.use(Vuex);

export default new Vuex.Store({
  state: { ...ustate },
  mutations: { ...umutations },
  actions: {},
  modules: {
    activitys,
    outcome,
    personnelname,
    title,
    doctor,
    fixedpersonnel,
    sysdicttype,
    sysdictdata,
    direction,
    sjactivity,
    technicalservice,
    scienceactivities,
    report,
    award,
    science,
    tecAward,
    resource,
    otherAward,
    equipment,
    paper,
    fixInput,
    committee,
    flowpersonnel,
    basic,
    chief,
    users,
    usual,
    menu,
    notice,
    role,
  },
});
