|
@@ -1,4 +1,4 @@
|
|
-import { message } from 'antd';
|
|
|
|
|
|
+import { message, Tooltip, Radio } from 'antd';
|
|
import React, { useRef, useState } from 'react';
|
|
import React, { useRef, useState } from 'react';
|
|
import { PageHeaderWrapper } from '@ant-design/pro-layout';
|
|
import { PageHeaderWrapper } from '@ant-design/pro-layout';
|
|
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
|
import ProTable, { ActionType, ProColumns } from '@ant-design/pro-table';
|
|
@@ -33,21 +33,27 @@ const TableList: React.FC<{}> = () => {
|
|
{
|
|
{
|
|
title: '服务IP',
|
|
title: '服务IP',
|
|
dataIndex: 'serviceIp',
|
|
dataIndex: 'serviceIp',
|
|
|
|
+ width: 150,
|
|
|
|
+ copyable: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '模型名称',
|
|
title: '模型名称',
|
|
dataIndex: 'modelName',
|
|
dataIndex: 'modelName',
|
|
|
|
+ width: 150,
|
|
|
|
+ copyable: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '模型版本',
|
|
title: '模型版本',
|
|
dataIndex: 'modelVersion',
|
|
dataIndex: 'modelVersion',
|
|
valueType: 'dateTime',
|
|
valueType: 'dateTime',
|
|
|
|
+ width: 200,
|
|
hideInSearch: true,
|
|
hideInSearch: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '当前版本',
|
|
title: '当前版本',
|
|
dataIndex: 'currentVersion',
|
|
dataIndex: 'currentVersion',
|
|
valueType: 'dateTime',
|
|
valueType: 'dateTime',
|
|
|
|
+ width: 220,
|
|
hideInSearch: true,
|
|
hideInSearch: true,
|
|
render: (text, row)=>{
|
|
render: (text, row)=>{
|
|
if (row.currentVersion !== row.modelVersion) {
|
|
if (row.currentVersion !== row.modelVersion) {
|
|
@@ -57,9 +63,46 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ title: '启动状态',
|
|
|
|
+ dataIndex: 'success',
|
|
|
|
+ copyable: true,
|
|
|
|
+ width: 100,
|
|
|
|
+ renderFormItem: () => {
|
|
|
|
+ return (
|
|
|
|
+ <Radio.Group>
|
|
|
|
+ <Radio value="成功">成功</Radio>
|
|
|
|
+ <Radio value="失败">失败</Radio>
|
|
|
|
+ </Radio.Group>
|
|
|
|
+ );
|
|
|
|
+ },
|
|
|
|
+ valueEnum: {
|
|
|
|
+ "成功": { text: "成功", status: 'Success' },
|
|
|
|
+ "失败": { text: "失败", status: 'Error' }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: '启动信息',
|
|
|
|
+ dataIndex: 'msg',
|
|
|
|
+ hideInSearch: true,
|
|
|
|
+ valueType: 'text',
|
|
|
|
+ width: 200,
|
|
|
|
+ render: (text, row) => {
|
|
|
|
+ if (!row.msg) {
|
|
|
|
+ row.msg = '';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return (<>
|
|
|
|
+ <Tooltip title={row.msg}>
|
|
|
|
+ <span>{row.msg.substring(0, 10)}</span>
|
|
|
|
+ </Tooltip>
|
|
|
|
+ </>);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
{
|
|
{
|
|
title: '操作',
|
|
title: '操作',
|
|
dataIndex: 'option',
|
|
dataIndex: 'option',
|
|
|
|
+ width: 100,
|
|
valueType: 'option',
|
|
valueType: 'option',
|
|
render: (_, record,index,action) => (
|
|
render: (_, record,index,action) => (
|
|
<>
|
|
<>
|