| | |
| | | export default { |
| | | name: 'ProductStructureBaseContextMenu', |
| | | components: {}, |
| | | props: { |
| | | tableRowInfo: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | menuVisible: false, |
| | |
| | | boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)', |
| | | zIndex: 999 |
| | | }, |
| | | currentMenuLevel: '', |
| | | baseContextMenuList: [ |
| | | { label: '刷新', code: 'tree_reload', icon: 'reload', isHasPermission: false, isCommonMethod: false }, |
| | | { label: '添加产品', code: 'product_add', icon: 'plus', isHasPermission: true, isCommonMethod: false } |
| | |
| | | }, |
| | | methods: { |
| | | menuItemClick({ key }) { |
| | | console.log('menuKey', key) |
| | | const isCommonMethod = this.baseContextMenuList.find(item => item.code === key).isCommonMethod |
| | | const modalTitle = this.baseContextMenuList.find(item => item.code === key).label |
| | | const menuKeyArray = key.split('_') |