From eb31b84962c192de57abbb473cb4733a09bf4363 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 14 五月 2020 18:09:40 +0800
Subject: [PATCH] 2020-05-14

---
 src/templates/comtableconfig/index.jsx |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index 5bcbb43..b879a09 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -22,6 +22,7 @@
 import ColumnComponent from '@/templates/sharecomponent/columncomponent'
 import TabsComponent from '@/templates/sharecomponent/tabscomponent'
 import ChartComponent from '@/templates/sharecomponent/chartcomponent'
+import CardComponent from '@/templates/sharecomponent/cardcomponent'
 
 import MenuForm from '@/templates/zshare/menuform'
 import EditComponent from '@/templates/zshare/editcomponent'
@@ -555,7 +556,7 @@
             let deffers = delActions.map(item => {
               let _param = {
                 func: 'sPC_MainMenu_Del',
-                MenuID: item.card.uuid
+                MenuID: item.card ? item.card.uuid : item.uuid
               }
 
               if (item.type === 'action') {
@@ -1396,6 +1397,16 @@
                         />
                       </Col>
                     )
+                  } else if (item.chartType === 'card') {
+                    return (
+                      <Col span={item.width} key={item.uuid}>
+                        <CardComponent
+                          card={item}
+                          config={config}
+                          plotchange={this.updateconfig}
+                        />
+                      </Col>
+                    )
                   } else {
                     return (
                       <Col span={item.width} key={item.uuid}>

--
Gitblit v1.8.0