king
2019-12-16 c0930736f5b5955efecdac4c0ca85957d4f7b574
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
import * as user from './action-type'
 
// 展开合并菜单栏
export const toggleCollapse = (collapse) => {
  return {
    type: user.Toggle_COLLAPSE,
    collapse
  }
}
 
// 切换主菜单
export const modifyMainMenu = (selectedMainMenu) => {
  return {
    type: user.MODIFY_MAINMENU,
    selectedMainMenu
  }
}
 
// 修改导航栏菜单
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 resetDebug = () => {
  return {
    type: user.RESET_DEBUG
  }
}
 
// 刷新tab页面
export const refreshTabView = (refreshTab) => {
  return {
    type: user.REFRESH_TABVIEW,
    refreshTab
  }
}
 
// 重置编辑状态
export const resetEditState = (editState) => {
  return {
    type: user.RESET_EDITSTATE,
    editState
  }
}
 
// 重置编辑级别
export const resetEditLevel = (editLevel) => {
  return {
    type: user.RESET_EDITLEVEL,
    editLevel
  }
}
 
// 初始化按钮权限及创建存储过程可用字段
export const initPermission = (permAction, permFuncField) => {
  return {
    type: user.INIT_PERMISSION,
    permAction: permAction,
    permFuncField: permFuncField
  }
}
 
// 退出重置
export const logout = () => {
  return {
    type: user.LOGOUT
  }
}