Commit 6f95fc18 authored by chenshouchao's avatar chenshouchao

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

parent 6507ea38
...@@ -368,7 +368,7 @@ const ProjectMembers = observer(() => { ...@@ -368,7 +368,7 @@ const ProjectMembers = observer(() => {
<Box className={styles.body} style={{ position: "relative" }}> <Box className={styles.body} style={{ position: "relative" }}>
<MyCircularProgress loading={loading} /> <MyCircularProgress loading={loading} />
{jobList.length === 0 && ( {jobList.length === 0 && !loading && (
<Box <Box
sx={{ sx={{
display: "flex", display: "flex",
...@@ -439,7 +439,7 @@ const ProjectMembers = observer(() => { ...@@ -439,7 +439,7 @@ const ProjectMembers = observer(() => {
</div> </div>
</Box> </Box>
{item.state === "RUNNING" && {(item.state === "RUNNING" || item.state === "SUBMITTED") &&
isPass("PROJECT_WORKBENCH_JOBS_STOP", "USER") && ( isPass("PROJECT_WORKBENCH_JOBS_STOP", "USER") && (
<Box className={styles.tabBoxJobOperate}> <Box className={styles.tabBoxJobOperate}>
{currentProjectStore.currentProjectInfo.projectRole === {currentProjectStore.currentProjectInfo.projectRole ===
...@@ -465,6 +465,7 @@ const ProjectMembers = observer(() => { ...@@ -465,6 +465,7 @@ const ProjectMembers = observer(() => {
</Box> </Box>
)} )}
{item.state !== "RUNNING" && {item.state !== "RUNNING" &&
item.state !== "SUBMITTED" &&
isPass("PROJECT_WORKBENCH_JOBS_DELETE", "MANAGER") && ( isPass("PROJECT_WORKBENCH_JOBS_DELETE", "MANAGER") && (
<Box className={styles.tabBoxJobOperate}> <Box className={styles.tabBoxJobOperate}>
<img <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