|
|
|
@@ -34,7 +34,14 @@ function ExperimentInstanceList({ |
|
|
|
}: ExperimentInstanceListProps) { |
|
|
|
const { message } = App.useApp(); |
|
|
|
const allIntanceIds = useMemo(() => { |
|
|
|
return experimentInsList?.map((item) => item.id) || []; |
|
|
|
return ( |
|
|
|
experimentInsList |
|
|
|
?.filter( |
|
|
|
(item) => |
|
|
|
item.status !== ExperimentStatus.Running && item.status !== ExperimentStatus.Pending, |
|
|
|
) |
|
|
|
.map((item) => item.id) || [] |
|
|
|
); |
|
|
|
}, [experimentInsList]); |
|
|
|
const [ |
|
|
|
selectedIns, |
|
|
|
@@ -126,7 +133,12 @@ function ExperimentInstanceList({ |
|
|
|
<div> |
|
|
|
<div className={styles.tableExpandBox} style={{ paddingBottom: '16px' }}> |
|
|
|
<div className={styles.check}> |
|
|
|
<Checkbox checked={checked} indeterminate={indeterminate} onChange={checkAll}></Checkbox> |
|
|
|
<Checkbox |
|
|
|
checked={checked} |
|
|
|
indeterminate={indeterminate} |
|
|
|
disabled={allIntanceIds.length === 0} |
|
|
|
onChange={checkAll} |
|
|
|
></Checkbox> |
|
|
|
</div> |
|
|
|
<div className={styles.index}>序号</div> |
|
|
|
<div className={styles.description}>运行时长</div> |
|
|
|
|