|
@@ -127,16 +127,16 @@ export const getcaseLists = async (caseId: number): Promise<Scene[]> => {
|
|
|
|
|
|
export const updateByTreeFileLists = async (caseId = router.currentRoute.value?.params?.caseId): Promise<Scene[]> => {
|
|
|
let list = (await axios.get(getByTree, { params: { caseId:caseId } })).data
|
|
|
- function getTreeList(lists: any[]) {
|
|
|
- return lists.map(item => {
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- caseFilesList: item.caseFilesList && item.caseFilesList.reverse(),
|
|
|
- childrenList: item.childrenList && getTreeList(item.childrenList)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- treeList.value = getTreeList(list);
|
|
|
+ // function getTreeList(lists: any[]) {
|
|
|
+ // return lists.map(item => {
|
|
|
+ // return {
|
|
|
+ // ...item,
|
|
|
+ // caseFilesList: item.caseFilesList && item.caseFilesList.reverse(),
|
|
|
+ // childrenList: item.childrenList && getTreeList(item.childrenList)
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ treeList.value = list;
|
|
|
return list;
|
|
|
};
|
|
|
export const updateSelectByTreeFileLists = async (): Promise<Scene[]> => {
|