Commit 2d55a1fc authored by 成旭东's avatar 成旭东

fix

parent 000a3e8f
Pipeline #28775 passed with stage
in 2 minutes 29 seconds
......@@ -547,6 +547,27 @@ const VideoList: React.FC<any> = (props) => {
width: 150,
render: (text: any) => (text || '0')
},
{
title: '首页推荐排序',
dataIndex: 'order',
key: 'order',
width: 150,
render: (text: any) => {
const orderMap = {
1: '第一位',
2: '第二位',
3: '第三位',
};
if (orderMap[text]) {
return (
<span style={{ color: 'green', fontSize: '20px', fontWeight: 'bold' }}>{orderMap[text]}</span>
)
}
return (<span style={{ color: 'red', fontSize: '20px', fontWeight: 'bold' }}>无排序</span>);
}
},
// {
// title: '首页推荐',
// dataIndex: 'is_recommend',
......@@ -622,7 +643,7 @@ const VideoList: React.FC<any> = (props) => {
columns={projectColumns}
onChange={handleStandardTableChange}
pagination={videoData.pagination}
scroll={{ x: 1560 }}
scroll={{ x: 1610 }}
/>
</Card>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment