fix(project): date

This commit is contained in:
zhangheng
2026-04-14 16:35:45 +08:00
parent 539cb5593e
commit 3ddec5d337

View File

@@ -24,6 +24,15 @@ import {
projectStatusOpts, projectStatusOpts,
STATUS_CODE, STATUS_CODE,
} from "@/components/label/utils/constants" } from "@/components/label/utils/constants"
import {
SettingContentPanel,
SettingFilterActions,
SettingFilterPanel,
SettingHeaderActions,
SettingListHeader,
SettingPage,
SettingPanel,
} from "@/components/setting/PageSurface"
import { import {
ActionIcon, ActionIcon,
Badge, Badge,
@@ -46,15 +55,6 @@ import {
Tooltip, Tooltip,
UnstyledButton, UnstyledButton,
} from "@mantine/core" } from "@mantine/core"
import {
SettingContentPanel,
SettingFilterActions,
SettingFilterPanel,
SettingHeaderActions,
SettingListHeader,
SettingPage,
SettingPanel,
} from "@/components/setting/PageSurface"
import { useForm } from "@mantine/form" import { useForm } from "@mantine/form"
import { notifications } from "@mantine/notifications" import { notifications } from "@mantine/notifications"
import { import {
@@ -71,7 +71,6 @@ import {
IconStar, IconStar,
IconStarFilled, IconStarFilled,
} from "@tabler/icons-react" } from "@tabler/icons-react"
import dayjs from "dayjs"
import { User2 } from "lucide-react" import { User2 } from "lucide-react"
import { useRouter } from "next/navigation" import { useRouter } from "next/navigation"
import { import {
@@ -190,8 +189,8 @@ export default function ProjectInfoPage({
owner: "", owner: "",
label_type: "", label_type: "",
admin_user: [] as string[], admin_user: [] as string[],
start_date: dayjs().subtract(6, "day").format("YYYY-MM-DD"), start_date: "",
end_date: dayjs().format("YYYY-MM-DD"), end_date: "",
} }
}) })
@@ -395,8 +394,9 @@ export default function ProjectInfoPage({
<Text <Text
fw={700} fw={700}
c={"brand"} c={"brand"}
title={record.name}
style={{ style={{
maxWidth: "100%", maxWidth: "100px",
overflow: "hidden", overflow: "hidden",
textOverflow: "ellipsis", textOverflow: "ellipsis",
whiteSpace: "nowrap", whiteSpace: "nowrap",
@@ -649,8 +649,8 @@ export default function ProjectInfoPage({
owner: "", owner: "",
label_type: "", label_type: "",
admin_user: [], admin_user: [],
start_date: dayjs().subtract(6, "day").format("YYYY-MM-DD"), start_date: "",
end_date: dayjs().format("YYYY-MM-DD"), end_date: "",
} }
setFilters(next) setFilters(next)
setAppliedFilters(next) setAppliedFilters(next)