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", javaGitBranch: "dev",
// 本地联调 safetyEval-servicecontext-path: /safetyEval默认端口 8095 // 本地联调 safetyEval-servicecontext-path: /safetyEval默认端口 8095
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x: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: { production: {
// 应用后端分支名称,部署上线需要 // 应用后端分支名称,部署上线需要

View File

@ -6,7 +6,7 @@ import { asId } from "../../utils/enterpriseInfo/idUtil";
export const equipInfoList = declareRequest( export const equipInfoList = declareRequest(
"equipInfoLoading", "equipInfoLoading",
"Get > /safetyEval/org-equipment/page", "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( export const equipInfoGet = declareRequest(

View File

@ -4,7 +4,7 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
export const orgQualificationCertList = declareRequest( export const orgQualificationCertList = declareRequest(
"orgQualificationCertLoading", "orgQualificationCertLoading",
"Get > /safetyEval/org-qualification/page", "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( export const staffCertificateList = declareRequest(
"staffCertificateLoading", "staffCertificateLoading",
"Get > /safetyEval/org-personnel-cert/page", "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( export const staffCertificateInfo = declareRequest(

View File

@ -5,7 +5,7 @@ import { asId } from "../../utils/enterpriseInfo/idUtil";
export const staffInfoList = declareRequest( export const staffInfoList = declareRequest(
"staffInfoLoading", "staffInfoLoading",
"Get > /safetyEval/org-personnel/page", "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( export const staffInfoGet = declareRequest(

View File

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

View File

@ -22,7 +22,7 @@ function OrgEquipmentSelectModalInner(props) {
}); });
if (res?.success !== false) { if (res?.success !== false) {
setDataSource(res?.data || []); 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) { } catch (err) {
console.warn("[OrgEquipmentSelectModal] list failed:", err); console.warn("[OrgEquipmentSelectModal] list failed:", err);

View File

@ -24,7 +24,7 @@ function OrgPersonnelSelectModalInner(props) {
}); });
if (res?.success !== false) { if (res?.success !== false) {
setDataSource(res?.data || []); 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) { } catch (err) {
console.warn("[OrgPersonnelSelectModal] list failed:", err); console.warn("[OrgPersonnelSelectModal] list failed:", err);

View File

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