Explorar el Código

fix:查询区域检查计划关联的检查记录添加请求当前登陆人参数

sunqijun hace 3 semanas
padre
commit
70ece4b7c8
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      src/api/production-safety-system/index.ts

+ 5 - 1
src/api/production-safety-system/index.ts

@@ -996,6 +996,7 @@ export interface AreaCheckPlanQuery {
   /** 计划日期范围-结束,与 queryParam.endDate 一致 */
   endDate?: string;
   id?: string | number; 
+  userId?: string | number; // 兼容部门分页查询接口
 }
 
 /** 分页查询请求体(后端 queryParam 格式) */
@@ -1007,6 +1008,7 @@ interface AreaCheckPlanManagePageReq {
   startDate?: string;
   endDate?: string;
   id?: string | number;
+  userId?: string | number; // 兼容部门分页查询接口
 }
 
 interface AreaCheckPlanManagePageQuery {
@@ -1314,7 +1316,9 @@ export function exportRegionalInspectionPlanTaskDepartmentData (params: AreaChec
 
 /** 查询区域检查计划关联的检查记录分页(部门) */
 export function queryAreaCheckPlanDetailDeptPage(planId: number, query: Parameters<typeof queryAreaCheckPlanDetailPage>[1]) {
-  const body = buildPageQuery(query);
+  let body = buildPageQuery(query);
+  body.queryParam = body.queryParam || {};
+  body.queryParam.userId = query.queryParam?.userId; // 部门分页查询接口需要携带 userId 参数
   return http.request({
     url: `${DEPT_BASE}/queryAreaCheckPlanDetailPage`,
     method: 'post',