From 8a0b3081ecacbb844ea639ccc53ffd2c151cec1e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 28 三月 2021 02:13:53 +0800 Subject: [PATCH] 2021-03-28 --- src/templates/sharecomponent/columncomponent/index.jsx | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/index.jsx b/src/templates/sharecomponent/columncomponent/index.jsx index 0cc3873..c8061d3 100644 --- a/src/templates/sharecomponent/columncomponent/index.jsx +++ b/src/templates/sharecomponent/columncomponent/index.jsx @@ -73,6 +73,7 @@ */ handleColumn = (card) => { const { menu } = this.props + const { columnlist } = this.state if (card.type !== 'colspan') { let menulist = [] @@ -99,11 +100,20 @@ return fst }) } + + let fields = [] + columnlist.forEach(col => { + if (!col.field) return + fields.push({ + value: col.field, + text: col.label + }) + }) this.setState({ modaltype: 'columns', card: card, - formlist: getColumnForm(card, menulist) + formlist: getColumnForm(card, menulist, fields) }) } else { this.setState({ -- Gitblit v1.8.0