index.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { Card, Tabs } from 'antd';
  2. import React from 'react';
  3. import '../../../tencentAdPutIn/index.less'
  4. import Group from './components/group';
  5. import SelectAdAccount from '@/components/SelectAdAccount';
  6. import PageTieUp from './components/pageTieUp';
  7. import LandingPageTieUp from './components/landingPageTieUp';
  8. import TencentGroup from './components/tencentGroup';
  9. /**
  10. * 客服管理
  11. * @returns
  12. */
  13. const EnterpriseWechat: React.FC = () => {
  14. /**********************************/
  15. const [adAccountId, setAdAccountId] = React.useState<number>();
  16. /**********************************/
  17. return <Card
  18. className="cardResetCss"
  19. >
  20. <div className="flexStart" style={{ gap: 8, marginBottom: 16 }}>
  21. <SelectAdAccount
  22. isReturnFirstValue
  23. value={adAccountId ? [adAccountId] : undefined}
  24. type="radio"
  25. onChange={(value) => {
  26. setAdAccountId(value as number)
  27. }}
  28. allowClear={false}
  29. />
  30. </div>
  31. <Tabs
  32. items={[
  33. { label: '客服组', key: '1', children: <Group adAccountId={adAccountId} /> },
  34. { label: '腾讯客服组', key: '2', children: <TencentGroup adAccountId={adAccountId} /> },
  35. { label: '官方落地页与客服组关系', key: '3', children: <PageTieUp adAccountId={adAccountId} /> },
  36. { label: '原生落地页与客服组关系', key: '4', children: <LandingPageTieUp adAccountId={adAccountId} /> },
  37. ]}
  38. size="small"
  39. />
  40. </Card>
  41. };
  42. export default EnterpriseWechat;