| | |
| | | <OtherDocumentTableList @handleTableContextMenuOpen="handleTableContextMenuOpen" :size="tableContainerSize"/> |
| | | </a-tab-pane> |
| | | |
| | | <TableContextMenu :currentTableRowInfo="currentTableRowInfo" ref="tableContextMenuRef"/> |
| | | <TableContextMenu :tableRowInfo="currentRightClickedTableRowInfo" ref="tableContextMenuRef"/> |
| | | </a-tabs> |
| | | </template> |
| | | |
| | | <script> |
| | | import ProcessTableList from './Process/ProcessTableList' |
| | | import NcDocumentTableList from './Document/NcDocumentTableList' |
| | | import OtherDocumentTableList from './Document/OtherDocumentTableList' |
| | | import TableContextMenu from '../../../common/TableContextMenu' |
| | | |
| | | export default { |
| | | name: 'ProductStructureMainTop', |
| | | components: { TableContextMenu, OtherDocumentTableList, NcDocumentTableList, ProcessTableList }, |
| | | components: { TableContextMenu, OtherDocumentTableList, NcDocumentTableList }, |
| | | data() { |
| | | return { |
| | | activeTabKey: '1', |
| | | tableContainerSize: 'small', |
| | | currentTableRowInfo: {}, |
| | | currentRightClickedTableRowInfo: {}, |
| | | currentTreeNodeInfo: {} |
| | | } |
| | | }, |
| | |
| | | * @param record 当前表格行信息 |
| | | */ |
| | | handleTableContextMenuOpen(record) { |
| | | this.currentTableRowInfo = Object.assign({}, record) |
| | | this.currentRightClickedTableRowInfo = Object.assign({}, record) |
| | | this.$refs.tableContextMenuRef.currentMenuLevel = record.param |
| | | this.$refs.tableContextMenuRef.menuStyle.top = event.clientY + 'px' |
| | | this.$refs.tableContextMenuRef.menuStyle.left = event.clientX + 'px' |