king
2024-07-11 26799837a5ee3f75c8525dddff2ae3cb675f21bc
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -1,7 +1,7 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
import { Spin, Empty, Row, Col, Pagination, Switch } from 'antd'
import { Spin, Empty, Row, Col, Pagination, Switch, notification } from 'antd'
import { DownOutlined, UpOutlined, PlusSquareOutlined, MinusSquareOutlined } from '@ant-design/icons'
import Api from '@/api'
@@ -969,6 +969,20 @@
  }
  refreshSearch = (list) => {
    const { config, BID } = this.state
    if (config.setting.supModule && !BID && config.wrap.supKey !== 'false') {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({
        search: list
      })
      return
    }
    this.setState({
      search: list,
      pageIndex: 1