| | |
| | | _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' // 时间戳 |
| | | _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp) // md5密钥 |
| | | |
| | | let localResult = await Api.getLocalConfig(_param) |
| | | let result = {status: true} |
| | | let result = await Api.getSystemConfig(_param) // 取消修改本地密码,只修改单点服务器 |
| | | |
| | | if (window.GLOB.mainSystemApi && window.GLOB.subSystemApi !== window.GLOB.mainSystemApi) { |
| | | result = await Api.getSystemConfig(_param) |
| | | } |
| | | |
| | | if (result.status && localResult.status) { |
| | | if (result.status) { |
| | | this.setState({ |
| | | visible: false, |
| | | confirmLoading: false |
| | |
| | | } else { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: result.message || localResult.message, |
| | | message: result.message, |
| | | duration: 10 |
| | | }) |
| | | this.setState({ |
| | |
| | | let _permFuncField = [] |
| | | if (result.UserRoles && result.UserRoles[0] && result.UserRoles[0].RoleMenu) { |
| | | result.UserRoles[0].RoleMenu.forEach(menu => { |
| | | if (!menu.MenuID) return |
| | | _permAction[menu.MenuID] = true |
| | | }) |
| | | } |