king
2021-12-29 2245384d97d69e36d09cd6baa877e50a81d9aff9
src/templates/zshare/editTable/index.jsx
@@ -507,7 +507,7 @@
  }
  render() {
    const { actions } = this.props
    const { actions, indexShow } = this.props
    let components = {
      body: {
@@ -545,12 +545,14 @@
      }
    })
    columns.unshift({
      title: '序号',
      dataIndex: '$index',
      className: 'mk-index',
      width: '60px',
    })
    if (indexShow !== false) {
      columns.unshift({
        title: '序号',
        dataIndex: '$index',
        className: 'mk-index',
        width: '60px',
      })
    }
    const data = this.state.data.map((item, index) => {
      item.$index = index + 1