From 53b9fb93d0376eb02bb996935f1720b4e95cd897 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 12 十月 2022 14:41:06 +0800
Subject: [PATCH] 2022-10-12

---
 src/tabviews/custom/components/group/normal-group/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/custom/components/group/normal-group/index.jsx b/src/tabviews/custom/components/group/normal-group/index.jsx
index 3a2fc09..9c86c8a 100644
--- a/src/tabviews/custom/components/group/normal-group/index.jsx
+++ b/src/tabviews/custom/components/group/normal-group/index.jsx
@@ -1,7 +1,7 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Col, Empty, notification, Button, Row } from 'antd'
+import { Col, notification, Button, Row } from 'antd'
 
 import Api from '@/api'
 import asyncComponent from '@/utils/asyncComponent'
@@ -111,7 +111,7 @@
 
     let param = getStructuredParams(params, this.props.config, BID)
 
-    Api.getLocalConfig(param).then(result => {
+    Api.genericInterface(param).then(result => {
       if (result.status) {
         delete result.status
         delete result.message
@@ -137,8 +137,6 @@
   getComponents = () => {
     const { config } = this.props
     const { mainSearch, data } = this.state
-
-    if (!config || !config.components || config.components.length === 0) return (<Empty description={false} />)
 
     return config.components.map(item => {
       if (item.type === 'bar' || item.type === 'line') {
@@ -343,6 +341,8 @@
     const { config } = this.props
     const { printing } = this.state
 
+    if (!config.components || config.components.length === 0) return (<div style={config.style}></div>)
+    
     return (
       <div className={'normal-group-wrap ' + (config.setting.layout || '')} id={config.uuid} style={config.style}>
         {config.setting && config.setting.print === 'true' ? <Button className="print-button" icon="printer" loading={printing} onClick={this.print}></Button> : null}

--
Gitblit v1.8.0