Browse Source

页面调整

main
st52 4 months ago
parent
commit
4de0aac063
  1. 1
      src/components/icon/picker/IconList.tsx
  2. 122
      src/pages/cms/collect/index.tsx
  3. 77
      src/pages/videos/list/index.tsx

1
src/components/icon/picker/IconList.tsx

@ -37,4 +37,5 @@ const IconList: FC = () => {
)
}
// eslint-disable-next-line react-refresh/only-export-components
export default memo(IconList)

122
src/pages/cms/collect/index.tsx

@ -50,9 +50,42 @@ const Collect = () => {
{ required: true, message: t(`${i18nPrefix}.columns.name`, '站点名称') }
]
},
},
{
'title': t(`${i18nPrefix}.columns.weights`, '权重'),
'dataIndex': 'weights',
valueType: 'digit',
onHeaderCell: () => ({
width: 80,
}),
},
{
'title': t(`${i18nPrefix}.columns.site_auth`, '搜片认证站点'),
'dataIndex': 'site_auth',
valueType: 'switch',
onHeaderCell: () => ({
width: 100,
}),
render: (_dom, record) => {
return <Switch value={record.site_auth} size={'small'}/>
}
},
{
'title': t(`${i18nPrefix}.columns.site_cooperation`, '搜片合作优质站点'),
'dataIndex': 'site_cooperation',
valueType: 'switch',
onHeaderCell: () => ({
width: 130,
}),
colProps: {
span: 8
},
render: (_dom, record) => {
return <Switch value={record.site_cooperation} size={'small'}/>
}
},
{
'title': t(`${i18nPrefix}.columns.icon_cdn`, '站点图标'),
'dataIndex': 'icon_cdn',
onHeaderCell: () => ({
@ -71,11 +104,11 @@ const Collect = () => {
ellipsis: true,
copyable: true,
},
{
'title': t(`${i18nPrefix}.columns.param`, '参数'),
'dataIndex': 'param',
hideInTable: true,
},
// {
// 'title': t(`${i18nPrefix}.columns.param`, '参数'),
// 'dataIndex': 'param',
// hideInTable: true,
// },
{
'title': t(`${i18nPrefix}.columns.type_id`, '类型'),
'dataIndex': 'type_id',
@ -90,21 +123,21 @@ const Collect = () => {
options: types
}
},
{
'title': t(`${i18nPrefix}.columns.opt`, '操作方式'),
'dataIndex': 'opt',
hideInTable: true,
},
{
'title': t(`${i18nPrefix}.columns.filter`, '过滤模式'),
'dataIndex': 'filter',
hideInTable: true,
},
{
'title': t(`${i18nPrefix}.columns.filter_form`, '过滤表单'),
'dataIndex': 'filter_form',
hideInTable: true,
},
// {
// 'title': t(`${i18nPrefix}.columns.opt`, '操作方式'),
// 'dataIndex': 'opt',
// hideInTable: true,
// },
// {
// 'title': t(`${i18nPrefix}.columns.filter`, '过滤模式'),
// 'dataIndex': 'filter',
// hideInTable: true,
// },
// {
// 'title': t(`${i18nPrefix}.columns.filter_form`, '过滤表单'),
// 'dataIndex': 'filter_form',
// hideInTable: true,
// },
{
'title': t(`${i18nPrefix}.columns.sync_pic`, '同步图片'),
'dataIndex': 'sync_pic',
@ -120,19 +153,11 @@ const Collect = () => {
}
},
{
'title': t(`${i18nPrefix}.columns.class`, '扩展分类'),
'dataIndex': 'class',
valueType: 'textarea',
},
{
'title': t(`${i18nPrefix}.columns.weights`, '权重'),
'dataIndex': 'weights',
valueType: 'digit',
onHeaderCell: () => ({
width: 80,
}),
},
// {
// 'title': t(`${i18nPrefix}.columns.class`, '扩展分类'),
// 'dataIndex': 'class',
// valueType: 'textarea',
// },
{
'title': t(`${i18nPrefix}.columns.status`, '启用'),
'dataIndex': 'status',
@ -162,34 +187,15 @@ const Collect = () => {
ellipsis: true,
},
{
'title': t(`${i18nPrefix}.columns.site_auth`, '搜片认证站点'),
'dataIndex': 'site_auth',
valueType: 'switch',
onHeaderCell: () => ({
width: 100,
}),
render: (_dom, record) => {
return <Switch value={record.site_auth} size={'small'}/>
}
},
{
'title': t(`${i18nPrefix}.columns.site_cooperation`, '搜片合作优质站点'),
'dataIndex': 'site_cooperation',
valueType: 'switch',
onHeaderCell: () => ({
width: 130,
}),
render: (_dom, record) => {
return <Switch value={record.site_cooperation} size={'small'}/>
}
},
{
'title': t(`${i18nPrefix}.columns.categories_rules`, '站点采集规则'),
'dataIndex': 'categories_rules',
valueType: 'textarea',
onHeaderCell: () => ({
width: 200,
}),
colProps: {
span: 8
},
ellipsis: true,
},
{
@ -285,13 +291,13 @@ const Collect = () => {
/>
<BetaSchemaForm
shouldUpdate={false}
width={600}
width={1000}
form={form}
layout={'vertical'}
scrollToFirstError={true}
title={t(`${i18nPrefix}.title_${form.getFieldValue('id') !== 0 ? 'edit' : 'add'}`, form.getFieldValue('id') !== 0 ? '站点编辑' : '站点添加')}
// colProps={{ span: 24 }}
labelCol={{ span: 6 }}
// labelCol={{ span: 6 }}
// wrapperCol={{ span: 14 }}
layoutType={'DrawerForm'}
open={open}

77
src/pages/videos/list/index.tsx

@ -75,7 +75,7 @@ const Video = () => {
}
},
colProps: {
span: 8
span: 16
}
},
{
@ -91,20 +91,18 @@ const Video = () => {
colProps: {
span: 8
}
},
{
'title': t(`${i18nPrefix}.columns.source_url`, 'SourceUrl'),
'dataIndex': 'source_url',
ellipsis: true,
copyable: true,
onHeaderCell: () => {
return {
width: 200,
}
},
},
// {
// 'title': t(`${i18nPrefix}.columns.source_url`, 'SourceUrl'),
// 'dataIndex': 'source_url',
// ellipsis: true,
// copyable: true,
// onHeaderCell: () => {
// return {
// width: 200,
// }
// },
// },
{
'title': t(`${i18nPrefix}.columns.year`, 'Year'),
'dataIndex': 'year',
@ -129,7 +127,35 @@ const Video = () => {
'dataIndex': 'class_name',
colProps: {
span: 4
span: 12
},
},
{
'title': t(`${i18nPrefix}.columns.douban_id`, 'DouBanId'),
'dataIndex': 'douban_id',
colProps: {
span: 6
},
},
{
'title': t(`${i18nPrefix}.columns.imdb_id`, 'ImdbId'),
'dataIndex': 'imdb_id',
colProps: {
span: 6
},
},
{
'title': t(`${i18nPrefix}.columns.rt_id`, 'RtId'),
'dataIndex': 'rt_id',
colProps: {
span: 6
},
},
{
'title': t(`${i18nPrefix}.columns.mal_id`, 'MalId'),
'dataIndex': 'mal_id',
colProps: {
span: 6
},
},
{
@ -138,7 +164,7 @@ const Video = () => {
hideInSearch: true,
hideInTable: true,
colProps: {
span: 4
span: 24
},
renderFormItem: (_schema, _config, form) => {
return <ProFormUploadButton
@ -173,6 +199,10 @@ const Video = () => {
'dataIndex': 'director'
},
{
'title': t(`${i18nPrefix}.columns.writer`, 'Writer'),
'dataIndex': 'writer'
},
{
'title': t(`${i18nPrefix}.columns.content`, 'Content'),
'dataIndex': 'content',
valueType: 'textarea',
@ -181,15 +211,12 @@ const Video = () => {
width: 200,
}),
},
{
'title': t(`${i18nPrefix}.columns.writer`, 'Writer'),
'dataIndex': 'writer'
},
{
'title': t(`${i18nPrefix}.columns.remarks`, 'Remarks'),
'dataIndex': 'remarks'
},
// {
// 'title': t(`${i18nPrefix}.columns.remarks`, 'Remarks'),
// valueType: 'textarea',
// ellipsis: true,
// 'dataIndex': 'remarks'
// },
{
'title': t(`${i18nPrefix}.columns.tag`, 'Tag'),
'dataIndex': 'tag',

Loading…
Cancel
Save