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 }} style={{ paddingLeft: 6, paddingRight: 6 }}
onClick={async () => { onClick={async () => {
const backUrl = type const backUrl = type
? `/management/person/collection/detail?id=${projectId}&type=${type}` ? `/management/project/detail?id=${projectId}&type=${type}`
: `/management/person/collection/detail?id=${projectId}` : `/management/project/detail?id=${projectId}`
setBackProps(backUrl, "own") setBackProps(backUrl, "own")
if (info && [4, 5, 6].includes(info.label_type)) { if (info && [4, 5, 6].includes(info.label_type)) {

View File

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

View File

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

View File

@@ -360,8 +360,8 @@ export default function ProjectInfoPage({
}} }}
onClick={() => { onClick={() => {
const url = type const url = type
? `/management/person/collection/detail?id=${record.id}&type=${type}` ? `/management/project/detail?id=${record.id}&type=${type}`
: `/management/person/collection/detail?id=${record.id}` : `/management/project/detail?id=${record.id}`
router.push(url) router.push(url)
}}> }}>
<Text <Text
@@ -590,18 +590,6 @@ export default function ProjectInfoPage({
radius="md" radius="md"
style={{ borderColor: "rgba(0,0,0,0.06)" }}> style={{ borderColor: "rgba(0,0,0,0.06)" }}>
<Group justify="space-between" wrap="wrap" gap="sm"> <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"> <Group gap="xs">
<Text fw={700}> <Text fw={700}>
{type === "collect" {type === "collect"