king
2021-01-15 76a4300654a18d228838c3f27455dc8e7a8cd616
src/tabviews/zshare/actionList/index.jsx
@@ -27,8 +27,7 @@
    actions: PropTypes.array,         // 按钮组
    columns: PropTypes.array,         // 显示列
    setting: PropTypes.any,           // 页面通用设置
    ContainerId: PropTypes.any,       // tab页面ID,用于弹窗控制
    refreshdata: PropTypes.func,      // 执行完成后数据刷新
    ContainerId: PropTypes.any        // tab页面ID,用于弹窗控制
  }
  state = {
@@ -37,14 +36,6 @@
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
  }
  updateStatus = (type, positon, btn) => {
    if (type === 'refresh') {
      this.props.refreshdata(positon, btn)
    } else if (type === 'trigger') { // 日历中的新标签页触发事件
      this.props.refreshdata('trigger')
    }
  }
  getButtonList = (actions) => {
@@ -65,7 +56,6 @@
            position="toolbar"
            ContainerId={ContainerId}
            selectedData={selectedData}
            updateStatus={this.updateStatus}
          />
        )
      } else if (item.OpenType === 'excelIn') {
@@ -79,7 +69,6 @@
            setting={setting}
            position="toolbar"
            selectedData={selectedData}
            updateStatus={this.updateStatus}
          />
        )
      } else if (item.OpenType === 'excelOut') {
@@ -92,7 +81,6 @@
            btn={item}
            setting={setting}
            position="toolbar"
            updateStatus={this.updateStatus}
          />
        )
      } else if (item.OpenType === 'popview') {
@@ -107,7 +95,6 @@
            setting={setting}
            position="toolbar"
            selectedData={selectedData}
            updateStatus={this.updateStatus}
          />
        )
      } else if (item.OpenType === 'tab' || item.OpenType === 'blank') {
@@ -120,7 +107,6 @@
            setting={setting}
            position="toolbar"
            selectedData={selectedData}
            updateStatus={this.updateStatus}
          />
        )
      } else if (item.OpenType === 'innerpage' || item.OpenType === 'outerpage') {
@@ -132,7 +118,6 @@
            setting={setting}
            position="toolbar"
            selectedData={selectedData}
            updateStatus={this.updateStatus}
          />
        )
      } else if (item.OpenType === 'funcbutton') {
@@ -146,7 +131,6 @@
              setting={setting}
              position="toolbar"
              selectedData={selectedData}
              updateStatus={this.updateStatus}
            />
          )
        } else if (item.funcType === 'print') {
@@ -162,7 +146,6 @@
              position="toolbar"
              ContainerId={ContainerId}
              selectedData={selectedData}
              updateStatus={this.updateStatus}
            />
          )
        }