fix(labelnossr): fix bug
This commit is contained in:
@@ -98,7 +98,7 @@ export default function PersonalTaskTable() {
|
||||
variant="transparent"
|
||||
onClick={async () => {
|
||||
setCurrentRowId(record.id)
|
||||
if ([4, 5, 6].includes(record.label_type)) {
|
||||
if ([4, 5, 6, 7].includes(record.label_type)) {
|
||||
setBackProps(`/project/person`)
|
||||
router.push(
|
||||
`/label?project_id=${record.project_id}&task_id=${record.id}`
|
||||
|
||||
@@ -303,7 +303,7 @@ export default function TaskTableContainer(props: {
|
||||
})
|
||||
return
|
||||
}
|
||||
if (![2, 4, 6].includes(resultData.status)) {
|
||||
if (![2, 4, 6, 7].includes(resultData.status)) {
|
||||
notifications.show({
|
||||
color: "red",
|
||||
title: "错误",
|
||||
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
} from "react"
|
||||
import ScaleComponent from "./components/ScaleComponent"
|
||||
|
||||
import { processVideo } from "@/app/component/label/video2image/processVideo"
|
||||
import { Box, Flex, LoadingOverlay, Stack } from "@mantine/core"
|
||||
import { showNotification } from "@mantine/notifications"
|
||||
import { getLabelResult, getServerImage } from "./api/label"
|
||||
@@ -18,7 +19,6 @@ import { getProjectDetail } from "./api/project"
|
||||
import { Project } from "./api/project/typing"
|
||||
import { getTaskList, getTaskWorkFlow } from "./api/task"
|
||||
import { Task } from "./api/task/typing"
|
||||
import { processVideo } from "@/app/component/label/video2image/processVideo"
|
||||
import BottomTools from "./components/BottomTools"
|
||||
import ConfirmModal from "./components/ConfirmModal"
|
||||
import { splitWord } from "./components/EditorContainer"
|
||||
@@ -754,7 +754,7 @@ const LabelPage = ({
|
||||
if (taskDetail) {
|
||||
if (
|
||||
![201, 202, 203, 500].includes(projectDetail!.status) ||
|
||||
![2, 4, 6].includes(taskDetail.label_status) ||
|
||||
![2, 4, 6, 7].includes(taskDetail.label_status) ||
|
||||
taskDetail.current_uid !== user_id
|
||||
) {
|
||||
// 如果不是能标注的任务
|
||||
@@ -1158,6 +1158,7 @@ const LabelPage = ({
|
||||
showGroupList,
|
||||
showDescList && projectDetail && projectDetail.label_type === 5,
|
||||
showDescList && projectDetail && projectDetail.label_type === 6,
|
||||
showDescList && projectDetail && projectDetail.label_type === 7,
|
||||
showObjectList,
|
||||
]
|
||||
let count = 0
|
||||
|
||||
Reference in New Issue
Block a user