1.将右键菜单绑到懒加载树形控件上
<div class="orgTree-cont">
<div class="drawer-bootom-button">
<a-dropdown :trigger="['contextmenu']">//右击触发事件
<a-menu slot="overlay">
<a-menu-item v-if="foolr.ifTeam === '1'" key="1" @click="addTeamDialog(1)">
<a-icon type="plus-circle" theme="twoTone"></a-icon>
增加团队
</a-menu-item>
<a-menu-item v-if="foolr.ifAdd === '1' " key="2" @click="addNextNode(2)">
<a-icon type="plus-circle" theme="twoTone"></a-icon>
增加下层节点
</a-menu-item>
<a-menu-item v-if="foolr.ifPeople === '1'" key="3" @click="addPersontNode(3)">
<a-icon type="plus-circle" theme="twoTone"></a-icon>
增加个人
</a-menu-item>
<a-menu-item v-if="foolr.ifEdit === '1'" key="4" @click="updateNode(4)">
<a-icon type="edit" theme="twoTone"></a-icon>
修改节点
</a-menu-item>
<a-menu-item v-if="foolr.ifRemove === '1'" key="5" @click="unBundleBox(5)">
<a-ico