Compare commits

..

3 Commits

Author SHA1 Message Date
huwei a2dc77d99c Merge remote-tracking branch 'origin/dev' into dev 2026-07-07 16:32:07 +08:00
huwei 7f73eae341 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	src/pages/Container/EnterpriseInfo/PersonnelInfo/List/index.js
2026-07-07 16:31:50 +08:00
huwei 412b8479c0 修护,人员重置密码、删除等提示错误 2026-07-07 16:30:26 +08:00
2 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,6 @@
import { declareRequest } from "@cqsjjb/jjb-dva-runtime"; import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
import { apiPost, apiPostDelete, safeAction } from "../enterpriseInfo/http"; import { apiPost, safeAction } from "../enterpriseInfo/http";
import { asId } from "../enterpriseInfo/idUtil";
export const staffInfoList = declareRequest( export const staffInfoList = declareRequest(
"staffInfoLoading", "staffInfoLoading",
@ -25,13 +26,10 @@ export const staffInfoEdit = declareRequest(
export const staffInfoRemove = declareRequest( export const staffInfoRemove = declareRequest(
"staffInfoLoading", "staffInfoLoading",
safeAction(async ({ id }) => apiPostDelete("/safetyEval/org-personnel/delete", id)), safeAction(async ({ id }) => apiPost("/safetyEval/org-personnel/delete", { data: asId(id) })),
); );
export const staffInfoResetPassword = declareRequest( export const staffInfoResetPassword = declareRequest(
"staffInfoLoading", "staffInfoLoading",
safeAction(async ({ id }) => { safeAction(async ({ id }) => apiPost("/safetyEval/org-personnel/reset-password", { data: asId(id) })),
const url = `/safetyEval/org-personnel/reset-password?id=${encodeURIComponent(id)}`;
return apiPost(url, {});
}),
); );

View File

@ -56,6 +56,13 @@ function QualificationCertPage(props) {
...router.query, ...router.query,
current: router.query.current || 1, current: router.query.current || 1,
pageSize: router.query.pageSize || 10, pageSize: router.query.pageSize || 10,
// 映射后端期望的字段名:前端 likeCertName → 后端 certName
certName: router.query.likeCertName || undefined,
// 映射日期筛选:前端 validStartDate/validEndDate → 后端 startTime/endTime (LocalDateTime 格式)
startTime: router.query.validStartDate ? `${router.query.validStartDate} 00:00:00` : undefined,
endTime: router.query.validEndDate ? `${router.query.validEndDate} 23:59:59` : undefined,
// 后端分页字段名为 size
size: router.query.pageSize || 10,
}; };
const res = await props.orgQualificationCertList(params); const res = await props.orgQualificationCertList(params);
if (res?.success !== false) { if (res?.success !== false) {