parent
a7307c5bc9
commit
1f29e6e267
|
|
@ -34,6 +34,8 @@
|
|||
`/emergencyRescue/container/enterprise/emergencyResource/materialEquipment/list`
|
||||
- 应急资源管理/应急避难场所
|
||||
`/emergencyRescue/container/enterprise/emergencyResource/emergencyShelter/list`
|
||||
- 应急资源管理/消防物资管理
|
||||
`/emergencyRescue/container/enterprise/emergencyResource/firefightingEquipment/list`
|
||||
- 应急资源管理/排水井
|
||||
`/emergencyRescue/container/enterprise/emergencyResource/drainageWell/list`
|
||||
- 应急资源管理/封闭卡口
|
||||
|
|
@ -60,3 +62,5 @@
|
|||
`/emergencyRescue/container/enterprise/emergencyOrganization/emergencyManagementOrganization/enterpriseEmergencyPersonnel/list`
|
||||
- 应急组织管理/应急救援队伍管理
|
||||
`/emergencyRescue/container/enterprise/emergencyOrganization/emergencyRescueTeam/list`
|
||||
- 预案与演练/企业预案管理
|
||||
`/emergencyRescue/container/enterprise/planAndDrill/enterprisePlan/list`
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
|
||||
|
||||
export const firefightingEquipmentList = declareRequest(
|
||||
"firefightingEquipmentLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
);
|
||||
export const fireAreaListAll = declareRequest(
|
||||
"firefightingEquipmentLoading",
|
||||
"Get > /fireCheck/fireRegion/listAll",
|
||||
);
|
||||
|
|
@ -2,27 +2,27 @@ import { declareRequest } from "@cqsjjb/jjb-dva-runtime";
|
|||
|
||||
export const emergencyResourceStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
"Get > /emergencyRescue/shareStatistics/listEmergencyResourcesGfdCount",
|
||||
);
|
||||
export const emergencyExpertTeamStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
"Post > @/emergencyRescue/shareStatistics/listRescueTeamCount",
|
||||
);
|
||||
export const emergencyAddressBookStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
"Post > @/emergencyRescue/shareStatistics/listEmergencyContactGfdCount",
|
||||
);
|
||||
export const professionalGuaranteeOrganizationStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
"Post > @/emergencyRescue/shareStatistics/listProfessionalSecurityAgencyGfdCount",
|
||||
);
|
||||
export const emergencyOrganizationStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
"Post > @/emergencyRescue/shareStatistics/listEnterpriseEmergencyAgencyGfdCount",
|
||||
);
|
||||
export const emergencyRescueTeamStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
"Post > @/emergencyRescue",
|
||||
"Post > @/emergencyRescue/shareStatistics/listEmergencyRescueTeamManagementGfdCount",
|
||||
);
|
||||
export const enterprisePlanStatisticsList = declareRequest(
|
||||
"statisticsLoading",
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ export const NS_STATISTICS = defineNamespace("statistics");
|
|||
export const NS_EMERGENCY_EQUIPMENT = defineNamespace("emergencyEquipment");
|
||||
export const NS_MATERIAL_EQUIPMENT = defineNamespace("materialEquipment");
|
||||
export const NS_EMERGENCY_SHELTER = defineNamespace("emergencyShelter");
|
||||
export const NS_FIREFIGHTING_EQUIPMENT = defineNamespace("firefightingEquipment");
|
||||
export const NS_DRAINAGE_WELL = defineNamespace("drainageWell");
|
||||
export const NS_CLOSED_CARD_PORT = defineNamespace("closedCardPort");
|
||||
export const NS_EXPERT_EMERGENCY_RESCUE_TEAM = defineNamespace("expertEmergencyRescueTeam");
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import Page from "zy-react-library/components/Page";
|
|||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EMERGENCY_ADDRESS_BOOK } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -27,8 +28,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["emergencyAddressBookList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
usePagination: false,
|
||||
});
|
||||
|
||||
|
|
@ -47,7 +53,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeGroupName", label: "通讯录名称" },
|
||||
|
|
@ -58,16 +64,18 @@ function List(props) {
|
|||
<Table
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setAddModalType("add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setAddModalType("add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -87,38 +95,44 @@ function List(props) {
|
|||
>
|
||||
成员管理
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setAddModalType("update");
|
||||
setParentId(record.parentId);
|
||||
setParentName(record.parentName);
|
||||
setCurrentId(record.id);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setAddModalType("addChild");
|
||||
setParentId(record.id);
|
||||
setParentName(record.groupName);
|
||||
}}
|
||||
>
|
||||
添加下级通讯组
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setAddModalType("update");
|
||||
setParentId(record.parentId);
|
||||
setParentName(record.parentName);
|
||||
setCurrentId(record.id);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setAddModalType("addChild");
|
||||
setParentId(record.id);
|
||||
setParentName(record.groupName);
|
||||
}}
|
||||
>
|
||||
添加下级通讯组
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -79,24 +79,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -121,24 +125,28 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setCurrentId(record.id);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
setCurrentId(record.id);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EXPERT_EMERGENCY_RESCUE_EXPERT } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["expertEmergencyRescueExpertList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeExpertName", label: "专家姓名" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -109,23 +119,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import Page from "zy-react-library/components/Page";
|
|||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EXPERT_EMERGENCY_RESCUE_EXPERT_GROUP } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -15,8 +16,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["expertEmergencyRescueExpertGroupList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -52,7 +58,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeGroupName", label: "专家组名称" },
|
||||
|
|
@ -71,24 +77,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -116,23 +126,27 @@ function List(props) {
|
|||
>
|
||||
成员管理
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -73,24 +73,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
setAddModalVisible(true);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -102,6 +106,7 @@ function List(props) {
|
|||
{
|
||||
title: "操作",
|
||||
width: 100,
|
||||
hidden: props.isRecord,
|
||||
fixed: "right",
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
|
|
|
|||
|
|
@ -72,24 +72,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?teamId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?teamId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -115,23 +119,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&teamId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&teamId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EXPERT_EMERGENCY_RESCUE_TEAM } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["expertEmergencyRescueTeamList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeTeamName", label: "队伍名称" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -119,23 +129,27 @@ function List(props) {
|
|||
>
|
||||
应急救援人列表
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import Page from "zy-react-library/components/Page";
|
|||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_ENTERPRISE_EMERGENCY_ORGANIZATION } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -15,8 +16,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["enterpriseEmergencyOrganizationList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -52,7 +58,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeAgencyName", label: "机构名称" },
|
||||
|
|
@ -71,24 +77,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -120,23 +130,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_ENTERPRISE_EMERGENCY_PERSONNEL } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["enterpriseEmergencyPersonnelList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "userName", label: "姓名" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -110,23 +120,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EMERGENCY_RESCUE_TEAM } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["emergencyRescueTeamList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeTeamName", label: "队伍名称" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -110,23 +120,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_COMMUNICATION_GUARANTEE_ORGANIZATION } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["communicationGuaranteeOrganizationList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeAgencyName", label: "机构名称" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -109,23 +119,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_MEDICAL_GUARANTEE_ORGANIZATION } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -15,8 +16,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["medicalGuaranteeOrganizationList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -52,7 +58,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeAgencyName", label: "机构名称" },
|
||||
|
|
@ -70,24 +76,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -117,23 +127,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_TECHNICAL_SUPPORT_GUARANTEE_ORGANIZATION } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -15,8 +16,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["technicalSupportGuaranteeOrganizationList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -52,7 +58,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeAgencyName", label: "机构名称" },
|
||||
|
|
@ -70,24 +76,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -115,23 +125,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_TRANSPORT_GUARANTEE_ORGANIZATION } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["transportGuaranteeOrganizationList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeAgencyName", label: "机构名称" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -109,23 +119,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_CLOSED_CARD_PORT } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["closedCardPortList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeCheckpointName", label: "卡口名称" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -108,23 +118,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import Page from "zy-react-library/components/Page";
|
|||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_DRAINAGE_WELL } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -15,8 +16,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["drainageWellList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -52,7 +58,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeWellName", label: "排水井名称" },
|
||||
|
|
@ -71,24 +77,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -111,23 +121,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import Page from "zy-react-library/components/Page";
|
|||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EMERGENCY_EQUIPMENT } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -15,8 +16,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["emergencyEquipmentList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -52,7 +58,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeEquipmentName", label: "装备名称" },
|
||||
|
|
@ -71,24 +77,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -110,23 +120,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_EMERGENCY_SHELTER } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["emergencyShelterList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likePlaceName", label: "避难所名称" },
|
||||
|
|
@ -69,24 +75,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -108,23 +118,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,70 @@
|
|||
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||
import { useEffect, useState } from "react";
|
||||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_FIREFIGHTING_EQUIPMENT } from "~/enumerate/namespace";
|
||||
|
||||
function List(props) {
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const [fireArea, setFireArea] = useState([]);
|
||||
|
||||
const { tableProps, getData } = useTable(props["firefightingEquipmentList"], {
|
||||
form,
|
||||
});
|
||||
|
||||
const getFireArea = async () => {
|
||||
const { data } = await props["fireAreaListAll"]();
|
||||
setFireArea(data);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
getFireArea();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "todo", label: "消防器材类型", render: (<DictionarySelect dictValue="fire_device_type" />) },
|
||||
{
|
||||
name: "todo",
|
||||
label: "消防区域",
|
||||
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||
items: fireArea,
|
||||
itemsField: {
|
||||
labelKey: "fireRegionName",
|
||||
valueKey: "id",
|
||||
},
|
||||
},
|
||||
{ name: "todo", label: "消防点位" },
|
||||
{ name: "todo", label: "器材编号" },
|
||||
]}
|
||||
form={form}
|
||||
onFinish={getData}
|
||||
/>
|
||||
<Table
|
||||
columns={[
|
||||
{ title: "器材类型", dataIndex: "todo" },
|
||||
{ title: "器材编号", dataIndex: "todo" },
|
||||
{ title: "消防区域名称", dataIndex: "todo" },
|
||||
{ title: "消防点位名称", dataIndex: "todo" },
|
||||
{ title: "消防区域编码", dataIndex: "todo" },
|
||||
{ title: "消防点位编码", dataIndex: "todo" },
|
||||
{ title: "有效期开始时间", dataIndex: "todo" },
|
||||
{ title: "有效期结束时间", dataIndex: "todo" },
|
||||
{ title: "存放地点", dataIndex: "todo" },
|
||||
{ title: "负责部门", dataIndex: "todo" },
|
||||
{ title: "负责人", dataIndex: "todo" },
|
||||
]}
|
||||
{...tableProps}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
export default Connect([NS_FIREFIGHTING_EQUIPMENT], true)(List);
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function FirefightingEquipment(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default FirefightingEquipment;
|
||||
|
|
@ -73,24 +73,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -117,23 +121,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import DeleteIcon from "zy-react-library/components/Icon/DeleteIcon";
|
|||
import Page from "zy-react-library/components/Page";
|
||||
import Search from "zy-react-library/components/Search";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import useGetUrlQuery from "zy-react-library/hooks/useGetUrlQuery";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_MATERIAL_EQUIPMENT } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -14,8 +15,13 @@ function List(props) {
|
|||
|
||||
const [form] = Search.useForm();
|
||||
|
||||
const query = useGetUrlQuery();
|
||||
|
||||
const { tableProps, getData } = useTable(props["materialEquipmentList"], {
|
||||
form,
|
||||
params: {
|
||||
corpinfoId: query.corpinfoId,
|
||||
},
|
||||
});
|
||||
|
||||
const onDelete = (record) => {
|
||||
|
|
@ -51,7 +57,7 @@ function List(props) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Page isShowAllAction={false}>
|
||||
<Page isShowAllAction={props.headerTitle || false} headerTitle={props.headerTitle}>
|
||||
<Search
|
||||
options={[
|
||||
{ name: "likeWarehouseName", label: "资源库名称" },
|
||||
|
|
@ -71,24 +77,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push("./add");
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -136,23 +146,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -73,24 +73,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -118,23 +122,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -73,24 +73,28 @@ function List(props) {
|
|||
}}
|
||||
toolBarRender={() => (
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
icon={(<AddIcon />)}
|
||||
onClick={() => {
|
||||
props.history.push(`./add?warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
新增
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="primary"
|
||||
danger
|
||||
ghost
|
||||
icon={(<DeleteIcon />)}
|
||||
onClick={onDeleteBatch}
|
||||
>
|
||||
批量删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
)}
|
||||
columns={[
|
||||
|
|
@ -118,23 +122,27 @@ function List(props) {
|
|||
>
|
||||
查看
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./add?id=${record.id}&warehouseId=${query.id}`);
|
||||
}}
|
||||
>
|
||||
编辑
|
||||
</Button>
|
||||
)}
|
||||
{!props.isRecord && (
|
||||
<Button
|
||||
type="link"
|
||||
danger
|
||||
onClick={() => {
|
||||
onDelete(record);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</Button>
|
||||
)}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
import Page from "zy-react-library/components/Page";
|
||||
|
||||
function List(props) {
|
||||
return (
|
||||
<Page isShowAllAction={false}></Page>
|
||||
);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EnterprisePlan(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EnterprisePlan;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function PlanAndDrill(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default PlanAndDrill;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyAddressBook/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="应急救援人" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyAddressBook/Member/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function Member(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default Member;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EmergencyAddressBook(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EmergencyAddressBook;
|
||||
|
|
@ -25,13 +25,22 @@ function List(props) {
|
|||
<Table
|
||||
columns={[
|
||||
{ title: "公司名称", dataIndex: "corpName" },
|
||||
{ title: "专家组数量", dataIndex: "todo" },
|
||||
{ title: "应急救援总人数", dataIndex: "todo" },
|
||||
{ title: "专家组数量", dataIndex: "emergencyContactGroupCount" },
|
||||
{ title: "应急救援总人数", dataIndex: "emergencyContactPersonCount" },
|
||||
{
|
||||
title: "操作",
|
||||
width: 150,
|
||||
fixed: "right",
|
||||
render: (_, record) => <Button type="link">应急救援人列表</Button>,
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./emergencyAddressBook/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
应急救援人列表
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
]}
|
||||
{...tableProps}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueExpert/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="应急救援专家" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueExpert/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function ExpertEmergencyRescueExpert(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default ExpertEmergencyRescueExpert;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueExpertGroup/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="应急救援专家组" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueExpertGroup/Member/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function Member(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default Member;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueExpertGroup/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function emergencyRescueExpertGroup(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default emergencyRescueExpertGroup;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueTeam/EmergencyRescuePersonnel/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueTeam/EmergencyRescuePersonnel/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EmergencyRescuePersonnel(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EmergencyRescuePersonnel;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueTeam/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="救援队伍" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueTeam/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EmergencyRescueTeam(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EmergencyRescueTeam;
|
||||
|
|
@ -27,18 +27,45 @@ function List(props) {
|
|||
{ title: "公司名称", dataIndex: "corpName" },
|
||||
{
|
||||
title: "救援队伍数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "emergencyRescueTeamCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./expertEmergencyRescueTeam/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.emergencyRescueTeamCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "应急救援专家数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "emergencyRescueExpertCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./expertEmergencyRescueExpert/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.emergencyRescueExpertCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "应急救援专家组数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "emergencyRescueExpertGroupCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./expertEmergencyRescueExpertGroup/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.emergencyRescueExpertGroupCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
]}
|
||||
{...tableProps}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyManagementOrganization/EnterpriseEmergencyOrganization/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="应急机构" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyManagementOrganization/EnterpriseEmergencyOrganization/Personnel/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function Personnel(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default Personnel;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyManagementOrganization/EnterpriseEmergencyOrganization/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EnterpriseEmergencyOrganization(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EnterpriseEmergencyOrganization;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyManagementOrganization/EnterpriseEmergencyPersonnel/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="应急救援人" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyManagementOrganization/EnterpriseEmergencyPersonnel/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EnterpriseEmergencyPersonnel(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EnterpriseEmergencyPersonnel;
|
||||
|
|
@ -27,13 +27,31 @@ function List(props) {
|
|||
{ title: "公司名称", dataIndex: "corpName" },
|
||||
{
|
||||
title: "应急机构数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "enterpriseEmergencyAgencyCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./enterpriseEmergencyOrganization/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.enterpriseEmergencyAgencyCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "应急救援人数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "enterpriseEmergencyPersonnelCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./enterpriseEmergencyPersonnel/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.enterpriseEmergencyPersonnelCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
]}
|
||||
{...tableProps}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyRescueTeam/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="救援队伍" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyRescueTeam/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EmergencyRescueTeam(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EmergencyRescueTeam;
|
||||
|
|
@ -27,8 +27,17 @@ function List(props) {
|
|||
{ title: "公司名称", dataIndex: "corpName" },
|
||||
{
|
||||
title: "救援队伍数量",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "emergencyRescueTeamManagementCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./emergencyRescueTeam/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.emergencyRescueTeamManagementCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
]}
|
||||
{...tableProps}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/CommunicationGuaranteeOrganization/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="通讯保障机构" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/CommunicationGuaranteeOrganization/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function CommunicationGuaranteeOrganization(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default CommunicationGuaranteeOrganization;
|
||||
|
|
@ -27,23 +27,59 @@ function List(props) {
|
|||
{ title: "公司名称", dataIndex: "corpName" },
|
||||
{
|
||||
title: "运输保障机构",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "transportSecurityAgencyCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./transportGuaranteeOrganization/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.transportSecurityAgencyCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "医疗保障机构",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "medicalSecurityAgencyCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./medicalGuaranteeOrganization/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.medicalSecurityAgencyCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "通讯保障机构",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "communicationSecurityAgencyCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./communicationGuaranteeOrganization/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.communicationSecurityAgencyCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "技术支持机构",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "technicalSupportAgencyCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./technicalSupportGuaranteeOrganization/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.technicalSupportAgencyCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
]}
|
||||
{...tableProps}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/MedicalGuaranteeOrganization/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="医疗保障机构" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/MedicalGuaranteeOrganization/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function MedicalGuaranteeOrganization(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default MedicalGuaranteeOrganization;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/TechnicalSupportGuaranteeOrganization/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="技术支持机构" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/TechnicalSupportGuaranteeOrganization/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function TechnicalSupportGuaranteeOrganization(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default TechnicalSupportGuaranteeOrganization;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyOrganization/ProfessionalGuaranteeOrganization/TransportGuaranteeOrganization/List";
|
||||
|
||||
function List(props) {
|
||||
return (<ListPage isRecord headerTitle="运输保障机构" {...props} />);
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyOrganization/EmergencyExpertTeam/ExpertEmergencyRescueExpert/View";
|
||||
|
||||
function View(props) {
|
||||
return (<ViewPage {...props} />);
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function TransportGuaranteeOrganization(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default TransportGuaranteeOrganization;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/ClosedCardPort/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord headerTitle="封闭卡口" {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyResource/ClosedCardPort/View";
|
||||
|
||||
function View(props) {
|
||||
return <ViewPage {...props} />;
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function ClosedCardPort(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default ClosedCardPort;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/DrainageWell/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord headerTitle="排水井" {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyResource/DrainageWell/View";
|
||||
|
||||
function View(props) {
|
||||
return <ViewPage {...props} />;
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function DrainageWell(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default DrainageWell;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/EmergencyEquipment/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord headerTitle="应急装备" {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyResource/EmergencyEquipment/View";
|
||||
|
||||
function View(props) {
|
||||
return <ViewPage {...props} />;
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EmergencyEquipment(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EmergencyEquipment;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/EmergencyShelter/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord headerTitle="应急避难场所" {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyResource/EmergencyShelter/View";
|
||||
|
||||
function View(props) {
|
||||
return <ViewPage {...props} />;
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function EmergencyShelter(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default EmergencyShelter;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/FirefightingEquipment/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage headerTitle="消防物资" {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function FirefightingEquipment(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default FirefightingEquipment;
|
||||
|
|
@ -27,33 +27,87 @@ function List(props) {
|
|||
{ title: "公司名称", dataIndex: "corpName" },
|
||||
{
|
||||
title: "应急装备数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "emergencyEquipmentCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./emergencyEquipment/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.emergencyEquipmentCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "物资装备库数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "materialEquipmentCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./materialEquipment/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.materialEquipmentCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "应急避难场所数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "placeInfoCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./emergencyShelter/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.placeInfoCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "消防物资数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "fireFightingCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./firefightingEquipment/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.fireFightingCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "排水井数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "drainageWellCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./drainageWell/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.drainageWellCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: "封闭卡口数",
|
||||
dataIndex: "todo",
|
||||
render: (_, record) => <Button type="link">{record.todo}</Button>,
|
||||
dataIndex: "closedCheckpointInfoCount",
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
props.history.push(`./closedCardPort/list?corpinfoId=${record.corpinfoId}`);
|
||||
}}
|
||||
>
|
||||
{record.closedCheckpointInfoCount}
|
||||
</Button>
|
||||
),
|
||||
},
|
||||
]}
|
||||
{...tableProps}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/MaterialEquipment/FacilitiesEquipment/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyResource/MaterialEquipment/FacilitiesEquipment/View";
|
||||
|
||||
function View(props) {
|
||||
return <ViewPage {...props} />;
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function FacilitiesEquipment(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default FacilitiesEquipment;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/MaterialEquipment/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord headerTitle="物资装备库" {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/MaterialEquipment/Material/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ViewPage from "~/pages/Container/Enterprise/EmergencyResource/MaterialEquipment/Material/View";
|
||||
|
||||
function View(props) {
|
||||
return <ViewPage {...props} />;
|
||||
}
|
||||
|
||||
export default View;
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
function Material(props) {
|
||||
return props.children;
|
||||
}
|
||||
|
||||
export default Material;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
import ListPage from "~/pages/Container/Enterprise/EmergencyResource/MaterialEquipment/RescueEquipment/List";
|
||||
|
||||
function List(props) {
|
||||
return <ListPage isRecord {...props} />;
|
||||
}
|
||||
|
||||
export default List;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue