master
853931625@qq.com 2026-05-28 17:48:58 +08:00
parent 68a8beb85a
commit 823701f97c
15 changed files with 21 additions and 16 deletions

View File

@ -46,7 +46,7 @@ module.exports = {
// 开发服务 // 开发服务
server: { server: {
// 监听端口号 // 监听端口号
port: "8033", port: "8053",
// 服务地址 // 服务地址
host: "127.0.0.1", host: "127.0.0.1",
// 是否自动打开浏览器 // 是否自动打开浏览器

View File

@ -33,7 +33,7 @@
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"zy-react-library": "^1.2.39" "zy-react-library": "^1.3.14"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^5.4.1", "@antfu/eslint-config": "^5.4.1",

View File

@ -4,6 +4,10 @@ export const emergencyAddressBookList = declareRequest(
"emergencyAddressBookLoading", "emergencyAddressBookLoading",
"Post > @/emergencyRescue/emergencyContactGroup/list", "Post > @/emergencyRescue/emergencyContactGroup/list",
); );
export const emergencyAddressBookListTree = declareRequest(
"emergencyAddressBookLoading",
"Post > @/emergencyRescue/emergencyContactGroup/listTree",
);
export const emergencyAddressBookInfo = declareRequest( export const emergencyAddressBookInfo = declareRequest(
"emergencyAddressBookLoading", "emergencyAddressBookLoading",
"Get > /emergencyRescue/emergencyContactGroup/{id}", "Get > /emergencyRescue/emergencyContactGroup/{id}",

View File

@ -31,10 +31,10 @@ function List(props) {
const query = useGetUrlQuery(); const query = useGetUrlQuery();
const { tableProps, getData } = useTable(props["emergencyAddressBookList"], { const { tableProps, getData } = useTable(props["emergencyAddressBookListTree"], {
form, form,
params: { corpId: query.corpinfoId }, params: { corpId: query.corpinfoId },
usePagination: false, // usePagination: false,
}); });
const onDelete = (record) => { const onDelete = (record) => {
@ -61,6 +61,7 @@ function List(props) {
onFinish={getData} onFinish={getData}
/> />
<Table <Table
defaultExpandAllRows
toolBarRender={() => ( toolBarRender={() => (
<Space> <Space>
{(!props.isRecord && props.permission("qyd-enterprise-emergency-address-book-add")) && ( {(!props.isRecord && props.permission("qyd-enterprise-emergency-address-book-add")) && (

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["expertEmergencyRescueTeamInfo"]({ id: query.id || query.id }); const { data } = await props["expertEmergencyRescueTeamInfo"]({ id: query.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["enterpriseEmergencyOrganizationInfo"]({ id: props.id || query.id }); const { data } = await props["enterpriseEmergencyOrganizationInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["communicationGuaranteeOrganizationInfo"]({ id: props.id || query.id }); const { data } = await props["communicationGuaranteeOrganizationInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["medicalGuaranteeOrganizationInfo"]({ id: props.id || query.id }); const { data } = await props["medicalGuaranteeOrganizationInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["technicalSupportGuaranteeOrganizationInfo"]({ id: props.id || query.id }); const { data } = await props["technicalSupportGuaranteeOrganizationInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["transportGuaranteeOrganizationInfo"]({ id: props.id || query.id }); const { data } = await props["transportGuaranteeOrganizationInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -85,8 +85,8 @@ function Cesium(props) {
} }
const MarkModal = (props) => { const MarkModal = (props) => {
const info = props.info; const info = props.info || {};
const id = props.info.id; const id = info.id;
const type = props.type; const type = props.type;
return ( return (

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["closedCardPortInfo"]({ id: props.id || query.id }); const { data } = await props["closedCardPortInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["drainageWellInfo"]({ id: props.id || query.id }); const { data } = await props["drainageWellInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["emergencyShelterInfo"]({ id: props.id || query.id }); const { data } = await props["emergencyShelterInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {

View File

@ -15,7 +15,7 @@ function View(props) {
return; return;
const { data } = await props["materialEquipmentInfo"]({ id: props.id || query.id }); const { data } = await props["materialEquipmentInfo"]({ id: props.id || query.id });
setInfo(data); setInfo(data || {});
}; };
useEffect(() => { useEffect(() => {