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