develop #2
@@ -14,6 +14,7 @@ const BridgePlatformPage = () => {
|
||||
selectedDiv={selectedDiv}
|
||||
viewSubTitle={false}
|
||||
sectionTitleSuffix={COMMENT_TABLE_TITLE}
|
||||
widthClassName="w-[1200px]"
|
||||
/>;
|
||||
};
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import CustomerSatisfactionDetail from "@/components/kfpa/CustomerSatisfactionDe
|
||||
const ConsultingPage = () => {
|
||||
const { selectedDiv } = useLayoutFilter();
|
||||
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} />;
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} widthClassName="w-[1200px]"/>;
|
||||
};
|
||||
|
||||
export default ConsultingPage;
|
||||
|
||||
@@ -7,7 +7,7 @@ import CustomerSatisfactionDetail from "@/components/kfpa/CustomerSatisfactionDe
|
||||
const FireInvestigationPage = () => {
|
||||
const { selectedDiv } = useLayoutFilter();
|
||||
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} />;
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} widthClassName="w-[1200px]"/>;
|
||||
};
|
||||
|
||||
export default FireInvestigationPage;
|
||||
|
||||
@@ -7,7 +7,7 @@ import CustomerSatisfactionDetail from "@/components/kfpa/CustomerSatisfactionDe
|
||||
const InsuranceOperationsPage = () => {
|
||||
const { selectedDiv } = useLayoutFilter();
|
||||
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} />;
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} widthClassName="w-[1200px]"/>;
|
||||
};
|
||||
|
||||
export default InsuranceOperationsPage;
|
||||
|
||||
@@ -7,7 +7,12 @@ import CustomerSatisfactionDetail from "@/components/kfpa/CustomerSatisfactionDe
|
||||
const SafetyInspectionPage = () => {
|
||||
const { selectedDiv } = useLayoutFilter();
|
||||
|
||||
return selectedDiv === "-1" ? <CustomerSatisfactionTotal /> : <CustomerSatisfactionDetail selectedDiv={selectedDiv} />;
|
||||
return selectedDiv === "-1"
|
||||
? <CustomerSatisfactionTotal />
|
||||
: <CustomerSatisfactionDetail
|
||||
selectedDiv={selectedDiv}
|
||||
//widthClassName="w-[1553px]"
|
||||
/>;
|
||||
};
|
||||
|
||||
export default SafetyInspectionPage;
|
||||
|
||||
@@ -14,6 +14,7 @@ const UcisPage = () => {
|
||||
selectedDiv={selectedDiv}
|
||||
viewSubTitle={false}
|
||||
sectionTitleSuffix={COMMENT_TABLE_TITLE}
|
||||
widthClassName="w-[1200px]"
|
||||
/>;
|
||||
};
|
||||
|
||||
|
||||
@@ -603,10 +603,11 @@
|
||||
|
||||
.kfpa-detail-table {
|
||||
--kfpa-detail-table-head-height: 56px;
|
||||
--kfpa-detail-table-row-height: 56px;
|
||||
--kfpa-detail-comment-table-row-height: 112px;
|
||||
}
|
||||
|
||||
.kfpa-detail-rank-table {
|
||||
--kfpa-detail-table-row-height: 56px;
|
||||
min-width: 285px !important;
|
||||
}
|
||||
|
||||
@@ -622,6 +623,7 @@
|
||||
}
|
||||
|
||||
.kfpa-detail-comment-table tbody td {
|
||||
height: var(--kfpa-detail-comment-table-row-height);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
9
src/components/kfpa/CommentNote.tsx
Normal file
9
src/components/kfpa/CommentNote.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
const CommentNote = () => {
|
||||
return (
|
||||
<p className="mt-3 content-text-base">
|
||||
▶ : 완료 / ▷ : 진행 중
|
||||
</p>
|
||||
);
|
||||
};
|
||||
|
||||
export default CommentNote;
|
||||
@@ -7,12 +7,16 @@ const CsiFormulaNote = () => {
|
||||
</p>
|
||||
<p className="mt-3 content-text-base">
|
||||
※ 주요 고객 대상 : 안전점검(특수건물 관계자)
|
||||
/ UCIS(사원사 등) / Bridge 플랫폼(사원사, 일반회원 등)
|
||||
/ 방재컨설팅(발주처 관계자 약 20명) / 보험업무(보험 계약 담당자 약 300명)
|
||||
/ 화재조사(사원사 손해사정부서 총 11명)
|
||||
/ UCIS(사원사 등)
|
||||
/ Bridge 플랫폼(사원사, 일반회원 등)
|
||||
/ 방재컨설팅(발주처 관계자 약 20명)
|
||||
/ 보험업무(보험 계약 담당자 약 300명)
|
||||
/ 화재조사(사원사 손해사정부서 총 11명)
|
||||
</p>
|
||||
<p className="mt-3 content-text-base">
|
||||
※ 방재컨설팅 고객만족도 조사는 각 용역이 완료되는 하반기에 진행 예정임.
|
||||
※ 응답 데이터 업데이트 주기 : 안전점검(매일 실시간)
|
||||
/ UCIS, Bridge플랫폼, 보험업무, 화재조사(매월 말)
|
||||
/ 방재컨설팅(각 용역이 완료되는 하반기에 진행 예정)
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -4,6 +4,7 @@ import DataTable from "@/components/table/DataTable";
|
||||
import type { DataColumn } from "@/components/table/types";
|
||||
import { cn } from "@/lib/utils";
|
||||
import type { CommentColumn, CommentField, CommentValue, DashboardCommentRowConfig } from "@/types/kfpa";
|
||||
import CommentNote from "@/components/kfpa/CommentNote";
|
||||
|
||||
type CommentTableRow = DashboardCommentRowConfig & Record<string, unknown>;
|
||||
|
||||
@@ -66,7 +67,7 @@ const CustomerSatisfactionCommentTable = ({
|
||||
if (!isEditing) {
|
||||
return (
|
||||
<div className={cn(
|
||||
"min-h-24 whitespace-pre-wrap text-left",
|
||||
"h-24 whitespace-pre-wrap text-left",
|
||||
"leading-[1.5] content-text-lg"
|
||||
)}>
|
||||
{value || "-"}
|
||||
@@ -77,7 +78,7 @@ const CustomerSatisfactionCommentTable = ({
|
||||
return (
|
||||
<textarea
|
||||
className={cn(
|
||||
"min-h-28 w-full resize-y border border-gray-300 bg-background p-2",
|
||||
"h-24 w-full resize-y border border-gray-300 bg-background p-2",
|
||||
"leading-[1.5] content-text-lg outline-none focus:border-primary"
|
||||
)}
|
||||
value={value}
|
||||
@@ -89,13 +90,16 @@ const CustomerSatisfactionCommentTable = ({
|
||||
];
|
||||
|
||||
return (
|
||||
<DataTable
|
||||
columns={tableColumns}
|
||||
rows={tableRows}
|
||||
tableClassName="kfpa-table kfpa-detail-table kfpa-detail-comment-table"
|
||||
subheadRowClassName="bg-red-50"
|
||||
wrapperClassName="w-full"
|
||||
/>
|
||||
<>
|
||||
<DataTable
|
||||
columns={tableColumns}
|
||||
rows={tableRows}
|
||||
tableClassName="kfpa-table kfpa-detail-table kfpa-detail-comment-table"
|
||||
subheadRowClassName="bg-red-50"
|
||||
wrapperClassName="w-full"
|
||||
/>
|
||||
<CommentNote/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -36,12 +36,14 @@ export type CustomerSatisfactionDetailProps = {
|
||||
selectedDiv: string;
|
||||
sectionTitleSuffix?: string;
|
||||
viewSubTitle?: boolean;
|
||||
widthClassName?: string;
|
||||
};
|
||||
|
||||
const CustomerSatisfactionDetail = ({
|
||||
selectedDiv,
|
||||
sectionTitleSuffix,
|
||||
viewSubTitle = true,
|
||||
widthClassName = "w-full",
|
||||
}: CustomerSatisfactionDetailProps) => {
|
||||
const searchParams = useSearchParams();
|
||||
const queryClient = useQueryClient();
|
||||
@@ -122,7 +124,7 @@ const CustomerSatisfactionDetail = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full">
|
||||
<div className={widthClassName}>
|
||||
<SectionTitle title={`${getSideMenuLabel(categoryKey, selectedDiv)} ${sectionTitleSuffix ?? '상세 내역'}`} />
|
||||
|
||||
<div className="mt-4 flex w-full items-start gap-16 overflow-x-auto pb-2">
|
||||
|
||||
@@ -236,7 +236,7 @@ const CustomerSatisfactionTotal = () => {
|
||||
}}
|
||||
yAxis={{
|
||||
type: "value",
|
||||
min: 4,
|
||||
min: 3.95,
|
||||
max: 5,
|
||||
axisLabel: { show: false },
|
||||
axisTick: { show: false },
|
||||
|
||||
@@ -258,9 +258,9 @@ export const DASHBOARD_METRICS_BY_CATEGORY = {
|
||||
} as const;
|
||||
|
||||
export const DASHBOARD_COMMENT_COLUMNS = [
|
||||
{ key: "performance25", label: "25년 성과" },
|
||||
{ key: "plan26", label: "26년 업무계획" },
|
||||
{ key: "performance26", label: "26년 업무계획 진행률 및 성과" },
|
||||
{ key: "performance25", label: "25년 고객 관점 주요 성과" },
|
||||
//{ key: "plan26", label: "26년 업무계획" },
|
||||
{ key: "performance26", label: "26년 고객 관점 주요 성과" },
|
||||
] as const;
|
||||
|
||||
const DEFAULT_DASHBOARD_COMMENT_ROWS = [
|
||||
|
||||
@@ -94,8 +94,7 @@ export const getSelectedDetail = (data: Record<string, DivDetailData> | undefine
|
||||
};
|
||||
|
||||
export const getCommentColumns = (commentValues?: Record<string, CommentValue>): CommentColumn[] => {
|
||||
const keys = Object.keys(commentValues ?? {});
|
||||
const selectedKeys = keys.length > 0 ? keys : DASHBOARD_COMMENT_COLUMNS.map((column) => column.key);
|
||||
const selectedKeys = DASHBOARD_COMMENT_COLUMNS.map((column) => column.key);
|
||||
|
||||
return selectedKeys.map((key, index) => ({
|
||||
key,
|
||||
|
||||
Reference in New Issue
Block a user