|
|
|
@ -11,7 +11,8 @@ import {
|
|
|
|
Message,
|
|
|
|
Message,
|
|
|
|
Modal,
|
|
|
|
Modal,
|
|
|
|
Notification,
|
|
|
|
Notification,
|
|
|
|
Tag
|
|
|
|
Tag,
|
|
|
|
|
|
|
|
Tooltip
|
|
|
|
} from '@arco-design/web-react';
|
|
|
|
} from '@arco-design/web-react';
|
|
|
|
import { getComponentClassify } from '@/api/componentClassify';
|
|
|
|
import { getComponentClassify } from '@/api/componentClassify';
|
|
|
|
import { IconSearch } from '@arco-design/web-react/icon';
|
|
|
|
import { IconSearch } from '@arco-design/web-react/icon';
|
|
|
|
@ -59,10 +60,6 @@ const ComponentEnv = () => {
|
|
|
|
title: '环境别名',
|
|
|
|
title: '环境别名',
|
|
|
|
dataIndex: 'name'
|
|
|
|
dataIndex: 'name'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '备注',
|
|
|
|
|
|
|
|
dataIndex: 'description'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '实例数量',
|
|
|
|
title: '实例数量',
|
|
|
|
dataIndex: 'instanceCount'
|
|
|
|
dataIndex: 'instanceCount'
|
|
|
|
@ -113,10 +110,31 @@ const ComponentEnv = () => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
title: '备注',
|
|
|
|
|
|
|
|
dataIndex: 'description',
|
|
|
|
|
|
|
|
width: 200,
|
|
|
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
|
|
|
render: (text) => (
|
|
|
|
|
|
|
|
text ? (
|
|
|
|
|
|
|
|
<Tooltip content={text}>
|
|
|
|
|
|
|
|
<span style={{
|
|
|
|
|
|
|
|
display: 'block',
|
|
|
|
|
|
|
|
overflow: 'hidden',
|
|
|
|
|
|
|
|
textOverflow: 'ellipsis',
|
|
|
|
|
|
|
|
whiteSpace: 'nowrap'
|
|
|
|
|
|
|
|
}}>
|
|
|
|
|
|
|
|
{text}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</Tooltip>
|
|
|
|
|
|
|
|
) : '-'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '操作',
|
|
|
|
title: '操作',
|
|
|
|
width: 230,
|
|
|
|
width: 450,
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
fixed: 'right',
|
|
|
|
render: (_, record: any) => (
|
|
|
|
render: (_, record: any) => (
|
|
|
|
<Space>
|
|
|
|
<Space>
|
|
|
|
{record.isEnable === 'RUNNING' && (
|
|
|
|
{record.isEnable === 'RUNNING' && (
|
|
|
|
@ -416,7 +434,7 @@ const ComponentEnv = () => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Table columns={columns} data={data} />
|
|
|
|
<Table columns={columns} data={data} scroll={{ x: 1200 }} />
|
|
|
|
|
|
|
|
|
|
|
|
<AddModal
|
|
|
|
<AddModal
|
|
|
|
visible={visible}
|
|
|
|
visible={visible}
|
|
|
|
|