fix(detail): change detail
This commit is contained in:
@@ -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)) {
|
||||
@@ -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
|
||||
@@ -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"
|
||||
)
|
||||
}}>
|
||||
返回
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user