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