| | |
| | | return |
| | | } |
| | | |
| | | let result = await Api.getSystemConfig({func: 'sPC_Get_FunMenu', ParentID: menu.MenuID}) |
| | | let _param = {func: 'sPC_Get_FunMenu', ParentID: menu.MenuID} |
| | | |
| | | if (sessionStorage.getItem('isEditState') === 'true') { // 编辑状态时,获取菜单,增加参数debug |
| | | _param.debug = 'Y' |
| | | } |
| | | |
| | | let result = await Api.getSystemConfig(_param) |
| | | if (result.status) { |
| | | if (result.data.length === 0) { // 查询菜单为空 |
| | | this.setState({ |
| | |
| | | e.stopPropagation() |
| | | this.props.resetEditLevel('level2') |
| | | // 获取一级菜单列表 |
| | | Api.getSystemConfig({func: 'sPC_Get_MainMenu'}).then(res => { |
| | | Api.getSystemConfig({func: 'sPC_Get_MainMenu', debug: 'Y'}).then(res => { |
| | | this.setState({ |
| | | mainMenuList: res.data.map(item => { |
| | | return { |