king
2023-02-08 1f6d49bf15e6b50eeee1edc32022eb006b401835
src/tabviews/zshare/normalTable/index.jsx
@@ -48,7 +48,6 @@
    pickup: PropTypes.any,           // 数据收起
    columns: PropTypes.array,        // 表格列
    fields: PropTypes.array,         // 组件字段集
    ContainerId: PropTypes.any,      // 标签页外层Id
    BData: PropTypes.any,            // 主表数据
    data: PropTypes.any,             // 表格数据
    total: PropTypes.any,            // 总数
@@ -361,11 +360,7 @@
      let tabmenu = item.linkThdMenu
      tabmenu.param = __param
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', tabmenu, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', tabmenu, 'plus', true)
      }
      MKEmitter.emit('modifyTabs', tabmenu, true)
    } else if (item.linkurl) {
      let src = item.linkurl
@@ -758,7 +753,6 @@
                  BData={this.props.BData}
                  setting={this.props.setting}
                  columns={this.props.fields || this.props.columns}
                  ContainerId={this.props.ContainerId}
                />
              )
            } else if (btn.OpenType === 'popview') {
@@ -780,9 +774,9 @@
                  btn={btn}
                  disabled={record.$disabled}
                  selectedData={[record]}
                  BID={record.$$BID}
                  BData={this.props.BData}
                  MenuID={this.props.MenuID}
                  setting={this.props.setting}
                />
              )
            } else if (btn.OpenType === 'innerpage' || btn.OpenType === 'outerpage') {
@@ -793,7 +787,6 @@
                  disabled={record.$disabled}
                  selectedData={[record]}
                  BData={this.props.BData}
                  setting={this.props.setting}
                />
              )
            }
@@ -1122,9 +1115,9 @@
  }
  changedata = (index) => {
    const { data, setting, tableId, ContainerId } = this.props
    const { data, setting, tableId } = this.props
    if (!tableId || !ContainerId) return
    if (!tableId || !setting.ContainerId) return
    let _id = ''
    let _data = ''
@@ -1134,7 +1127,7 @@
      _data = data[index] || ''
    }
    MKEmitter.emit('changeTableLine', ContainerId, tableId, _id, _data)
    MKEmitter.emit('changeTableLine', setting.ContainerId, tableId, _id, _data)
  }
  resetTable = (id, repage) => {
@@ -1221,7 +1214,7 @@
  render() {
    const { setting, pickup, statFValue } = this.props
    const { selectedRowKeys, lineMarks, activeIndex, pageOptions } = this.state
    const { selectedRowKeys, lineMarks, activeIndex, pageOptions, columns } = this.state
    let components = {
      body: {}
@@ -1283,14 +1276,14 @@
    }
    return (
      <div className={'normal-data-table mingke-table ' + (height ? 'fixed-height' : '')}>
      <div className={'normal-data-table mingke-table ' + (height ? 'fixed-height' : '') + ` table-col-${columns.length}`}>
        <Table
          components={components}
          size={setting.size || 'middle'}
          style={style}
          bordered={setting.bordered !== 'false'}
          rowSelection={rowSelection}
          columns={this.state.columns}
          columns={columns}
          dataSource={_data}
          rowClassName={(record) => {
            let className = ''