| | |
| | | } else { |
| | | resolve(result) |
| | | } |
| | | }) |
| | | }, this.netError) |
| | | }) |
| | | } else { |
| | | resolve({status: true}) |
| | |
| | | } |
| | | return Api.getSystemConfig(_param) |
| | | } |
| | | }).then(res => { // 页面按钮关系保存 |
| | | }, this.netError).then(res => { // 页面按钮关系保存 |
| | | if (!res || !res.status) return res |
| | | |
| | | this.setState({ |
| | |
| | | status: true |
| | | } |
| | | } |
| | | }).then(res => { |
| | | }, this.netError).then(res => { |
| | | this.setState({ |
| | | menuloading: false |
| | | }) |
| | |
| | | duration: 5 |
| | | }) |
| | | } |
| | | }) |
| | | }, this.netError) |
| | | }, 300 + (+sessionStorage.getItem('mkDelay'))) |
| | | } |
| | | |
| | | netError = (error) => { |
| | | this.setState({ |
| | | menuloading: false |
| | | }) |
| | | if (!error) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '保存失败,请检查网络是否正常。', |
| | | duration: 5 |
| | | }) |
| | | } |
| | | } |
| | | |
| | | getRoleFields = () => { |
| | | if (sessionStorage.getItem('sysRoles')) return |
| | | |