feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面
This commit is contained in:
@@ -19,9 +19,10 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { Card, Tag as AntTag } from 'antd';
|
||||
import { Clock, Download, Settings } from 'lucide-react';
|
||||
import { Button, Pagination, Tooltip } from '@/components/ui';
|
||||
import { Clock, Download } from 'lucide-react';
|
||||
import { Button, Pagination } from '@/components/ui';
|
||||
import CardPro from '../../common/ui/CardPro';
|
||||
import { ColumnSettingsButton } from '../../common/table/ColumnSettings';
|
||||
import TaskLogsTable from './TaskLogsTable';
|
||||
import TaskLogsActions, {
|
||||
exportTaskLogsPageCsv,
|
||||
@@ -56,7 +57,7 @@ const TaskLogsPage = ({
|
||||
const { t, logs, isAdminUser } = taskLogsData;
|
||||
return (
|
||||
<>
|
||||
<ColumnSelectorModal {...taskLogsData} />
|
||||
<ColumnSelectorModal {...taskLogsData} usageRecordMode />
|
||||
<ContentModal {...taskLogsData} isVideo={false} />
|
||||
{/* 视频预览弹窗 */}
|
||||
<ContentModal
|
||||
@@ -107,14 +108,10 @@ const TaskLogsPage = ({
|
||||
>
|
||||
{t('导出本页')}
|
||||
</Button>
|
||||
<Tooltip content={t('列设置')}>
|
||||
<Button
|
||||
theme='borderless'
|
||||
aria-label={t('列设置')}
|
||||
icon={<Settings size={16} />}
|
||||
onClick={() => taskLogsData.setShowColumnSelector(true)}
|
||||
/>
|
||||
</Tooltip>
|
||||
<ColumnSettingsButton
|
||||
open={taskLogsData.showColumnSelector}
|
||||
onClick={() => taskLogsData.setShowColumnSelector(true)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<TaskLogsTable
|
||||
@@ -148,16 +145,6 @@ const TaskLogsPage = ({
|
||||
return (
|
||||
<div className='relative'>
|
||||
{/* 装饰性网格背景 */}
|
||||
<div
|
||||
className='absolute inset-0 opacity-[0.015] dark:opacity-[0.03] pointer-events-none'
|
||||
style={{
|
||||
backgroundImage: `
|
||||
linear-gradient(rgba(6, 182, 212, 0.5) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(6, 182, 212, 0.5) 1px, transparent 1px)
|
||||
`,
|
||||
backgroundSize: '24px 24px',
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* Modals */}
|
||||
<ColumnSelectorModal {...taskLogsData} />
|
||||
@@ -173,6 +160,7 @@ const TaskLogsPage = ({
|
||||
|
||||
{/* Main Content */}
|
||||
<CardPro
|
||||
tableTitle={taskLogsData.t('任务明细')}
|
||||
type='type2'
|
||||
className='!bg-transparent !border-0 !shadow-none relative'
|
||||
statsArea={
|
||||
@@ -184,7 +172,14 @@ const TaskLogsPage = ({
|
||||
hideDateRange={taskLogsData.usesSharedDateRange}
|
||||
/>
|
||||
}
|
||||
tableActions={
|
||||
<ColumnSettingsButton
|
||||
open={taskLogsData.showColumnSelector}
|
||||
onClick={() => taskLogsData.setShowColumnSelector(true)}
|
||||
/>
|
||||
}
|
||||
paginationArea={createCardProPagination({
|
||||
showRange: false,
|
||||
currentPage: taskLogsData.activePage,
|
||||
pageSize: taskLogsData.pageSize,
|
||||
total: taskLogsData.logCount,
|
||||
@@ -196,18 +191,10 @@ const TaskLogsPage = ({
|
||||
t={taskLogsData.t}
|
||||
>
|
||||
{/* 表格容器 */}
|
||||
<div className='relative mt-4'>
|
||||
{/* 表格装饰光晕 —— 走冷色 cyan→blue→品牌,与任务日志图标族一致 */}
|
||||
<div className='absolute -inset-0.5 bg-gradient-to-r from-cyan-500/20 via-blue-500/20 to-brand-to/20 rounded-2xl opacity-50 blur-sm' />
|
||||
|
||||
{/* 表格内容 —— 统一 .app-card 玻璃卡(去掉散乱的 bg-white/80 + border + rounded) */}
|
||||
<div className='relative app-card overflow-hidden'>
|
||||
<TaskLogsTable
|
||||
{...taskLogsData}
|
||||
compactMode={taskLogsData.compactMode}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<TaskLogsTable
|
||||
{...taskLogsData}
|
||||
compactMode={taskLogsData.compactMode}
|
||||
/>
|
||||
</CardPro>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user