|
@@ -17,7 +17,7 @@
|
|
|
</div>
|
|
|
|
|
|
<!--没有传入菜单使用默认的-->
|
|
|
- <div class="menu-icon1" :class="node.showTreeMenu?'show':''" v-if="node.level !== 1 && menusData.length < 1">
|
|
|
+ <div class="menu-icon1" :class="node.showTreeMenu?'show':''" v-if="node.level !== 1 && menusData.length < 1&&isShowMenu">
|
|
|
<div class="cu-tree-node-popover-menu-icon" @click.prevent.stop="ElTreeLabelContextMenu2($event,data,node)">
|
|
|
<HcIcon name="apps" ui="text-2xl"/>
|
|
|
</div>
|
|
@@ -115,6 +115,10 @@ const props = defineProps({
|
|
|
default() {
|
|
|
return true;
|
|
|
}
|
|
|
+ },
|
|
|
+ isShowMenu:{
|
|
|
+ type:Boolean,
|
|
|
+ default:true
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -144,6 +148,7 @@ watch(() => [
|
|
|
props.contractId,
|
|
|
props.idPrefix,
|
|
|
props.radioKey,
|
|
|
+
|
|
|
], ([menus, AutoKeys, expandKeys, UserProjectId, UserContractId, UserIdPrefix, radioKey]) => {
|
|
|
menusData.value = menus
|
|
|
isAutoKeys.value = AutoKeys
|