From 49c034a005f22ad6c8a3e0c9828de3176190d06a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 16 六月 2023 18:09:08 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/custom/components/table/edit-table/index.jsx | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx index f21a620..f0cfdb3 100644 --- a/src/tabviews/custom/components/table/edit-table/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/index.jsx @@ -507,15 +507,17 @@ if (config.uuid !== menuId) return - let _data = fromJS(this.state.data).toJS().forEach(item => { + let _data = fromJS(this.state.data).toJS().map(item => { if (item.$$uuid === uuid) { item[btn.field] = count } + return item }) - let _selectedData = fromJS(this.state.selectedData).toJS().forEach(item => { + let _selectedData = fromJS(this.state.selectedData).toJS().map(item => { if (item.$$uuid === uuid) { item[btn.field] = count } + return item }) this.setState({ -- Gitblit v1.8.0