diff --git a/frontend/src/components/business/ms-associate-case/useTreeSelection.ts b/frontend/src/components/business/ms-associate-case/useTreeSelection.ts index d17a78aedc..931b6b96e0 100644 --- a/frontend/src/components/business/ms-associate-case/useTreeSelection.ts +++ b/frontend/src/components/business/ms-associate-case/useTreeSelection.ts @@ -171,6 +171,7 @@ export default function useTreeSelection(selectedModuleProps: SelectedModuleProp Object.keys(selectedModulesMaps.value).forEach((key) => { delete selectedModulesMaps.value[key]; }); + checkedKeys.value = []; isCheckedAll.value = false; } diff --git a/frontend/src/components/business/ms-tree/index.vue b/frontend/src/components/business/ms-tree/index.vue index 8780b37ed0..7900861409 100644 --- a/frontend/src/components/business/ms-tree/index.vue +++ b/frontend/src/components/business/ms-tree/index.vue @@ -322,7 +322,7 @@ filterTreeData.value = data.value; } nextTick(() => { - treeRef.value?.expandAll(false); + treeRef.value?.expandAll(props.defaultExpandAll ?? false); }); } else { updateDebouncedSearch(); diff --git a/frontend/src/components/pure/ms-tree-select/index.vue b/frontend/src/components/pure/ms-tree-select/index.vue index f08f18cf14..ba0bb3fa3e 100644 --- a/frontend/src/components/pure/ms-tree-select/index.vue +++ b/frontend/src/components/pure/ms-tree-select/index.vue @@ -1,80 +1,168 @@