|
@ -40,9 +40,11 @@ const Collect = () => { |
|
|
{ |
|
|
{ |
|
|
'title': t(`${i18nPrefix}.columns.name`, '站点名称'), |
|
|
'title': t(`${i18nPrefix}.columns.name`, '站点名称'), |
|
|
'dataIndex': 'name', |
|
|
'dataIndex': 'name', |
|
|
onHeaderCell: () => ({ |
|
|
|
|
|
|
|
|
fixed: 'left', |
|
|
width: 200, |
|
|
width: 200, |
|
|
}), |
|
|
|
|
|
|
|
|
fieldProps: { |
|
|
|
|
|
style: { width: '100%' } |
|
|
|
|
|
}, |
|
|
ellipsis: true, |
|
|
ellipsis: true, |
|
|
formItemProps: { |
|
|
formItemProps: { |
|
|
width: undefined, |
|
|
width: undefined, |
|
@ -55,17 +57,19 @@ const Collect = () => { |
|
|
'title': t(`${i18nPrefix}.columns.weights`, '权重'), |
|
|
'title': t(`${i18nPrefix}.columns.weights`, '权重'), |
|
|
'dataIndex': 'weights', |
|
|
'dataIndex': 'weights', |
|
|
valueType: 'digit', |
|
|
valueType: 'digit', |
|
|
onHeaderCell: () => ({ |
|
|
|
|
|
width: 80, |
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
fieldProps: { |
|
|
|
|
|
style: { width: '100%' } |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
'title': t(`${i18nPrefix}.columns.site_auth`, '搜片认证站点'), |
|
|
'title': t(`${i18nPrefix}.columns.site_auth`, '搜片认证站点'), |
|
|
'dataIndex': 'site_auth', |
|
|
'dataIndex': 'site_auth', |
|
|
valueType: 'switch', |
|
|
valueType: 'switch', |
|
|
onHeaderCell: () => ({ |
|
|
|
|
|
width: 100, |
|
|
width: 100, |
|
|
}), |
|
|
|
|
|
|
|
|
fieldProps: { |
|
|
|
|
|
style: { width: '100%' } |
|
|
|
|
|
}, |
|
|
render: (_dom, record) => { |
|
|
render: (_dom, record) => { |
|
|
return <Switch value={record.site_auth} size={'small'}/> |
|
|
return <Switch value={record.site_auth} size={'small'}/> |
|
|
} |
|
|
} |
|
@ -74,9 +78,10 @@ const Collect = () => { |
|
|
'title': t(`${i18nPrefix}.columns.site_cooperation`, '搜片合作优质站点'), |
|
|
'title': t(`${i18nPrefix}.columns.site_cooperation`, '搜片合作优质站点'), |
|
|
'dataIndex': 'site_cooperation', |
|
|
'dataIndex': 'site_cooperation', |
|
|
valueType: 'switch', |
|
|
valueType: 'switch', |
|
|
onHeaderCell: () => ({ |
|
|
|
|
|
width: 130, |
|
|
width: 130, |
|
|
}), |
|
|
|
|
|
|
|
|
fieldProps: { |
|
|
|
|
|
style: { width: '100%' } |
|
|
|
|
|
}, |
|
|
colProps: { |
|
|
colProps: { |
|
|
span: 8 |
|
|
span: 8 |
|
|
}, |
|
|
}, |
|
@ -88,9 +93,10 @@ const Collect = () => { |
|
|
{ |
|
|
{ |
|
|
'title': t(`${i18nPrefix}.columns.icon_cdn`, '站点图标'), |
|
|
'title': t(`${i18nPrefix}.columns.icon_cdn`, '站点图标'), |
|
|
'dataIndex': 'icon_cdn', |
|
|
'dataIndex': 'icon_cdn', |
|
|
onHeaderCell: () => ({ |
|
|
|
|
|
width: 80, |
|
|
width: 80, |
|
|
}), |
|
|
|
|
|
|
|
|
fieldProps: { |
|
|
|
|
|
style: { width: '100%' } |
|
|
|
|
|
}, |
|
|
render: (_text, record) => { |
|
|
render: (_text, record) => { |
|
|
return <img src={record.icon_cdn} style={{ width: 20, height: 20 }}/> |
|
|
return <img src={record.icon_cdn} style={{ width: 20, height: 20 }}/> |
|
|
}, |
|
|
}, |
|
@ -98,9 +104,10 @@ const Collect = () => { |
|
|
{ |
|
|
{ |
|
|
'title': t(`${i18nPrefix}.columns.url`, '站点URL'), |
|
|
'title': t(`${i18nPrefix}.columns.url`, '站点URL'), |
|
|
'dataIndex': 'url', |
|
|
'dataIndex': 'url', |
|
|
onHeaderCell: () => ({ |
|
|
|
|
|
width: 150, |
|
|
|
|
|
}), |
|
|
|
|
|
|
|
|
width: 200, |
|
|
|
|
|
fieldProps: { |
|
|
|
|
|
style: { width: '100%' } |
|
|
|
|
|
}, |
|
|
ellipsis: true, |
|
|
ellipsis: true, |
|
|
copyable: true, |
|
|
copyable: true, |
|
|
}, |
|
|
}, |
|
|