Explorar el Código

fix:增加请求地址

lupeng hace 3 meses
padre
commit
a9c3df170c

+ 17 - 0
src/api/statistic/reportData.ts

@@ -0,0 +1,17 @@
+import request from "@/utils/request";
+import { AxiosPromise } from "axios";
+
+/**
+ * 获取登录日志分页
+ * @param queryParams
+ */
+export function getQualityTableData(
+    queryParams: object
+): AxiosPromise<PageResult<any[]>> {
+    return request({
+        url: "/api/v1/quality/report/detail",
+        method: "post",
+        data: queryParams,
+    });
+}
+

+ 1 - 1
src/views/statistic/report/index.vue

@@ -30,7 +30,7 @@
         </el-button>
       </template>
     </avue-crud>
-    <reportTemplate v-model="showStatus" :detail="detail" />
+<!--    <reportTemplate v-model="showStatus" :detail="detail" />-->
     <ToPrintDialog ref="toPrintRef"></ToPrintDialog>
   </div>
 </template>

+ 4 - 1
src/views/statistic/report/toPrintTables.vue

@@ -5,6 +5,7 @@ import {
   moduleScreeningData,
   productAcceptanceData,
 } from "@/api/statistic/reportMockData";
+import {getQualityTableData} from "@/api/statistic/reportData";
 
 const detail = ref<any>({});
 
@@ -13,12 +14,14 @@ const dialogVisible = ref(false);
 const openPrintDialog = (row) => {
   dialogVisible.value = true;
   console.info("openPrintDialog", row);
+    getQualityTableData(row).then(
+
+    )
   //   在这里调接口
   detail.value = row;
 };
 
 const handleClose = (done: () => void) => {};
-
 defineExpose({
   openPrintDialog: openPrintDialog,
 });