Commit 5aedd9a0 authored by 皮倩雯's avatar 皮倩雯

fix: '集成登陆界面样式优化'

parent 42729141
Pipeline #54924 waiting for manual action with stages
...@@ -60,6 +60,18 @@ const Integrate = () => { ...@@ -60,6 +60,18 @@ const Integrate = () => {
width: 60, width: 60,
align: 'center', align: 'center',
}, },
{
title: '图标',
dataIndex: 'iconUrl',
key: 'iconUrl',
align: 'center',
width: 200,
render: (text, record) => {
if (text) {
return <Image src={window.location.origin + `/${text}`} height="50px" />;
}
},
},
{ {
title: '名称', title: '名称',
dataIndex: 'SystemName', dataIndex: 'SystemName',
...@@ -74,27 +86,25 @@ const Integrate = () => { ...@@ -74,27 +86,25 @@ const Integrate = () => {
</span> </span>
), ),
}, },
// {
// title: '标识',
// dataIndex: 'SystemClient',
// key: 'SystemClient',
// align: 'center',
// ellipsis: true,
// render: (text, record) => (
// <span>
// <Tooltip placement="top" title={text}>
// {searchStyle(text)}
// </Tooltip>
// </span>
// ),
// },
{ {
title: '内网地址', title: '副标题',
dataIndex: 'IntranetAddress', dataIndex: 'Subtitle',
key: 'IntranetAddress', key: 'Subtitle',
align: 'center',
ellipsis: true,
render: (text, record) => (
<span>
<Tooltip placement="top" title={text}>
{text}
</Tooltip>
</span>
),
},
{
title: '外网地址',
dataIndex: 'InternetAddress',
key: 'InternetAddress',
align: 'center', align: 'center',
// width: 400,
// ellipsis: true,
render: record => { render: record => {
if (record) { if (record) {
return ( return (
...@@ -107,21 +117,10 @@ const Integrate = () => { ...@@ -107,21 +117,10 @@ const Integrate = () => {
}, },
}, },
{ {
title: '外网地址', title: '内网地址',
dataIndex: 'InternetAddress', dataIndex: 'IntranetAddress',
key: 'InternetAddress', key: 'IntranetAddress',
// ellipsis: true,
align: 'center', align: 'center',
// maxWidth: 600,
// onCell: () => ({
// style: {
// maxWidth: 600,
// overflow: 'hidden',
// whiteSpace: 'nowrap',
// textOverflow: 'ellipsis',
// cursor: 'pointer',
// },
// }),
render: record => { render: record => {
if (record) { if (record) {
return ( return (
...@@ -134,28 +133,30 @@ const Integrate = () => { ...@@ -134,28 +133,30 @@ const Integrate = () => {
}, },
}, },
{ {
title: '图标', title: '账号参数',
dataIndex: 'iconUrl', dataIndex: 'AccountParam',
key: 'iconUrl', key: 'AccountParam',
align: 'center', align: 'center',
width: 200, render: (text, record) => (
render: (text, record) => { <span>
if (text) { <Tooltip placement="top" title={text}>
// if (text.startsWith('CityTemp') || text.startsWith('civ_integratedlogin')) { {text[0].key}
// return <Image src={`http://192.168.12.116:8017/${text}`} height="50px" />; </Tooltip>
// } else { </span>
return <Image src={window.location.origin + `/${text}`} height="50px" />; ),
// } },
{
title: '账号值',
dataIndex: 'AccountParam',
key: 'AccountParam',
align: 'center',
render: record => {
if (record === '1') {
return <span>熊猫ticket</span>;
} }
return <span>熊猫token</span>;
}, },
}, },
// {
// title: '参数',
// dataIndex: 'AccountParam',
// key: 'AccountParam',
// align: 'center',
// width: 200,
// },
{ {
title: '操作', title: '操作',
key: 'action', key: 'action',
......
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