فهرست منبع

恢复列表调用alllist接口

wangfumin 4 هفته پیش
والد
کامیت
96cc68354a
1فایلهای تغییر یافته به همراه26 افزوده شده و 26 حذف شده
  1. 26 26
      src/api/floder.ts

+ 26 - 26
src/api/floder.ts

@@ -17,32 +17,32 @@ export type Floders = Floder[]
 addUnsetResErrorURLS(`${namespace}/caseInquest/downDocx`, `${namespace}/caseExtractDetail/downDocx`, `${namespace}/caseImg/getFfmpegImage`)
 export const fetchFloders = async () => {
   const floders = await axios.get<Floders>(FLODER_LIST, { params: { caseId: params.caseId } })
-  const tabulationList = await axios.get<any>(getcaseTabulationList, { params: { caseId: params.caseId } })
-  const overviewList = await axios.get<any>(getcaseOverviewList, { params: { caseId: params.caseId } })
-  overviewList.forEach((item:any) => {
-    if(item.listCover){
-      floders.unshift({
-        filesId: item.id,
-        filesTypeId: 1,
-        filesTitle: item.title || '平面图',
-        imgType: 1,
-        filesUrl: item.listCover,
-        ...item
-      })
-    }
-  })
-  tabulationList.forEach((item:any) => {
-    if(item.listCover){
-      floders.unshift({
-        filesId: item.id,
-        filesTypeId: 1,
-        filesTitle: item.title,
-        filesUrl: item.listCover,
-        imgType: 1,
-        ...item
-      })
-    }
-  })
+  // const tabulationList = await axios.get<any>(getcaseTabulationList, { params: { caseId: params.caseId } })
+  // const overviewList = await axios.get<any>(getcaseOverviewList, { params: { caseId: params.caseId } })
+  // overviewList.forEach((item:any) => {
+  //   if(item.listCover){
+  //     floders.unshift({
+  //       filesId: item.id,
+  //       filesTypeId: 1,
+  //       filesTitle: item.title || '平面图',
+  //       imgType: 1,
+  //       filesUrl: item.listCover,
+  //       ...item
+  //     })
+  //   }
+  // })
+  // tabulationList.forEach((item:any) => {
+  //   if(item.listCover){
+  //     floders.unshift({
+  //       filesId: item.id,
+  //       filesTypeId: 1,
+  //       filesTitle: item.title,
+  //       filesUrl: item.listCover,
+  //       imgType: 1,
+  //       ...item
+  //     })
+  //   }
+  // })
   // console.log('tabulationList', tabulationList)
   // console.log('overviewList', overviewList)
   // console.log('floders1111111', floders)