fix(detail): change detail

This commit is contained in:
zhangheng
2026-02-24 16:39:29 +08:00
parent ee635b3ee4
commit 62ba2fa5cf
18 changed files with 11 additions and 23 deletions

View File

@@ -151,8 +151,8 @@ export default function OwnTaskTableContainer(props: {
style={{ paddingLeft: 6, paddingRight: 6 }}
onClick={async () => {
const backUrl = type
? `/management/person/collection/detail?id=${projectId}&type=${type}`
: `/management/person/collection/detail?id=${projectId}`
? `/management/project/detail?id=${projectId}&type=${type}`
: `/management/project/detail?id=${projectId}`
setBackProps(backUrl, "own")
if (info && [4, 5, 6].includes(info.label_type)) {

View File

@@ -1,5 +1,6 @@
"use client"
import { dispatchOpts } from "@/app/management/person/collection/config"
import { taskDispatch } from "@/components/label/api/task"
import { Task } from "@/components/label/api/task/typing"
import { usePermissionStore } from "@/components/label/store/auth"
@@ -14,7 +15,6 @@ import {
} from "@mantine/core"
import { useForm } from "@mantine/form"
import { notifications } from "@mantine/notifications"
import { dispatchOpts } from "../../config"
export default function DispatchModal(props: {
opened: boolean

View File

@@ -116,8 +116,8 @@ export default function CollectionDetailPage() {
: "全部项目"
: "我的收藏",
href: type
? `/management/person/collection?type=${type}`
: "/management/person/collection?type=collect",
? `/management/project?type=${type}`
: "/management/project?type=collect",
},
{
title: info?.name || "项目名称",
@@ -168,8 +168,8 @@ export default function CollectionDetailPage() {
const next = item.key
setSelectedKey(next)
const backUrl = type
? `/management/person/collection/detail?id=${projectId}&type=${type}`
: `/management/person/collection/detail?id=${projectId}`
? `/management/project/detail?id=${projectId}&type=${type}`
: `/management/project/detail?id=${projectId}`
setBackProps(backUrl, next)
}}
style={{
@@ -212,8 +212,8 @@ export default function CollectionDetailPage() {
onClick={() => {
router.push(
type
? `/management/person/collection?type=${type}`
: "/management/person/collection?type=collect"
? `/management/project?type=${type}`
: "/management/project?type=collect"
)
}}>

View File

@@ -360,8 +360,8 @@ export default function ProjectInfoPage({
}}
onClick={() => {
const url = type
? `/management/person/collection/detail?id=${record.id}&type=${type}`
: `/management/person/collection/detail?id=${record.id}`
? `/management/project/detail?id=${record.id}&type=${type}`
: `/management/project/detail?id=${record.id}`
router.push(url)
}}>
<Text
@@ -590,18 +590,6 @@ export default function ProjectInfoPage({
radius="md"
style={{ borderColor: "rgba(0,0,0,0.06)" }}>
<Group justify="space-between" wrap="wrap" gap="sm">
{/* <SegmentedControl
value={type}
data={[
{ label: "全部项目", value: "all" },
{ label: "我的收藏", value: "collect" },
{ label: "动态项目", value: "dynamic" },
]}
onChange={(v) => {
const next = v as PageType
router.replace(`/management/person/collection?type=${next}`)
}}
/> */}
<Group gap="xs">
<Text fw={700}>
{type === "collect"