ERPTurbo_Admin/packages/app-operation/src/pages/WxMa.tsx
shenyifei 35fd2e8138 feat(dealer): 添加经销商分成比例调整功能
- 在经销商列表中显示分成比例是否可调整
- 新增开关控制分成比例是否允许调整
- 更新相关表单和字段定义以支持新功能
- 调整国际化文案以匹配新的业务逻辑
- 优化部分组件代码结构和依赖引用
2025-11-21 14:28:44 +08:00

68 lines
1.3 KiB
TypeScript

import {
PageContainer,
WxMaMessagePushConfig,
WxMaSubscribeMessageConfig,
} from '@/components';
import { WxMaConfig } from '@/components/Setting';
import { ProCard } from '@ant-design/pro-components';
import { useState } from 'react';
import SmartRecognitionPromptConfig from '../components/Setting/SmartRecognitionPromptConfig';
export default function Page() {
const [activeKey, setActiveKey] = useState<string>('1');
return (
<PageContainer
permission={'MDB_BUSINESS_MINI_PROGRAM_CONFIG'}
fieldProps={{
tabActiveKey: activeKey,
onTabChange: (activeKey) => {
setActiveKey(activeKey);
},
tabList: [
{
key: '1',
tab: '小程序配置',
},
{
key: '2',
tab: '消息推送设置',
},
{
key: '3',
tab: '订阅消息配置',
},
{
key: '4',
tab: '智能识别',
},
],
}}
>
{activeKey === '1' && (
<ProCard>
<WxMaConfig />
</ProCard>
)}
{activeKey === '2' && (
<ProCard>
<WxMaMessagePushConfig />
</ProCard>
)}
{activeKey === '3' && (
<ProCard>
<WxMaSubscribeMessageConfig />
</ProCard>
)}
{activeKey === '4' && (
<ProCard>
<SmartRecognitionPromptConfig />
</ProCard>
)}
</PageContainer>
);
}