king
2020-08-18 145c4b6ec2ea4f1dd7986b3179ca505a79bc0598
src/tabviews/treepage/index.jsx
@@ -27,6 +27,7 @@
class TreePage extends Component {
  static propTpyes = {
    param: PropTypes.string,     // 其他页面传递的参数
    MenuID: PropTypes.string,    // 菜单Id
    MenuNo: PropTypes.string,    // 菜单参数
    MenuName: PropTypes.string   // 菜单名称
@@ -36,6 +37,7 @@
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    ContainerId: Utils.getuuid(), // 菜单外层html Id
    loadingview: true,    // 页面加载中
    BID: null,            // 页面跳转时携带ID
    viewlost: false,      // 页面丢失:1、未获取到配置-页面丢失;2、页面未启用
    lostmsg: '',          // 页面丢失时的提示信息
    config: {},           // 页面配置信息,包括按钮、搜索、显示列、标签等
@@ -62,7 +64,7 @@
   * @description 获取页面配置信息
   */
  async loadconfig () {
    const { permAction } = this.props
    const { permAction, param } = this.props
    let _param = {
      func: 'sPC_Get_LongParam',
@@ -140,6 +142,7 @@
      })
      this.setState({
        BID: param && param.BID ? param.BID : '',
        loadingview: false,
        config: config,
        tabActive: _tabActive,
@@ -243,7 +246,7 @@
   * @description 主表数据加载
   */ 
  async loadmaindata () {
    const { setting, searchKey } = this.state
    const { setting, searchKey, BID } = this.state
    let param = ''
    this.setState({
@@ -256,6 +259,10 @@
      param = this.getDefaultParam()
    }
    if (BID) {
      param.BID = BID
    }
    // 数据管理权限
    if (this.props.dataManager) {
      param.dataM = 'Y'