king
2020-11-16 3ca91a731665962918a026f521c556f4745ebf35
src/tabviews/zshare/cardcomponent/index.jsx
@@ -147,7 +147,7 @@
            columns={logcolumns}
            selectedData={[data]}
            ContainerId={ContainerId}
            updateStatus={this.updateStatus}
            updateStatus={this.props.refreshdata}
          />
        )
      } else if (item.OpenType === 'popview') {
@@ -161,7 +161,7 @@
            BData={BData}
            setting={setting}
            selectedData={[data]}
            updateStatus={this.updateStatus}
            updateStatus={this.props.refreshdata}
          />
        )
      } else if (item.OpenType === 'tab' || item.OpenType === 'blank') {
@@ -173,7 +173,7 @@
            MenuID={MenuID}
            setting={setting}
            selectedData={[data]}
            updateStatus={this.updateStatus}
            updateStatus={this.props.refreshdata}
          />
        )
      } else if (item.OpenType === 'innerpage' || item.OpenType === 'outerpage') {
@@ -184,7 +184,7 @@
            show={show}
            setting={setting}
            selectedData={[data]}
            updateStatus={this.updateStatus}
            updateStatus={this.props.refreshdata}
          />
        )
      } else if (item.OpenType === 'funcbutton') {
@@ -197,7 +197,7 @@
              show={show}
              setting={setting}
              selectedData={[data]}
              updateStatus={this.updateStatus}
              updateStatus={this.props.refreshdata}
            />
          )
        } else if (item.funcType === 'print') {
@@ -212,7 +212,7 @@
              setting={setting}
              selectedData={[data]}
              ContainerId={ContainerId}
              updateStatus={this.updateStatus}
              updateStatus={this.props.refreshdata}
            />
          )
        }
@@ -220,15 +220,6 @@
      return null
    })
  }
  /**
   * @description 操作完成后,数据刷新
   */
  updateStatus = (type, positon) => {
    if (type === 'refresh') {
      this.props.refreshdata(positon)
    }
  }
  /**
@@ -511,7 +502,7 @@
              columns={this.props.logcolumns}
              selectedData={[]}
              ContainerId={this.props.ContainerId}
              updateStatus={this.updateStatus}
              updateStatus={this.props.refreshdata}
            />
          </div>
        </Card> : null}
@@ -761,6 +752,15 @@
    this.props.handleTableId(this.props.tableId, _id, data)
  }
  /**
   * @description 操作完成后,数据刷新
   */
  updateStatus = (type, positon, btn) => {
    if (type === 'refresh') {
      this.props.refreshdata(positon, btn)
    }
  }
  render() {
    const { plot, data, loading, BID, BData, Tab, MenuID, config, logcolumns, ContainerId, MenuName } = this.props
    const { card, colMap, selectKey, actionList } = this.state
@@ -787,7 +787,7 @@
                    show="icon"
                    MenuName={MenuName}
                    setting={config.setting}
                    updateStatus={() => {}}
                    updateStatus={this.updateStatus}
                  />
                )
              } else {
@@ -801,7 +801,7 @@
                    MenuName={MenuName}
                    setting={config.setting}
                    getexceloutparam={this.props.getexceloutparam}
                    updateStatus={() => {}}
                    updateStatus={this.updateStatus}
                  />
                )
              }
@@ -826,7 +826,7 @@
              setting={config.setting}
              ContainerId={ContainerId}
              switchCard={this.switchCard}
              refreshdata={this.props.refreshdata}
              refreshdata={this.updateStatus}
            />
          ))
        }
@@ -844,7 +844,7 @@
            setting={config.setting}
            ContainerId={ContainerId}
            switchCard={() => {}}
            refreshdata={this.props.refreshdata}
            refreshdata={this.updateStatus}
          /> : null
        }
        {(loading || !card.insertAction) && (!data || data.length === 0) ? <Empty description={false}/> : null}