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