king
2023-08-11 4adb8b8868aeed1f5f3b89ae269a7724c6b451ad
src/tabviews/zshare/pageMessage/index.jsx
@@ -5,7 +5,6 @@
import Api from '@/api'
import Utils from '@/utils/utils.js'
import options from '@/store/options.js'
import './index.scss'
@@ -15,7 +14,6 @@
class PageMessage extends Component {
  static propTpyes = {
    BID: PropTypes.any,          // 父级Id,用于查询下拉选择项
    dict: PropTypes.object,      // 字典
  }
  state = {
@@ -142,7 +140,7 @@
        })
      }
      if (item.type === 'card' || (item.type === 'table' && item.subtype === 'tablecard')) {
      if (item.type === 'card') {
        item.subcards.forEach(card => {
          card.elements && card.elements.forEach(cell => {
            if (cell.eleType === 'button') {
@@ -157,7 +155,7 @@
            }
          })
        })
      } else if (item.type === 'table' && item.subtype === 'normaltable') {
      } else if (item.type === 'table') {
        item.cols.forEach(col => {
          if (col.type !== 'action') return
          col.elements && col.elements.forEach(cell => {
@@ -314,12 +312,12 @@
  render() {
    const { menu, dict } = this.props
    const { menu } = this.props
    const { debug, visible, data } = this.state
    return (
      <div className="page-message-wrap">
        {debug && options.sysType !== 'cloud' ? <Button
      <div className={'page-message-wrap ' + (debug && window.GLOB.sysType !== 'cloud' ? 'exist' : '')}>
        {debug && window.GLOB.sysType !== 'cloud' ? <Button
          icon="copy"
          shape="circle"
          className="page-message"
@@ -333,7 +331,7 @@
          visible={visible}
          onCancel={() => this.setState({visible: false})}
          footer={[
            <Button key="close" onClick={() => this.setState({visible: false})}>{dict['main.close']}</Button>
            <Button key="close" onClick={() => this.setState({visible: false})}>关闭</Button>
          ]}
          destroyOnClose
        >