|
|
@ -48,9 +48,17 @@ const ApplicationCenter = (props) => { |
|
|
|
dataIndex: "name", |
|
|
|
key: "name", |
|
|
|
render: (text, r, index) => { |
|
|
|
return r?.name.length > 8 ? `${r?.name.substr(0, 8)}...` : r?.name |
|
|
|
return r?.name.length > 8 ? <Popover |
|
|
|
position='top' |
|
|
|
content={ |
|
|
|
<article style={{ padding: 12 }}> |
|
|
|
{r?.name} |
|
|
|
</article> |
|
|
|
} |
|
|
|
>{ |
|
|
|
`${r?.name.substr(0, 8)}...`} |
|
|
|
</Popover> : r?.name |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "APPID", |
|
|
@ -142,7 +150,7 @@ const ApplicationCenter = (props) => { |
|
|
|
dataIndex: "createTime", |
|
|
|
key: "createTime", |
|
|
|
render: (_, r, index) => { |
|
|
|
return r?.createUser?.name |
|
|
|
return moment(r.createTime).format("YYYY-MM-DD HH:mm:ss"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -150,7 +158,7 @@ const ApplicationCenter = (props) => { |
|
|
|
dataIndex: "createUserId", |
|
|
|
key: "account", |
|
|
|
render: (_, r, index) => { |
|
|
|
return moment(r.createTime).format("YYYY-MM-DD HH:MM:SS"); |
|
|
|
return r?.createUser?.name |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
@ -158,8 +166,9 @@ const ApplicationCenter = (props) => { |
|
|
|
dataIndex: "type", |
|
|
|
key: "applicationType", |
|
|
|
render: (_, r, index) => { |
|
|
|
const type = r?.type?.map((item, index) => item + ';') |
|
|
|
return type |
|
|
|
const types = { web: 'web', app: 'app', wxapp: '小程序', other: '其他' } |
|
|
|
return r?.type?.map((item, index) => types[item] + ';') |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|