| | |
| | | if (_hideCol.includes(col.uuid)) return |
| | | |
| | | if (col.linkmenu && col.linkmenu.length > 0) { |
| | | let menu_id = col.linkmenu[col.linkmenu.length - 1] |
| | | let menu_id = col.linkmenu.slice(-1)[0] |
| | | col.linkThdMenu = permMenus.filter(m => m.MenuID === menu_id)[0] || '' |
| | | } else { |
| | | col.linkThdMenu = '' |
| | |
| | | |
| | | if (col.type === 'colspan' && col.sublist) { |
| | | let _col = fromJS(col).toJS() |
| | | let subColumn = [] |
| | | let subcols = [] |
| | | _col.sublist.forEach(sub => { |
| | | if (colMap.has(sub)) { |
| | | subColumn.push(colMap.get(sub)) |
| | | subcols.push(colMap.get(sub)) |
| | | } |
| | | }) |
| | | _col.subColumn = subColumn |
| | | _col.subcols = subcols |
| | | _columns.push(_col) |
| | | } else { |
| | | _columns.push(col) |
| | |
| | | _ActiveTabId = _tab.uuid |
| | | }) |
| | | |
| | | this.setState({ |
| | | tabActive: {...this.state.tabActive, [_groupId]: _ActiveTabId} |
| | | }, () => { |
| | | if (_ActiveTabId && this.state.tabActive[_groupId] === _ActiveTabId) { |
| | | MKEmitter.emit('triggerBtnId', triggerId) |
| | | }) |
| | | |
| | | return true |
| | | return true |
| | | } |
| | | } |
| | | return false |
| | | }) |
| | |
| | | </Row> : null } |
| | | {setting && setting.onload !== 'false' && |
| | | config.tabgroups.map(group => ( |
| | | <Tabs activeKey={tabActive[group.uuid]} key={group.uuid} onChange={(key) => this.setState({tabActive: {...tabActive, [group.uuid]: key}})}> |
| | | <Tabs key={group.uuid} onChange={(key) => this.setState({tabActive: {...tabActive, [group.uuid]: key}})}> |
| | | {group.sublist.map(_tab => { |
| | | return ( |
| | | <TabPane tab={ |