king
2019-11-29 0ae7068208a32226f8f8812641f31646fb8b54c9
src/tabviews/commontable/mainTable/index.jsx
@@ -77,11 +77,9 @@
  changeRow = (record, index) => {
    // 点击整行,触发切换,判断是否可选,单选或多选,进行对应操作
    console.log(index)
    if (!this.props.setting.tableType) return
    let newkeys = JSON.parse(JSON.stringify(this.state.selectedRowKeys))
    console.log(newkeys)
    let _re = newkeys.includes(index)
    if (this.props.setting.tableType === 'radio') {
@@ -92,6 +90,7 @@
      } else {
        newkeys.push(index)
      }
      this.setState({ selectedRowKeys: newkeys })
    }
  }
@@ -137,6 +136,7 @@
        }
      }
    }
    return (
      <div className="main-table">
        {this.props.setting.columnfixed && <Affix offsetTop={offset} className="fix-header">