2026-06-23 18:07:30 +08:00
|
|
|
import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
|
2026-07-07 17:13:33 +08:00
|
|
|
import { apiPost, safeAction } from "../../utils/enterpriseInfo/http";
|
|
|
|
|
import { asId } from "../../utils/enterpriseInfo/idUtil";
|
2026-06-23 18:07:30 +08:00
|
|
|
|
2026-07-07 09:07:19 +08:00
|
|
|
export const staffInfoList = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
|
|
|
|
"Get > /safetyEval/org-personnel/page",
|
2026-07-09 10:58:27 +08:00
|
|
|
"staffInfoList: [] | res.data || [] & staffInfoTotal: 0 | res.total || 0",
|
2026-07-07 09:07:19 +08:00
|
|
|
);
|
2026-06-23 18:07:30 +08:00
|
|
|
|
2026-07-07 09:07:19 +08:00
|
|
|
export const staffInfoGet = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
|
|
|
|
"Get > /safetyEval/org-personnel/get",
|
|
|
|
|
"staffInfoDetail: {} | res.data || {}",
|
|
|
|
|
);
|
2026-06-23 18:07:30 +08:00
|
|
|
|
2026-07-07 09:07:19 +08:00
|
|
|
export const staffInfoAdd = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
|
|
|
|
"Post > @/safetyEval/org-personnel/save",
|
|
|
|
|
);
|
2026-06-23 18:07:30 +08:00
|
|
|
|
2026-07-07 09:07:19 +08:00
|
|
|
export const staffInfoEdit = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
|
|
|
|
"Post > @/safetyEval/org-personnel/modify",
|
|
|
|
|
);
|
2026-06-23 18:07:30 +08:00
|
|
|
|
2026-07-07 09:07:19 +08:00
|
|
|
export const staffInfoRemove = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
2026-07-07 16:30:26 +08:00
|
|
|
safeAction(async ({ id }) => apiPost("/safetyEval/org-personnel/delete", { data: asId(id) })),
|
2026-07-07 09:07:19 +08:00
|
|
|
);
|
2026-06-23 18:07:30 +08:00
|
|
|
|
2026-07-07 09:07:19 +08:00
|
|
|
export const staffInfoResetPassword = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
2026-07-07 16:30:26 +08:00
|
|
|
safeAction(async ({ id }) => apiPost("/safetyEval/org-personnel/reset-password", { data: asId(id) })),
|
2026-07-14 11:57:53 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
export const queryBasicDisciplineMajor = declareRequest(
|
|
|
|
|
"staffInfoLoading",
|
|
|
|
|
"Get > /safetyEval/basic-discipline-major",
|
|
|
|
|
"basicDisciplineMajorList: [] | res.data || []",
|
2026-07-07 09:07:19 +08:00
|
|
|
);
|