diff --git a/src/components/CategorySelector/CategorySelector.tsx b/src/components/CategorySelector/CategorySelector.tsx index 3c7764b..50290be 100644 --- a/src/components/CategorySelector/CategorySelector.tsx +++ b/src/components/CategorySelector/CategorySelector.tsx @@ -162,7 +162,7 @@ const CategorySelector: React.FC = ({ { ? intl.formatMessage({ id: 'download.edit.title' }) : intl.formatMessage({ id: 'download.add.title' }) } - visible={modalVisible} + open={modalVisible} onCancel={handleModalCancel} width={600} maskClosable={false} diff --git a/src/pages/friendLinkManage/friendLinkCategory.tsx b/src/pages/friendLinkManage/friendLinkCategory.tsx index f7dce64..7dce139 100644 --- a/src/pages/friendLinkManage/friendLinkCategory.tsx +++ b/src/pages/friendLinkManage/friendLinkCategory.tsx @@ -240,7 +240,7 @@ const FriendLinkCategory: React.FC = () => { ? intl.formatMessage({ id: 'friendLink.category.form.title.edit' }) : intl.formatMessage({ id: 'friendLink.category.form.title.add' }) } - visible={modalVisible} + open={modalVisible} onOk={handleModalSubmit} onCancel={() => setModalVisible(false)} destroyOnClose diff --git a/src/pages/friendLinkManage/friendLinkManage.tsx b/src/pages/friendLinkManage/friendLinkManage.tsx index 74620d7..402c4d7 100644 --- a/src/pages/friendLinkManage/friendLinkManage.tsx +++ b/src/pages/friendLinkManage/friendLinkManage.tsx @@ -467,7 +467,7 @@ const FriendLinkManage: React.FC = () => { ? intl.formatMessage({ id: 'friendLink.edit' }) : intl.formatMessage({ id: 'friendLink.add' }) } - visible={modalVisible} + open={modalVisible} onOk={handleModalSubmit} onCancel={() => setModalVisible(false)} destroyOnClose diff --git a/src/pages/helpManage/helpManage.tsx b/src/pages/helpManage/helpManage.tsx index 33a6f22..2dd207f 100644 --- a/src/pages/helpManage/helpManage.tsx +++ b/src/pages/helpManage/helpManage.tsx @@ -26,6 +26,8 @@ import { } from '@/dicts/helpManageDict'; import HelpManageForm from './HelpManageForm'; import HelpManageInfo from './HelpManageInfo'; +import { getDictList } from '@/servers/api/dicts'; +import type { DictItem } from '@/servers/api/dicts'; const { Option } = Select; const { confirm } = Modal; @@ -61,6 +63,7 @@ const HelpManage: React.FC = () => { showTotal: (total: number) => `共 ${total} 条记录`, }); const [searchParams, setSearchParams] = useState({}); + const [typeList, setTypeList] = useState([]); // 获取帮助中心列表数据 const fetchHelpList = ( @@ -108,6 +111,11 @@ const HelpManage: React.FC = () => { // 首次加载时获取数据 useEffect(() => { + getDictList('download_section').then((res) => { + if (res.code === 200 && res.success) { + setTypeList(res.data); + } + }); fetchHelpList(1, pagination.pageSize, {}); }, []); @@ -510,7 +518,7 @@ const HelpManage: React.FC = () => { ? intl.formatMessage({ id: 'helpManage.edit' }) : intl.formatMessage({ id: 'helpManage.add' }) } - visible={modalVisible} + open={modalVisible} onCancel={handleModalCancel} footer={null} width={800} diff --git a/src/pages/noticeManage/noticeManage.tsx b/src/pages/noticeManage/noticeManage.tsx index 1afe25f..6beedf4 100644 --- a/src/pages/noticeManage/noticeManage.tsx +++ b/src/pages/noticeManage/noticeManage.tsx @@ -585,7 +585,7 @@ const NoticeManage: React.FC = () => { ? intl.formatMessage({ id: 'notice.edit.title' }) : intl.formatMessage({ id: 'notice.add.title' }) } - visible={modalVisible} + open={modalVisible} onCancel={handleModalCancel} width={900} maskClosable={false} diff --git a/src/pages/policyManage/policyManage.tsx b/src/pages/policyManage/policyManage.tsx index 8ae6704..fff169e 100644 --- a/src/pages/policyManage/policyManage.tsx +++ b/src/pages/policyManage/policyManage.tsx @@ -474,7 +474,7 @@ const PolicyManage: React.FC = () => { : isEdit ? intl.formatMessage({ id: 'policyManage.form.edit' }) : intl.formatMessage({ id: 'policyManage.form.add' })} - visible={modalVisible} + open={modalVisible} onCancel={handleModalCancel} width={900} maskClosable={false} diff --git a/src/pages/register/supplier.tsx b/src/pages/register/supplier.tsx index da39383..d0d057e 100644 --- a/src/pages/register/supplier.tsx +++ b/src/pages/register/supplier.tsx @@ -182,7 +182,7 @@ const SupplierRegister: React.FC = () => { {/* 注册信息承诺书弹窗 */} { console.log('点击了确定按钮'); setModalVisible(false); diff --git a/src/pages/userQuestionManage/QuestionModal.tsx b/src/pages/userQuestionManage/QuestionModal.tsx index ac063cd..287de1e 100644 --- a/src/pages/userQuestionManage/QuestionModal.tsx +++ b/src/pages/userQuestionManage/QuestionModal.tsx @@ -357,7 +357,7 @@ const QuestionModal: React.FC = ({ return ( { {/* 使用封装的问题模态框组件 */} setModalVisible(false)} question={currentQuestion} mode={modalMode} diff --git a/src/pages/userQuestionManage/unreadQuestionManage.tsx b/src/pages/userQuestionManage/unreadQuestionManage.tsx index 9ea0f81..375cd84 100644 --- a/src/pages/userQuestionManage/unreadQuestionManage.tsx +++ b/src/pages/userQuestionManage/unreadQuestionManage.tsx @@ -405,7 +405,7 @@ const UnreadQuestionManage: React.FC = () => { {/* 使用封装的问题模态框组件 */} setAnswerModalVisible(false)} question={currentQuestion} mode="answer"