ERP-node/frontend/app/(main)/test-flow/page.tsx

74 lines
2.6 KiB
TypeScript
Raw Normal View History

2025-10-20 15:53:00 +09:00
"use client";
import React from "react";
import { FlowWidget } from "@/components/screen/widgets/FlowWidget";
import { FlowComponent } from "@/types/screen-management";
/**
*
* (ID: 8)
*/
export default function TestFlowPage() {
// 문서 승인 플로우
const documentFlow: FlowComponent = {
id: "test-flow-1",
type: "flow",
flowId: 8, // 문서 승인 플로우
flowName: "문서 승인 플로우",
showStepCount: true,
allowDataMove: true,
displayMode: "horizontal",
position: { x: 0, y: 0 },
size: { width: 1200, height: 600 },
style: {},
};
// 작업 요청 워크플로우
const workRequestFlow: FlowComponent = {
id: "test-flow-2",
type: "flow",
flowId: 12, // 작업 요청 워크플로우
flowName: "작업 요청 워크플로우",
showStepCount: true,
allowDataMove: true,
displayMode: "horizontal",
position: { x: 0, y: 0 },
size: { width: 1200, height: 600 },
style: {},
};
return (
<div className="min-h-screen bg-muted p-8">
2025-10-20 15:53:00 +09:00
<div className="mx-auto max-w-7xl space-y-8">
{/* 헤더 */}
<div>
<h1 className="text-3xl font-bold text-foreground"> </h1>
<p className="mt-2 text-muted-foreground"> </p>
2025-10-20 15:53:00 +09:00
</div>
{/* 문서 승인 플로우 */}
<div className="rounded-lg bg-background p-6 shadow-lg">
<h2 className="mb-4 text-xl font-semibold text-foreground"> (4)</h2>
2025-10-20 15:53:00 +09:00
<FlowWidget component={documentFlow} />
</div>
{/* 작업 요청 워크플로우 */}
<div className="rounded-lg bg-background p-6 shadow-lg">
<h2 className="mb-4 text-xl font-semibold text-foreground"> (6)</h2>
2025-10-20 15:53:00 +09:00
<FlowWidget component={workRequestFlow} />
</div>
{/* 사용 안내 */}
<div className="mt-8 rounded-lg border border-primary/20 bg-primary/5 p-6">
<h3 className="mb-2 text-lg font-semibold text-primary"> </h3>
<ul className="list-inside list-disc space-y-1 text-primary/80">
2025-10-20 15:53:00 +09:00
<li> </li>
<li> "다음 단계로 이동" </li>
<li> </li>
</ul>
</div>
</div>
</div>
);
}