fix: 看板用户数初始neId传入失败,禁止选择当前项

This commit is contained in:
TsMask
2025-04-11 18:01:10 +08:00
parent b0d3cec1fa
commit cc74e9f84d

View File

@@ -316,7 +316,7 @@ onMounted(() => {
});
udmOtions.value = arr1;
if (arr1.length > 0) {
fnSelectUDM(arr1[0].value);
fnSelectUDM({ key: arr1[0].value });
}
// 过滤不可用的网元
@@ -399,7 +399,11 @@ onBeforeUnmount(() => {
</div>
<template #overlay>
<a-menu @click="fnSelectUDM">
<a-menu-item v-for="v in udmOtions" :key="v.value">
<a-menu-item
v-for="v in udmOtions"
:key="v.value"
:disabled="udmNeId === v.value"
>
{{ v.label }}
</a-menu-item>
</a-menu>