import { commServer } from './server.js'; export default { namespaced: true, state: { showCheckMapDetail: false, showCheckMapAdd: false, showCheckPlan1: true, stepActive: 0, // 步骤进度 theme: {id: null, title: null, des: null}, // 主题选中数据(id: 0个案 1系统) condition: { // 条件页面数据 options: [], // 树形节点数据 conditionIds: [], // 选中的key depType: 1, // 门急诊类型 1-门诊 2-急诊 defaultOpen: [], // 默认展开的项 }, checkRent: { // 查核组页面数据 list: [], checkedItem: {id: null} }, checkMap: { // 查核地图数据 list: [], // 列表数据 } }, mutations: { comChangeState(state, {key, data}) { state[key] = data; }, }, actions: { commActions({ commit, state }, { key, data }) { return commServer(key, data); }, } }