king
2022-09-06 fa381753ef2a2b25b1c0722549ac17e333da79be
src/tabviews/formtab/index.jsx
@@ -37,7 +37,7 @@
    config: {},           // 页面配置信息,包括按钮、表单、标签等
    groups: null,         // 表单组
    actions: null,        // 按钮集
    arr_field: '',        // 使用 sPC_Get_TableData 时的查询字段集
    arr_field: '',        // 查询字段集
    setting: null,        // 页面全局设置:数据源、按钮及显示列固定、主键等
    data: null,           // 列表数据集
    BIDs: {},             // 上级表id
@@ -103,7 +103,7 @@
        config.tabgroups = _tabgroups
      }
      if (this.props.menuType !== 'HS') {
      if (!window.GLOB.mkHS) {
        config.action = config.action.filter(item => permAction[item.uuid])
        config.tabgroups.forEach(group => {
          group.sublist = group.sublist.filter(tab => {
@@ -214,7 +214,7 @@
          param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
          param.secretkey = Utils.encrypt(param.LText, param.timestamp)
          if (this.props.menuType === 'HS') { // 云端数据验证
          if (window.GLOB.mkHS) { // 云端数据验证
            param.open_key = Utils.encryptOpenKey(param.secretkey, param.timestamp)
            if (item.database === 'sso' && options.cloudServiceApi) { // 存在云端地址时,使用云端系统参数
@@ -390,7 +390,7 @@
  }
  /**
   * @description 获取系统存储过程 sPC_Get_TableData 的参数
   * @description 获取系统存储过程的参数
   */
  getDefaultParam = () => {
    const { arr_field, setting, primaryId } = this.state
@@ -438,7 +438,7 @@
    param.secretkey = Utils.encrypt(param.LText, param.timestamp)
    param.DateCount = ''
    if (this.props.menuType !== 'HS') { // 云端数据验证
    if (!window.GLOB.mkHS) { // 云端数据验证
      param.open_key = Utils.encryptOpenKey(param.secretkey, param.timestamp)
    }
@@ -456,9 +456,11 @@
    if (setting.interType === 'inner') {
      param.func = setting.innerFunc
    } else {
      if (this.props.menuType === 'HS') {
      if (window.GLOB.mkHS) {
        if (setting.sysInterface === 'true' && options.cloudServiceApi) {
          param.rduri = options.cloudServiceApi
          param.userid = sessionStorage.getItem('CloudUserID') || ''
          param.LoginUID = sessionStorage.getItem('CloudLoginUID') || ''
        } else if (setting.sysInterface !== 'true') {
          param.rduri = setting.interface
        }
@@ -622,7 +624,6 @@
        }
        {hasform ?
          <FormAction
            menuType={this.props.menuType}
            setting={setting}
            actions={actions}
            dict={this.state.dict}
@@ -661,7 +662,7 @@
            )
          })
        }
        {this.props.menuType !== 'HS' && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {!window.GLOB.mkHS && window.GLOB.systemType !== 'production' ? <PagemsgComponent menu={{MenuName: this.props.MenuName, MenuNo: this.props.MenuNo}} config={config} dict={this.state.dict} /> : null}
        {viewlost ? <NotFount msg={this.state.lostmsg} /> : null}
      </div>
    )
@@ -670,7 +671,6 @@
const mapStateToProps = (state) => {
  return {
    menuType: state.editLevel,
    permAction: state.permAction
  }
}