wjx 7 ヶ月 前
コミット
3545f1ea98

+ 6 - 3
src/pages/launchSystemV3/material/tencent/index.tsx

@@ -3,7 +3,7 @@ import { getRemoteMaterialListApi } from "@/services/adqV3/cloudNew"
 import React, { useEffect, useRef, useState } from "react"
 import style from '../cloudNew/index.less'
 import Search from "./search"
-import { Button, Card, Checkbox, Divider, Dropdown, Empty, Form, message, Pagination, Popover, Radio, Select, Space, Spin, Statistic, Typography, Image } from "antd"
+import { Button, Card, Checkbox, Divider, Dropdown, Empty, Form, message, Pagination, Popover, Radio, Select, Space, Spin, Statistic, Typography, Image, Tag } from "antd"
 import { EyeOutlined, SortAscendingOutlined } from "@ant-design/icons"
 import PlayVideo from "../cloudNew/playVideo"
 import { formatBytes, formatSecondsToTime } from "@/utils/utils"
@@ -149,6 +149,7 @@ const Tencent: React.FC = () => {
                                                         message.warn('最少选择1个指标')
                                                         return
                                                     }
+                                                    setSortData({ ...sortData, sortField: undefined })
                                                     setShowField(value as any)
                                                 }}
                                             />
@@ -162,7 +163,7 @@ const Tencent: React.FC = () => {
                                                     filterOption={(input, option) =>
                                                         (option?.label as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
                                                     }
-                                                    options={showFieldList.map(item => ({ label: item.label, value: item.field }))}
+                                                    options={showFieldList.filter(item => showField.includes(item.value)).map(item => ({ label: item.label, value: item.field }))}
                                                     value={sortData.sortField}
                                                     allowClear
                                                     onChange={(value) => {
@@ -238,7 +239,9 @@ const Tencent: React.FC = () => {
                                                     </div>
                                                     <Divider style={{ margin: '0 0 4px 0' }} />
                                                     <div className={style.actions}>
-                                                        <div style={{ height: 22 }}></div>
+                                                        <div style={{ height: 22, fontSize: 12 }}>
+                                                            {item.pitcher_name}
+                                                        </div>
                                                         <Dropdown menu={{
                                                             items: [{ label: '保存至素材库', key: '1', onClick: () => { setMoveData({ visible: true, data: [item] }) } }]
                                                         }}>

+ 1 - 1
src/pages/launchSystemV3/material/tencent/saveMaterial.tsx

@@ -44,7 +44,7 @@ const SaveMaterial: React.FC<Props> = ({ data, visible, onChange, onClose }) =>
             }))
         }).then(res => {
             if (res) {
-                message.success('移动成功')
+                message.success('任务创建成功,结果要几分钟后返回')
                 onChange?.()
             }
         })

+ 1 - 1
src/pages/launchSystemV3/material/tencent/search.tsx

@@ -1,4 +1,4 @@
-import { Button, Card, Col, DatePicker, Form, Input, InputNumber, Row, Select, Space } from "antd"
+import { Button, Card, Col, Form, Row, Select, Space } from "antd"
 import React, { useEffect } from "react"
 import { getUserAllApi } from "@/services/operating/account";
 import { useAjax } from "@/Hook/useAjax";