From 73597636ab6062c7ce06cc4d09866cc54cedc744 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 07 七月 2020 17:47:21 +0800
Subject: [PATCH] 2020-07-07

---
 src/templates/sharecomponent/columncomponent/index.jsx |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/templates/sharecomponent/columncomponent/index.jsx b/src/templates/sharecomponent/columncomponent/index.jsx
index 559f5fc..0b1532b 100644
--- a/src/templates/sharecomponent/columncomponent/index.jsx
+++ b/src/templates/sharecomponent/columncomponent/index.jsx
@@ -323,6 +323,20 @@
             if (column.marks && column.marks.filter(mark => mark.field === card.field || mark.contrastField === card.field).length > 0) {
               refers.push(column.label)
             }
+            if (column.type === 'colspan') {
+              let _length = column.sublist.length
+              column.sublist = column.sublist.filter(cell => cell !== card.uuid)
+
+              if (column.sublist.length < _length) {
+                let subfield = []  // 鍚堝苟鍒楀瓧娈�
+                _columnlist.forEach(col => {
+                  if (col.field && column.sublist.includes(col.uuid)) {
+                    subfield.push(col.field)
+                  }
+                })
+                column.subfield = subfield.join(', ')
+              }
+            }
           })
 
           if (refers.length > 0) {

--
Gitblit v1.8.0