refactor(map): branchOffice XiaoFang对接接口
parent
bf11b180f3
commit
66d5d27fb8
|
|
@ -112,7 +112,7 @@ export const getSensorDeviceFireSituation = declareRequest(
|
|||
"getSensorDeviceFireSituationLoading",
|
||||
"Post > @/iotalarm/sensorDevice/fireSituation",
|
||||
);
|
||||
export const getFireBrigadeList = declareRequest(
|
||||
"getFireBrigadeListLoading",
|
||||
"Post > @/fireAlarm/fireBrigade/list",
|
||||
export const getFireBrigadeMemberScreenList = declareRequest(
|
||||
"getFireBrigadeMemberScreenListLoading",
|
||||
"Post > @/fireAlarm/fireBrigade/member/screen/list",
|
||||
);
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ function VolunteerFireTeamPanel(props) {
|
|||
|
||||
useEffect(() => {
|
||||
const loadRecords = async () => {
|
||||
const { data = [] } = await props.getFireBrigadeList({
|
||||
const { data = [] } = await props.getFireBrigadeMemberScreenList({
|
||||
portArea,
|
||||
corpId: currentBranchOffice,
|
||||
corpinfoId: currentBranchOffice,
|
||||
pageIndex: 1,
|
||||
pageSize: 9999,
|
||||
});
|
||||
|
|
@ -33,21 +33,23 @@ function VolunteerFireTeamPanel(props) {
|
|||
<div className="branch-office-volunteer-fire-team__content">
|
||||
<div className="branch-office-volunteer-fire-team__table">
|
||||
<div className="branch-office-volunteer-fire-team__row">
|
||||
<div>消防队名称</div>
|
||||
<div>姓名</div>
|
||||
<div>所属部门</div>
|
||||
<div>年龄</div>
|
||||
<div>手机号</div>
|
||||
</div>
|
||||
<div className="branch-office-volunteer-fire-team__body">
|
||||
<Spin spinning={props.biStatistics.getFireBrigadeListLoading}>
|
||||
<Spin spinning={props.biStatistics.getFireBrigadeMemberScreenListLoading}>
|
||||
<SeamlessScroll list={records} step={0.5}>
|
||||
{records.map((item, index) => (
|
||||
<div
|
||||
className="branch-office-volunteer-fire-team__row"
|
||||
key={index}
|
||||
>
|
||||
<div>{item.name}</div>
|
||||
<div>{item.org}</div>
|
||||
<div>{item.dutyPhone}</div>
|
||||
<div>{item.brigadeName}</div>
|
||||
<div>{item.userName}</div>
|
||||
<div>{item.age}</div>
|
||||
<div>{item.phone}</div>
|
||||
</div>
|
||||
))}
|
||||
</SeamlessScroll>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
.branch-office-volunteer-fire-team__row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
margin-top: 5px;
|
||||
background-color: rgba(17, 51, 112, 0.8);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue