Commit 6f95fc18 authored by chenshouchao's avatar chenshouchao

feat: 任务列表中正在启动的项目展示终止任务按钮

parent 6507ea38
......@@ -368,7 +368,7 @@ const ProjectMembers = observer(() => {
<Box className={styles.body} style={{ position: "relative" }}>
<MyCircularProgress loading={loading} />
{jobList.length === 0 && (
{jobList.length === 0 && !loading && (
<Box
sx={{
display: "flex",
......@@ -439,7 +439,7 @@ const ProjectMembers = observer(() => {
</div>
</Box>
{item.state === "RUNNING" &&
{(item.state === "RUNNING" || item.state === "SUBMITTED") &&
isPass("PROJECT_WORKBENCH_JOBS_STOP", "USER") && (
<Box className={styles.tabBoxJobOperate}>
{currentProjectStore.currentProjectInfo.projectRole ===
......@@ -465,6 +465,7 @@ const ProjectMembers = observer(() => {
</Box>
)}
{item.state !== "RUNNING" &&
item.state !== "SUBMITTED" &&
isPass("PROJECT_WORKBENCH_JOBS_DELETE", "MANAGER") && (
<Box className={styles.tabBoxJobOperate}>
<img
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment