fix: 网元配置类型切换清空下拉树
This commit is contained in:
@@ -39,6 +39,7 @@ async function fnSelectNeType(_: any, info: any) {
|
|||||||
});
|
});
|
||||||
treeState.selectLoading = true;
|
treeState.selectLoading = true;
|
||||||
neIdSelect.value = [];
|
neIdSelect.value = [];
|
||||||
|
neSelectTreeDate.value = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@ async function fnSelectNeType(_: any, info: any) {
|
|||||||
treeState.selectLoading = true;
|
treeState.selectLoading = true;
|
||||||
neTypeSelectStatus.value = true;
|
neTypeSelectStatus.value = true;
|
||||||
neIdSelect.value = [];
|
neIdSelect.value = [];
|
||||||
|
neSelectTreeDate.value = [];
|
||||||
// 构建可选树形数据
|
// 构建可选树形数据
|
||||||
if (Array.isArray(info.children) && info.children.length > 0) {
|
if (Array.isArray(info.children) && info.children.length > 0) {
|
||||||
const neArr = info.children.concat();
|
const neArr = info.children.concat();
|
||||||
|
|||||||
Reference in New Issue
Block a user