Browse Source

完善表单

main
dark 3 months ago
parent
commit
a7512297e5
  1. 9
      src/pages/db/movie/components/Edit.tsx

9
src/pages/db/movie/components/Edit.tsx

@ -3870,6 +3870,9 @@ const Edit = <T = Record<string, any>>(props: IEditProps<T>) => {
{ {
dataIndex: 'descriptors', dataIndex: 'descriptors',
title: t(`${i18nPrefix}.column.descriptors`, '描述符'), title: t(`${i18nPrefix}.column.descriptors`, '描述符'),
render(_, record){
return record.descriptors?.join(',')
}
}, },
{ {
dataIndex: 'type', dataIndex: 'type',
@ -3974,10 +3977,16 @@ const Edit = <T = Record<string, any>>(props: IEditProps<T>) => {
</Button> </Button>
</>} </>}
style={{ width: '100%' }} style={{ width: '100%' }}
rowKey={'id'}
columns={[ columns={[
{ {
dataIndex: 'name', dataIndex: 'name',
title: t(`${i18nPrefix}.column.name`, '名称'), title: t(`${i18nPrefix}.column.name`, '名称'),
render: (text, record) => {
//根据site生成href
const href=`https://www.youtube.com/watch?v=${record.key}`
return <a target={'_blank'} href={href}>{text}</a>
}
}, },
{ {
dataIndex: 'type', dataIndex: 'type',

Loading…
Cancel
Save