|
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react'
|
|
import { Card, Col, Menu, Row, Select, Tabs } from 'antd';
|
|
import { Card, Col, Menu, Row, Select, Tabs } from 'antd';
|
|
// import './index.less'
|
|
// import './index.less'
|
|
import Campaign from './campaign';
|
|
import Campaign from './campaign';
|
|
|
|
+import AdAccount from './adAccount';
|
|
import Ad from './ad';
|
|
import Ad from './ad';
|
|
import Creative from './creative';
|
|
import Creative from './creative';
|
|
import LandingPage from './landingPage';
|
|
import LandingPage from './landingPage';
|
|
@@ -13,7 +14,7 @@ import { useModel } from 'umi';
|
|
const { TabPane } = Tabs;
|
|
const { TabPane } = Tabs;
|
|
let Menus: any = Menu
|
|
let Menus: any = Menu
|
|
const tabsConfig = [
|
|
const tabsConfig = [
|
|
- { key: '1', tab: '账户信息', jsx: () => null },
|
|
|
|
|
|
+ { key: '1', tab: '账户信息', jsx:(props: any) => <AdAccount {...props} />},
|
|
{ key: '2', tab: '计划', jsx:(props: any) => <Campaign {...props} />},
|
|
{ key: '2', tab: '计划', jsx:(props: any) => <Campaign {...props} />},
|
|
{ key: '3', tab: '广告', jsx: (props: any) => <Ad {...props} /> },
|
|
{ key: '3', tab: '广告', jsx: (props: any) => <Ad {...props} /> },
|
|
{ key: '4', tab: '创意', jsx: (props: any) => <Creative {...props} /> },
|
|
{ key: '4', tab: '创意', jsx: (props: any) => <Creative {...props} /> },
|
|
@@ -24,7 +25,7 @@ function Adq() {
|
|
const userInfo = useModel('@@initialState', model => model.initialState?.currentUser)
|
|
const userInfo = useModel('@@initialState', model => model.initialState?.currentUser)
|
|
const allOfMember = useAjax(() => getAdAccountAllOfMember(), { formatResult: true })
|
|
const allOfMember = useAjax(() => getAdAccountAllOfMember(), { formatResult: true })
|
|
const [userAll, setUserAll] = useState([])
|
|
const [userAll, setUserAll] = useState([])
|
|
- const [activeKey, setActiveKey] = useState('2')
|
|
|
|
|
|
+ const [activeKey, setActiveKey] = useState('1')
|
|
const [userId, setUserId] = useState<any>('1'||userInfo?.userId?.toString())
|
|
const [userId, setUserId] = useState<any>('1'||userInfo?.userId?.toString())
|
|
const [selectedArr, setSelectedArr] = useState([])
|
|
const [selectedArr, setSelectedArr] = useState([])
|
|
const [idS, setIds] = useState({//需要用到的accountId,adAccountId
|
|
const [idS, setIds] = useState({//需要用到的accountId,adAccountId
|