king
2020-12-31 eebe63a6727e6495321d1433ebd2779b5a36d45a
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import * as user from './action-type'
 
// 展开合并菜单栏
export const toggleCollapse = (collapse) => {
  return {
    type: user.Toggle_COLLAPSE,
    collapse
  }
}
 
// 初始化菜单信息
export const modifyMenuTree = (menuTree) => {
  return {
    type: user.MODIFY_MENUTREE,
    menuTree
  }
}
 
// 切换主菜单
export const modifyMainMenu = (mainMenu) => {
  return {
    type: user.MODIFY_MAINMENU,
    mainMenu
  }
}
 
// 修改导航栏菜单
export const modifyTabview = (tabviews) => {
  return {
    type: user.MODIFY_TABVIEW,
    tabviews
  }
}
 
// 修改窗口样式,区分iframe与正常页面
export const toggleIsiframe = (isiframe) => {
  return {
    type: user.TOGGLE_ISIFRAME,
    isiframe
  }
}
 
// 退出系统时参数重置
export const resetState = () => {
  return {
    type: user.RESET_STATE
  }
}
 
// 重置编辑状态
export const resetEditState = (editState) => {
  return {
    type: user.RESET_EDITSTATE,
    editState
  }
}
 
// 重置编辑级别
export const resetEditLevel = (editLevel) => {
  return {
    type: user.RESET_EDITLEVEL,
    editLevel
  }
}
 
// 初始化按钮权限
export const initActionPermission = (permAction) => {
  return {
    type: user.INIT_ACTIONPERMISSION,
    permAction: permAction
  }
}
 
// 初始化菜单权限
export const initMenuPermission = (permMenus) => {
  return {
    type: user.INIT_MENUPERMISSION,
    permMenus: permMenus
  }
}
 
// 初始化菜单权限
export const modifyMemberLevel = (memberLevel) => {
  return {
    type: user.MODIFY_MEMBERLEVEL,
    memberLevel: memberLevel
  }
}
 
// 修改自定义菜单
export const modifyCustomMenu = (customMenu) => {
  return {
    type: user.MODIFY_CUSTOMMENU,
    customMenu: customMenu
  }
}
 
// 退出重置
export const logout = () => {
  return {
    type: user.LOGOUT
  }
}