king
2022-02-14 2504ff3e6e7143d3afba45527ef00b173376f7f8
src/tabviews/zshare/normalTable/index.jsx
@@ -216,7 +216,11 @@
          }
        }
        
        _columns.push(cell)
        if (item.type === 'action' && item.position === 'left') {
          _columns.unshift(cell)
        } else {
          _columns.push(cell)
        }
      })
  
      if (rowspans.length === 0) {
@@ -269,7 +273,7 @@
    if (id !== this.props.MenuID) return
    if (this.props.data.length > 0) {
      this.changeRow(null, 0)
      this.changeRow(this.props.data[0], 0)
    }
  }
@@ -281,7 +285,7 @@
    let i = index - (pageIndex - 1) * pageSize - 1
    if (this.props.data[i]) {
      this.changeRow(null, i)
      this.changeRow(this.props.data[i], i)
      MKEmitter.emit('autoTransSelectData', this.props.MenuID, this.props.data[i])
    } else {
      MKEmitter.emit('autoMaticOver', this.props.MenuID)
@@ -481,7 +485,7 @@
        content = md5(content)
      }
      if (item.linkThdMenu || item.linkurl) {
      if (!record.$disabled && (item.linkThdMenu || item.linkurl)) {
        if (item.rowspan === 'true') {
          return {
            children: (
@@ -580,7 +584,7 @@
        content = md5(content)
      }
      if (item.linkThdMenu || item.linkurl) {
      if (!record.$disabled && (item.linkThdMenu || item.linkurl)) {
        if (item.rowspan === 'true') {
          return {
            children: (
@@ -725,6 +729,8 @@
                  key={btn.uuid}
                  btn={btn}
                  BID={record.$$BID}
                  disabled={record.$disabled}
                  lineId={record.$$key || ''}
                  selectedData={[record]}
                  BData={this.props.BData}
                  setting={this.props.setting}
@@ -738,6 +744,8 @@
                  key={btn.uuid}
                  btn={btn}
                  BID={record.$$BID}
                  disabled={record.$disabled}
                  lineId={record.$$key || ''}
                  selectedData={[record]}
                  BData={this.props.BData}
                  setting={this.props.setting}
@@ -748,6 +756,8 @@
                <TabButton
                  key={btn.uuid}
                  btn={btn}
                  disabled={record.$disabled}
                  lineId={record.$$key || ''}
                  selectedData={[record]}
                  BData={this.props.BData}
                  MenuID={this.props.MenuID}
@@ -759,6 +769,8 @@
                <NewPageButton
                  key={btn.uuid}
                  btn={btn}
                  disabled={record.$disabled}
                  lineId={record.$$key || ''}
                  selectedData={[record]}
                  BData={this.props.BData}
                  setting={this.props.setting}
@@ -1029,7 +1041,7 @@
    this.setState({ selectedRowKeys, activeIndex: _activeIndex })
    let selects = this.props.data.filter((item, _index) => selectedRowKeys.includes(_index))
    let selects = this.props.data.filter((item, _index) => selectedRowKeys.includes(_index) && !item.$disabled)
    this.props.chgSelectData(selects)
  }
@@ -1039,6 +1051,7 @@
   */
  changeRow = (record, index) => {
    if (!this.props.setting.tableType || this.props.pickup) return
    if (record.$disabled) return
    
    let newkeys = fromJS(this.state.selectedRowKeys).toJS()
@@ -1171,6 +1184,7 @@
    const { setting } = this.props
    if (!setting.doubleClick) return
    if (record.$disabled) return
    MKEmitter.emit('triggerBtnId', setting.doubleClick, [record])
  }
@@ -1281,7 +1295,9 @@
          dataSource={_data}
          rowClassName={(record) => {
            let className = ''
            if ((setting.tableType === 'checkbox' || setting.tableType === 'radio') && record.key === activeIndex) {
            if (record.$disabled) {
              className = 'mk-disabled '
            } else if ((setting.tableType === 'checkbox' || setting.tableType === 'radio') && record.key === activeIndex) {
              className = 'mk-row-active '
            }