king
2020-11-25 9cf5fc474d2159aad973e3208fbef670f325307f
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -97,20 +97,24 @@
        }
      }
    } else if (btn.tabTemplate === 'ThdMenu') {
      let _type = 'CommonTable'
      if (btn.linkThdMenu && btn.linkThdMenu.PageParam) {
        try {
          _type = JSON.parse(btn.linkThdMenu.PageParam).Template
        } catch {
          _type = 'CommonTable'
        }
      let menu = null
      if (btn.linkmenu && btn.linkmenu.length > 0) {
        let menu_id = btn.linkmenu[btn.linkmenu.length - 1]
        menu = this.props.permMenus.filter(m => m.MenuID === menu_id)[0] || ''
      }
      if (!menu) {
        notification.warning({
          top: 92,
          message: '菜单已删除或没有访问权限!',
          duration: 5
        })
        return
      }
      newtab = {
        MenuNo: btn.linkThdMenu.MenuNo,
        MenuID: btn.linkThdMenu.MenuID,
        MenuName: btn.linkThdMenu.MenuName,
        type: _type,
        ...menu,
        selected: true,
        param: {
          BID: primaryId,
@@ -174,6 +178,7 @@
const mapStateToProps = (state) => {
  return {
    tabviews: state.tabviews,
    permMenus: state.permMenus,
  }
}