| | |
| | | } |
| | | } |
| | | |
| | | // 初始化菜单信息 |
| | | export const modifyMenuTree = (menuTree) => { |
| | | return { |
| | | type: user.MODIFY_MENUTREE, |
| | | menuTree |
| | | } |
| | | } |
| | | |
| | | // 切换主菜单 |
| | | export const modifyMainMenu = (selectedMainMenu) => { |
| | | export const modifyMainMenu = (mainMenu) => { |
| | | 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 |
| | | mainMenu |
| | | } |
| | | } |
| | | |
| | |
| | | return { |
| | | type: user.RESET_EDITLEVEL, |
| | | editLevel |
| | | } |
| | | } |
| | | |
| | | // 初始化按钮权限及创建存储过程可用字段 |
| | | export const initPermission = (permAction, permFuncField) => { |
| | | return { |
| | | type: user.INIT_PERMISSION, |
| | | permAction: permAction, |
| | | permFuncField: permFuncField |
| | | } |
| | | } |
| | | |