Sfoglia il codice sorgente

chore(api): 适配“查询系统方案列表”接口

ccnnde 2 mesi fa
parent
commit
c4d9d3e81e
1 ha cambiato i file con 9 aggiunte e 5 eliminazioni
  1. 9 5
      src/views/components/Graphics.vue

+ 9 - 5
src/views/components/Graphics.vue

@@ -995,7 +995,11 @@ const getCaseProjects = async (name: string, system:boolean, template:boolean, c
   }
   const ret: any = await axios.post(
     `/api/data/${collection}/list`,
-    data ,
+    {
+      pageIndex: current,
+      pageSize,
+      ...data
+    },
     // {
     //   // query: {
     //   //   tags: "系统方案"
@@ -1008,10 +1012,10 @@ const getCaseProjects = async (name: string, system:boolean, template:boolean, c
     //   template
     // },
     {
-      params: {
-        current,
-        pageSize,
-      },
+      // params: {
+      //   current,
+      //   pageSize,
+      // },
     }
   );