king
2023-08-27 da64ab0923bf8817fc8599a6e37b953ce38f64c8
src/views/systemproc/proc/index.jsx
@@ -13,7 +13,7 @@
class ProcControl extends Component {
  state = {
    procName: '',
    procName: this.props.func || '',
    content: '',
    loading: false,
    visible: false,
@@ -24,9 +24,12 @@
  }
  componentDidMount () {
    sessionStorage.setItem('User_Name', sessionStorage.getItem('CloudUserName'))
    sessionStorage.setItem('Full_Name', sessionStorage.getItem('CloudFullName'))
    if (sessionStorage.getItem('permFuncField')) {
      this.setState({permFuncs: JSON.parse(sessionStorage.getItem('permFuncField'))})
    } else {
    } else if (sessionStorage.getItem('UserID')) {
      Api.getCloudConfig({func: 'sPC_Get_Roles_sModular'}).then(res => {
        if (res.status) {
          let _permFuncs = []
@@ -53,6 +56,12 @@
          })
        }
      })
    }
    if (this.props.func && sessionStorage.getItem('UserID')) {
      setTimeout(() => {
        this.search(this.props.func)
      }, 500)
    }
  }
@@ -159,7 +168,6 @@
    dropParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
    dropParam.secretkey = Utils.encrypt(dropParam.LText, dropParam.timestamp)
    dropParam.open_key = Utils.encryptOpenKey(dropParam.secretkey, dropParam.timestamp)
    let createParam = {
      func: 'sPC_TableData_InUpDe',