260609_01_ENH: 메인 페이지 안내문 /기준으로 앞뒤 띄어쓰기 1개씩 추가 및 안내문 1줄 추가

Comment 테이블에서 plan26 제거 및 label 수정, 테이블 width 조정, 안내문 추가
전체 현황 외 차트 테이블의 차트 시작 위치 수정
This commit is contained in:
2026-06-09 16:48:19 +09:00
parent 24d917ac7b
commit 5e53663b24
14 changed files with 52 additions and 25 deletions

View File

@@ -14,6 +14,7 @@ const BridgePlatformPage = () => {
selectedDiv={selectedDiv}
viewSubTitle={false}
sectionTitleSuffix={COMMENT_TABLE_TITLE}
widthClassName="w-[1200px]"
/>;
};

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -14,6 +14,7 @@ const UcisPage = () => {
selectedDiv={selectedDiv}
viewSubTitle={false}
sectionTitleSuffix={COMMENT_TABLE_TITLE}
widthClassName="w-[1200px]"
/>;
};

View File

@@ -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;
}

View File

@@ -0,0 +1,9 @@
const CommentNote = () => {
return (
<p className="mt-3 content-text-base">
▶ : 완료&nbsp;&nbsp;/&nbsp;&nbsp;▷ : 진행 중
</p>
);
};
export default CommentNote;

View File

@@ -7,12 +7,16 @@ const CsiFormulaNote = () => {
</p>
<p className="mt-3 content-text-base">
※ 주요 고객 대상 : 안전점검(특수건물 관계자)
/ UCIS(사원사 등) / Bridge 플랫폼(사원사, 일반회원 등)
/ 방재컨설팅(발주처 관계자 약 20명) / 보험업무(보험 계약 담당자 약 300명)
/ 화재조사(사원사 손해사정부서 총 11명)
&nbsp;/&nbsp;&nbsp;UCIS(사원사 등)
&nbsp;/&nbsp;&nbsp;Bridge 플랫폼(사원사, 일반회원 등)
&nbsp;/&nbsp;&nbsp;방재컨설팅(발주처 관계자 약 20명)
&nbsp;/&nbsp;&nbsp;보험업무(보험 계약 담당자 약 300명)
&nbsp;/&nbsp;&nbsp;화재조사(사원사 손해사정부서 총 11명)
</p>
<p className="mt-3 content-text-base">
※ 방재컨설팅 고객만족도 조사는 각 용역이 완료되는 하반기에 진행 예정임.
※ 응답 데이터 업데이트 주기 : 안전점검(매일 실시간)
&nbsp;/&nbsp;&nbsp;UCIS, Bridge플랫폼, 보험업무, 화재조사(매월 말)
&nbsp;/&nbsp;&nbsp;방재컨설팅(각 용역이 완료되는 하반기에 진행 예정)
</p>
</>
);

View File

@@ -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/>
</>
);
};

View File

@@ -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">

View File

@@ -236,7 +236,7 @@ const CustomerSatisfactionTotal = () => {
}}
yAxis={{
type: "value",
min: 4,
min: 3.95,
max: 5,
axisLabel: { show: false },
axisTick: { show: false },

View File

@@ -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 = [

View File

@@ -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,