model.js 857 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { commServer } from './server.js';
  2. export default {
  3. namespaced: true,
  4. state: {
  5. showCheckMapDetail: false,
  6. showCheckMapAdd: false,
  7. showCheckPlan1: true,
  8. stepActive: 0, // 步骤进度
  9. theme: {id: null, title: null, des: null}, // 主题选中数据(id: 0个案 1系统)
  10. condition: { // 条件页面数据
  11. options: [], // 树形节点数据
  12. conditionIds: [], // 选中的key
  13. depType: 1, // 门急诊类型 1-门诊 2-急诊
  14. defaultOpen: [], // 默认展开的项
  15. },
  16. checkRent: { // 查核组页面数据
  17. list: [],
  18. checkedItem: {id: null}
  19. },
  20. checkMap: { // 查核地图数据
  21. list: [], // 列表数据
  22. }
  23. },
  24. mutations: {
  25. comChangeState(state, {key, data}) {
  26. state[key] = data;
  27. },
  28. },
  29. actions: {
  30. commActions({ commit, state }, { key, data }) {
  31. return commServer(key, data);
  32. },
  33. }
  34. }