|
|
|
@ -357,19 +357,24 @@ const ListNode: React.FC<ListNodeProps> = ({ componentData }) => {
|
|
|
|
// 根据运行状态判断显示启动还是停止按钮
|
|
|
|
// 根据运行状态判断显示启动还是停止按钮
|
|
|
|
const isRunning = record.runStatus === runStatusConstant.RUN || record.runStatus === runStatusConstant.HEALTHY;
|
|
|
|
const isRunning = record.runStatus === runStatusConstant.RUN || record.runStatus === runStatusConstant.HEALTHY;
|
|
|
|
const isRefreshing = refreshingIds.has(record.id);
|
|
|
|
const isRefreshing = refreshingIds.has(record.id);
|
|
|
|
|
|
|
|
const isLocalRun = record.runType === 'LOCAL';
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={styles['table-handle-box']}>
|
|
|
|
<div className={styles['table-handle-box']}>
|
|
|
|
<Space size={20}>
|
|
|
|
<Space size={20}>
|
|
|
|
<Button
|
|
|
|
{!isLocalRun && (
|
|
|
|
type="text"
|
|
|
|
<>
|
|
|
|
onClick={() => handleRefresh(record)}
|
|
|
|
<Button
|
|
|
|
loading={isRefreshing}
|
|
|
|
type="text"
|
|
|
|
disabled={isRefreshing}
|
|
|
|
onClick={() => handleRefresh(record)}
|
|
|
|
>
|
|
|
|
loading={isRefreshing}
|
|
|
|
刷新依赖
|
|
|
|
disabled={isRefreshing}
|
|
|
|
</Button>
|
|
|
|
>
|
|
|
|
<Button type="text" onClick={() => handleOpenLog(record)}>运行日志</Button>
|
|
|
|
刷新依赖
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
<Button type="text" onClick={() => handleOpenLog(record)}>运行日志</Button>
|
|
|
|
|
|
|
|
</>
|
|
|
|
|
|
|
|
)}
|
|
|
|
{!isRunning && (
|
|
|
|
{!isRunning && (
|
|
|
|
<Button type="text" onClick={() => handleOpenEnvConfig(record)}>环境配置</Button>
|
|
|
|
<Button type="text" onClick={() => handleOpenEnvConfig(record)}>环境配置</Button>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|