| | |
| | | }) |
| | | |
| | | let userid = sessionStorage.getItem('UserID') || '' |
| | | let LText = [...logMap.values()].map(item => `select '${item.menuId}','${item.times}','${item.name}','${window.GLOB.appkey}','${userid}'`) |
| | | let LText = [...logMap.values()].map(item => `select '${item.menuId}','${item.times}','${item.name || ''}','${window.GLOB.appkey}','${userid}'`) |
| | | |
| | | Api.genericInterface({func: 's_get_local_users_operation_log'}).then(res => { |
| | | if (!res.status) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: res.message, |
| | | duration: 3 |
| | | }) |
| | | return |
| | | } |
| | | |
| | | if (LText.length === 0 && !res.long_param) { |
| | | if (LText.length === 0) { |
| | | setTimeout(() => { |
| | | this.sendLog() |
| | | }, 600000) |
| | | return |
| | | } |
| | | |
| | | // {func: 's_get_local_users_operation_log'} 本地接口 返回 long_param 传入 sso 的 s_get_users_operation_log |
| | | |
| | | let param = { |
| | | func: 's_get_users_operation_log', |
| | | exec_type: window.GLOB.execType || 'y', |
| | | LText: LText.join(' union all '), |
| | | long_param: res.long_param |
| | | long_param: '' |
| | | } |
| | | |
| | | param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | |
| | | this.sendLog() |
| | | }, 600000) |
| | | this.setState({logs: []}) |
| | | }) |
| | | }) |
| | | } |
| | | |