feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 54b3e0cc21
commit 5c0849e82b
242 changed files with 9242 additions and 5043 deletions
+54 -38
View File
@@ -16,11 +16,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import TableEmpty from '../../components/common/table/TableEmpty';
import TableToolbar from '../../components/common/table/TableToolbar';
import { ConsoleFilterField } from '../../components/console/ConsoleModuleFilters';
import React, { useState } from 'react';
import {
Button,
Card,
Empty,
Input,
Modal,
Select,
@@ -167,18 +169,19 @@ export default function InsightsPanel({ value, onChange, disabled, error }) {
key: 'actions',
width: 160,
render: (_, item) => (
<div className='flex gap-2'>
<div className='website-insights-row-actions'>
<Button
type='tertiary'
theme='borderless'
type='link'
size='small'
disabled={disabled}
onClick={() => setArticle({ ...item, related: [...item.related] })}
>
编辑
</Button>
<Button
theme='borderless'
type='danger'
type='link'
size='small'
danger
disabled={disabled}
onClick={() => deleteArticle(item)}
>
@@ -198,7 +201,11 @@ export default function InsightsPanel({ value, onChange, disabled, error }) {
<Card
className='website-insights-categories'
title={
<Typography.Title heading={6} className='truncate' title='内容分类'>
<Typography.Title
heading={6}
className='website-insights-category-heading truncate'
title='内容分类'
>
内容分类
</Typography.Title>
}
@@ -266,43 +273,52 @@ export default function InsightsPanel({ value, onChange, disabled, error }) {
</div>
</Card>
<div className='website-insights-toolbar'>
<Input
prefix={<IconSearch />}
aria-label='搜索文章标题或摘要'
placeholder='搜索文章标题或摘要'
value={keyword}
showClear
onEnterPress={(event) => event.preventDefault()}
onChange={(text) => {
setKeyword(text);
}}
/>
<Select
aria-label='筛选文章分类'
value={activeCategory}
optionList={[
{ label: '全部分类', value: 'all' },
...value.categories.map((c) => ({ label: c.name, value: c.id })),
]}
onChange={selectCategory}
/>
<Button
icon={<IconPlus />}
theme='solid'
disabled={disabled}
onClick={() => {
setArticle(newArticle(activeCategory));
}}
>
新增文章
</Button>
<div className='website-insights-search-field'>
<ConsoleFilterField label='文章标题'>
<Input
className='website-insights-search'
prefix={<IconSearch />}
aria-label='搜索文章标题或摘要'
placeholder='搜索文章标题或摘要'
value={keyword}
showClear
onEnterPress={(event) => event.preventDefault()}
onChange={(text) => {
setKeyword(text);
}}
/>
</ConsoleFilterField>
</div>
</div>
<TableToolbar title='文章列表'>
<div className='website-insights-toolbar-actions'>
<Select
aria-label='筛选文章分类'
value={activeCategory}
optionList={[
{ label: '全部分类', value: 'all' },
...value.categories.map((c) => ({ label: c.name, value: c.id })),
]}
onChange={selectCategory}
/>
<Button
icon={<IconPlus />}
theme='solid'
disabled={disabled}
onClick={() => {
setArticle(newArticle(activeCategory));
}}
>
新增文章
</Button>
</div>
</TableToolbar>
<CardTable
rowKey='id'
columns={columns}
dataSource={rows}
scroll={{ x: 860 }}
empty={<Empty description='暂无匹配的文章,请调整筛选条件或新增文章' />}
empty={<TableEmpty />}
hidePagination
/>
<Modal