From 2245384d97d69e36d09cd6baa877e50a81d9aff9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 29 十二月 2021 21:59:09 +0800 Subject: [PATCH] 2021-12-29 --- src/templates/zshare/editTable/index.jsx | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/templates/zshare/editTable/index.jsx b/src/templates/zshare/editTable/index.jsx index a5af7c8..94ae9d1 100644 --- a/src/templates/zshare/editTable/index.jsx +++ b/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 -- Gitblit v1.8.0