king
2022-09-17 6423d81cfa459aec7dbc05504588f3a2fcfe3dbd
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'
@@ -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}