|
@@ -8,6 +8,7 @@
|
|
<span :class="data?.colorStatus === 2?'text-blue':data?.colorStatus === 3?'text-orange':data?.colorStatus === 4?'text-green':''" v-if="isColor">{{ node.label }}</span>
|
|
<span :class="data?.colorStatus === 2?'text-blue':data?.colorStatus === 3?'text-orange':data?.colorStatus === 4?'text-green':''" v-if="isColor">{{ node.label }}</span>
|
|
<span v-else>{{ node.label }}</span>
|
|
<span v-else>{{ node.label }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="text-blue submit-counts" v-if="isSubmitCounts">【{{ data.submitCounts ?? 0 }}】</div>
|
|
<!--树组件,操作菜单-->
|
|
<!--树组件,操作菜单-->
|
|
<div class="menu-icon" :class="node.showTreeMenu?'show':''" v-if="node.level !== 1 && menusData.length > 0">
|
|
<div class="menu-icon" :class="node.showTreeMenu?'show':''" v-if="node.level !== 1 && menusData.length > 0">
|
|
<div class="cu-tree-node-popover-menu-icon" @click.prevent.stop="ElTreeLabelContextMenu($event,data,node)">
|
|
<div class="cu-tree-node-popover-menu-icon" @click.prevent.stop="ElTreeLabelContextMenu($event,data,node)">
|
|
@@ -78,6 +79,10 @@ const props = defineProps({
|
|
type: String,
|
|
type: String,
|
|
default: ''
|
|
default: ''
|
|
},
|
|
},
|
|
|
|
+ submitCounts: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ default: false
|
|
|
|
+ },
|
|
})
|
|
})
|
|
|
|
|
|
//变量
|
|
//变量
|
|
@@ -96,6 +101,7 @@ const TreeExpandKey = ref(props.autoExpandKeys)
|
|
const projectId = ref(props.projectId);
|
|
const projectId = ref(props.projectId);
|
|
const contractId = ref(props.contractId);
|
|
const contractId = ref(props.contractId);
|
|
const idPrefix = ref(props.idPrefix);
|
|
const idPrefix = ref(props.idPrefix);
|
|
|
|
+const isSubmitCounts = ref(props.submitCounts);
|
|
|
|
|
|
//监听
|
|
//监听
|
|
watch(() => [
|
|
watch(() => [
|
|
@@ -106,7 +112,8 @@ watch(() => [
|
|
props.projectId,
|
|
props.projectId,
|
|
props.contractId,
|
|
props.contractId,
|
|
props.idPrefix,
|
|
props.idPrefix,
|
|
-], ([menus, isMark, AutoKeys, expandKeys, UserProjectId, UserContractId,UserIdPrefix]) => {
|
|
|
|
|
|
+ props.submitCounts,
|
|
|
|
+], ([menus, isMark, AutoKeys, expandKeys, UserProjectId, UserContractId, UserIdPrefix, submitCounts]) => {
|
|
menusData.value = menus
|
|
menusData.value = menus
|
|
menuMark.value = isMark
|
|
menuMark.value = isMark
|
|
isAutoKeys.value = AutoKeys
|
|
isAutoKeys.value = AutoKeys
|
|
@@ -114,6 +121,7 @@ watch(() => [
|
|
projectId.value = UserProjectId
|
|
projectId.value = UserProjectId
|
|
contractId.value = UserContractId
|
|
contractId.value = UserContractId
|
|
idPrefix.value = UserIdPrefix
|
|
idPrefix.value = UserIdPrefix
|
|
|
|
+ isSubmitCounts.value = submitCounts
|
|
})
|
|
})
|
|
|
|
|
|
//事件
|
|
//事件
|