From 977ce3d348f898d64ea240c8397b83d3e1cc5bb4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 18 十二月 2019 09:23:05 +0800 Subject: [PATCH] 2019-12-18 --- src/templates/comtableconfig/colspanform/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/templates/comtableconfig/colspanform/index.jsx b/src/templates/comtableconfig/colspanform/index.jsx index ace7351..13cc7b5 100644 --- a/src/templates/comtableconfig/colspanform/index.jsx +++ b/src/templates/comtableconfig/colspanform/index.jsx @@ -31,7 +31,15 @@ } delete values.type - let _card = {...this.props.card, ...values, sublist: targetKeys} + let subfield = [] // 鐢ㄤ簬鏌ョ湅鍚堝苟鍒楀瓧娈� + this.props.columns.forEach(col => { + if (col.field && targetKeys.includes(col.uuid)) { + subfield.push(col.field) + } + }) + subfield = subfield.join(', ') + + let _card = {...this.props.card, ...values, sublist: targetKeys, subfield: subfield} resolve({ type: 'columns', -- Gitblit v1.8.0