<template> <dxPbOrganizationUnitTree display-mode="QUERY" title="生产组织层级" @nodeClick="onNodeClick" /> </template> <script> import dxPbOrganizationUnitTree from '../dxPbOrganizationUnitTree' export default { // 展示的是实际生产组织树数据 name: 'DxPbOrganizationUnitQueryTree', componentName: '生产单元查询树', components: { dxPbOrganizationUnitTree }, data() { return { evenList: [ { even: 'nodeClick', name: '节点点击事件' } ] } }, methods: { onNodeClick(data) { this.$emit('nodeClick', data) } } } </script>