Refactor venue booth functions for outdoor fairs

- Renamed `getVenueBoothList` to `getOutdoorFairBoothMap` for clarity.
- Updated the endpoint to fetch booth maps for outdoor fairs.
- Renamed `saveVenueBoothList` to `saveOutdoorFairBoothMap` to reflect its purpose.
- Adjusted the endpoint for saving booth maps for outdoor fairs.
- Removed the redundant `getOutdoorFairBoothMap` function as it was previously defined.
This commit is contained in:
2026-06-25 16:07:43 +08:00
parent 50372da241
commit 9012b0c4a7
9 changed files with 1804 additions and 768 deletions

View File

@@ -1,8 +1,8 @@
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { history, useAccess, useModel } from '@umijs/max';
import { useAccess, useModel } from '@umijs/max';
import { Button, message, Modal } from 'antd';
import { ActionType, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
import { AppstoreOutlined, DeleteOutlined, FormOutlined, PlusOutlined } from '@ant-design/icons';
import { DeleteOutlined, FormOutlined, PlusOutlined } from '@ant-design/icons';
import {
addVenueInfo,
addVenueInfoDictOption,
@@ -153,19 +153,9 @@ const VenueInfoList: React.FC = () => {
{
title: '操作',
valueType: 'option',
width: 220,
width: 140,
fixed: 'right',
render: (_, record) => [
<Button
key="boothMap"
type="link"
size="small"
icon={<AppstoreOutlined />}
hidden={!access.hasPerms('cms:venueInfo:query')}
onClick={() => history.push(`/jobfair/venue-info/detail?id=${record.id}`)}
>
</Button>,
<Button
key="edit"
type="link"