dev_1.0.1
tangjie 2026-07-09 10:58:27 +08:00
parent 7cba6bcaa8
commit 1a9a2b30f5
9 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ module.exports = {
javaGitBranch: "dev",
// 本地联调 safetyEval-servicecontext-path: /safetyEval默认端口 8095
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095
API_HOST: "http://192.168.0.152",
API_HOST: "https://gbs-gateway.qhdsafety.com",
},
production: {
// 应用后端分支名称,部署上线需要

View File

@ -6,7 +6,7 @@ import { asId } from "../../utils/enterpriseInfo/idUtil";
export const equipInfoList = declareRequest(
"equipInfoLoading",
"Get > /safetyEval/org-equipment/page",
"equipInfoList: [] | res.data || [] & equipInfoTotal: 0 | res.data?.total || 0",
"equipInfoList: [] | res.data || [] & equipInfoTotal: 0 | res.total || 0",
);
export const equipInfoGet = declareRequest(

View File

@ -4,7 +4,7 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
export const orgQualificationCertList = declareRequest(
"orgQualificationCertLoading",
"Get > /safetyEval/org-qualification/page",
"orgQualificationCertList: [] | res.data?.records || res.data || [] & orgQualificationCertTotal: 0 | res.data?.total || 0",
"orgQualificationCertList: [] | res.data?.records || res.data || [] & orgQualificationCertTotal: 0 | res.total || 0",
);
// 新增

View File

@ -4,7 +4,7 @@ import { Get } from "@cqsjjb/jjb-common-lib/http";
export const staffCertificateList = declareRequest(
"staffCertificateLoading",
"Get > /safetyEval/org-personnel-cert/page",
"staffCertificateList: [] | res.data || [] & staffCertificateTotal: 0 | res.data?.total || 0",
"staffCertificateList: [] | res.data || [] & staffCertificateTotal: 0 | res.total || 0",
);
export const staffCertificateInfo = declareRequest(

View File

@ -5,7 +5,7 @@ import { asId } from "../../utils/enterpriseInfo/idUtil";
export const staffInfoList = declareRequest(
"staffInfoLoading",
"Get > /safetyEval/org-personnel/page",
"staffInfoList: [] | res.data || [] & staffInfoTotal: 0 | res.data?.total || 0",
"staffInfoList: [] | res.data || [] & staffInfoTotal: 0 | res.total || 0",
);
export const staffInfoGet = declareRequest(

View File

@ -91,7 +91,7 @@ function FilingChangeListPage(props) {
onPageChange={handlePageChange}
onChangeCountClick={(record) => setHistoryRecord(record)}
extraActions={(record) =>
canStartFilingChange(record.filingStatusCode) ? (
[ 3,5].includes(record.filingStatusCode) ? (
<Button
type="link"
size="small"

View File

@ -22,7 +22,7 @@ function OrgEquipmentSelectModalInner(props) {
});
if (res?.success !== false) {
setDataSource(res?.data || []);
setPagination((prev) => ({ ...prev, current: page, pageSize, total: res?.totalCount || 0 }));
setPagination((prev) => ({ ...prev, current: page, pageSize, total: res?.total || 0 }));
}
} catch (err) {
console.warn("[OrgEquipmentSelectModal] list failed:", err);

View File

@ -24,7 +24,7 @@ function OrgPersonnelSelectModalInner(props) {
});
if (res?.success !== false) {
setDataSource(res?.data || []);
setPagination((prev) => ({ ...prev, current: page, pageSize, total: res?.totalCount || 0 }));
setPagination((prev) => ({ ...prev, current: page, pageSize, total: res?.total || 0 }));
}
} catch (err) {
console.warn("[OrgPersonnelSelectModal] list failed:", err);

View File

@ -38,7 +38,7 @@ function OrgAccountPage(props) {
const params = searchForm.getFieldsValue();
const res = await safeListRequest(props.orgAccountList)(params);
setDataSource(res?.data || []);
setTotal(res?.total || 0);
setTotal(res?.totalCount || 0);
} finally {
setLoading(false);
}