king
2024-10-18 b1fc0a89ce16dd14a6dff98c228a308e85a53828
src/components/querylog/index.jsx
@@ -48,30 +48,22 @@
    })
    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')
@@ -92,7 +84,6 @@
          this.sendLog()
        }, 600000)
        this.setState({logs: []})
      })
    })
  }