修改
This commit is contained in:
@@ -125,15 +125,15 @@ export default function Organization() {
|
||||
{ title: '负责人', dataIndex: 'manager' },
|
||||
{ title: '联系电话', dataIndex: 'phone' },
|
||||
{ title: '邮箱', dataIndex: 'email' },
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
render: (s) => (
|
||||
<span className={s == 1 ? 'text-green-600' : 'text-red-600'}>
|
||||
{s == 1 ? '正常' : '禁用'}
|
||||
</span>
|
||||
)
|
||||
},
|
||||
//{
|
||||
// title: '状态',
|
||||
// dataIndex: 'status',
|
||||
// render: (s) => (
|
||||
// <span className={s == 1 ? 'text-green-600' : 'text-red-600'}>
|
||||
// {s == 1 ? '正常' : '禁用'}
|
||||
// </span>
|
||||
// )
|
||||
//},
|
||||
{
|
||||
title: '操作',
|
||||
render: (_, r) => (
|
||||
|
||||
@@ -206,11 +206,11 @@ export default function StationManage() {
|
||||
}
|
||||
},
|
||||
{ title: '地址', dataIndex: 'address' },
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
render: s => s === 1 ? <Tag color="green">启用</Tag> : <Tag color="red">停用</Tag>
|
||||
},
|
||||
//{
|
||||
// title: '状态',
|
||||
// dataIndex: 'status',
|
||||
// render: s => s === 1 ? <Tag color="green">启用</Tag> : <Tag color="red">停用</Tag>
|
||||
//},
|
||||
{
|
||||
title: '操作',
|
||||
width: 400,
|
||||
|
||||
@@ -513,7 +513,7 @@ export default function UserRolePage() {
|
||||
<Space direction="vertical" size={2}>
|
||||
<Text type="secondary">权限:{r.roleKey}</Text>
|
||||
<Text type="secondary">等级:{r.roleLevel || '-'}</Text>
|
||||
{r.roleKey == "admin1" && <Tag color="red">超级管理员</Tag>}
|
||||
{/*{r.roleKey == "admin1" && <Tag color="red">超级管理员</Tag>}*/}
|
||||
</Space>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user