This commit is contained in:
mmc
2026-05-06 16:49:07 +08:00
parent 8413284b45
commit de1998a9a8
6 changed files with 135 additions and 52 deletions

View File

@@ -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) => (

View File

@@ -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,

View File

@@ -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>
}
/>