|
@@ -1,6 +1,7 @@
|
|
|
import FlieBox from '@/components/FileBoxAD'
|
|
|
import HocError from '@/Hoc/HocError'
|
|
|
-import { Tabs } from 'antd'
|
|
|
+import { QuestionCircleFilled } from '@ant-design/icons'
|
|
|
+import { Button, Space, Tabs, Tooltip } from 'antd'
|
|
|
import React, { useEffect, useRef, useState } from 'react'
|
|
|
import { useModel } from 'umi'
|
|
|
import AddLandingPage from '../../components/addLandingPage'
|
|
@@ -38,10 +39,18 @@ function Cloud() {
|
|
|
className={style.card}
|
|
|
activeKey={mediaType}
|
|
|
>
|
|
|
+
|
|
|
{
|
|
|
['IMG', 'VIDEO', 'PAGE'].map((key: any) => {
|
|
|
return <TabPane tab={typeEnum[key]} key={key} style={{ backgroundColor: '#fff', padding: '0 15px' }} >
|
|
|
- <Tabs onChange={(activeKey: any) => { set({ belongUser: activeKey }) }} activeKey={belongUser}>
|
|
|
+ <Tabs onChange={(activeKey: any) => { set({ belongUser: activeKey }) }} activeKey={belongUser} tabBarExtraContent={<Space>
|
|
|
+ {
|
|
|
+ mediaType === 'PAGE' ? <Button type="primary" size='small' onClick={() => { setVisible(true) }}>新建素材</Button> : <Button size='small' type="primary" onClick={() => { set({ imgVisrible: true }) }}>新建素材</Button>
|
|
|
+ }
|
|
|
+ <Tooltip title="功能都在下方内容区右键" placement="left">
|
|
|
+ <QuestionCircleFilled />
|
|
|
+ </Tooltip>
|
|
|
+ </Space>}>
|
|
|
<TabPane tab={'个人本地'} key={1} />
|
|
|
<TabPane tab={'公共本地'} key={0} />
|
|
|
</Tabs>
|
|
@@ -60,11 +69,11 @@ function Cloud() {
|
|
|
}
|
|
|
</Tabs>
|
|
|
{/* 落地页新增 复制 */}
|
|
|
- {visible && <AddLandingPage visible={visible} hideModal={() => setVisible(false)} ajax={list} id={id}/>}
|
|
|
+ {visible && <AddLandingPage visible={visible} hideModal={() => setVisible(false)} ajax={list} id={id} />}
|
|
|
{/* 查看落地页 */}
|
|
|
{lookVisible && <LookLanding visible={lookVisible} onClose={() => setLookVisible(false)} id={id} />}
|
|
|
{/* 批量复制 */}
|
|
|
- {copyVisible && <BathLauCopy visible={copyVisible} onClose={() => setCopyVisible(false)} id={id} ajaxHome={list}/>}
|
|
|
+ {copyVisible && <BathLauCopy visible={copyVisible} onClose={() => setCopyVisible(false)} id={id} ajaxHome={list} />}
|
|
|
</div>
|
|
|
|
|
|
}
|