-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
어드민 원서 상세조회 페이지 성적 테이블 개발
- Loading branch information
Showing
8 changed files
with
289 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 23 additions & 28 deletions
51
apps/admin/src/components/form/FormDetailContent/성적/교과성적/교과성적Header/교과성적Header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,34 @@ | ||
import { Column, Row, Th } from '@maru/ui'; | ||
import styled from 'styled-components'; | ||
|
||
const 교과성적Header = () => { | ||
return ( | ||
<Styled교과성적Header> | ||
<Row> | ||
<Th width={123} height={100} borderTopLeftRadius={12}> | ||
과목 | ||
<Row> | ||
<Th width={123} height={100} borderTopLeftRadius={12}> | ||
과목 | ||
</Th> | ||
<Column> | ||
<Th width={279} height={50}> | ||
2학년 | ||
</Th> | ||
<Column> | ||
<Th width={279} height={50}> | ||
2학년 | ||
</Th> | ||
<Row> | ||
<Th option="SECONDARY" width="50%" height={50}> | ||
1학기 | ||
</Th> | ||
<Th option="SECONDARY" width="50%" height={50}> | ||
2학기 | ||
</Th> | ||
</Row> | ||
</Column> | ||
<Column> | ||
<Th width={140} height={50} borderTopRightRadius={12}> | ||
3학년 | ||
</Th> | ||
<Th option="SECONDARY" width={140} height={50}> | ||
<Row> | ||
<Th option="SECONDARY" width="50%" height={50}> | ||
1학기 | ||
</Th> | ||
</Column> | ||
</Row> | ||
</Styled교과성적Header> | ||
<Th option="SECONDARY" width="50%" height={50}> | ||
2학기 | ||
</Th> | ||
</Row> | ||
</Column> | ||
<Column> | ||
<Th width={140} height={50} borderTopRightRadius={12}> | ||
3학년 | ||
</Th> | ||
<Th option="SECONDARY" width={140} height={50}> | ||
1학기 | ||
</Th> | ||
</Column> | ||
</Row> | ||
); | ||
}; | ||
|
||
export default 교과성적Header; | ||
|
||
const Styled교과성적Header = styled.div``; |
60 changes: 60 additions & 0 deletions
60
apps/admin/src/components/form/FormDetailContent/성적/봉사시간/봉사시간.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { useFormDetailQuery } from '@/services/form/queries'; | ||
import { color, font } from '@maru/theme'; | ||
import { CellInput, Column, Row, Td, Th } from '@maru/ui'; | ||
import { styled } from 'styled-components'; | ||
|
||
interface Props { | ||
id: number; | ||
} | ||
|
||
const 봉사시간 = ({ id }: Props) => { | ||
const { data: formDetailData } = useFormDetailQuery(id); | ||
|
||
return ( | ||
<Column> | ||
<Row> | ||
<Th borderTopLeftRadius={12} width={162} height={56}> | ||
학년 | ||
</Th> | ||
<Th borderTopRightRadius={12} width={318} height={56}> | ||
봉사시간 | ||
</Th> | ||
</Row> | ||
<Row> | ||
<Td width={162} height={56} option="SECONDARY"> | ||
1학년 | ||
</Td> | ||
<Td width={318} height={56}> | ||
<CellInput value={formDetailData?.grade.volunteerTime1} readOnly /> | ||
<Hour>시간</Hour> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td width={162} height={56} option="SECONDARY"> | ||
2학년 | ||
</Td> | ||
<Td width={318} height={56}> | ||
<CellInput value={formDetailData?.grade.volunteerTime2} readOnly /> | ||
<Hour>시간</Hour> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td borderBottomLeftRadius={12} width={162} height={56} option="SECONDARY"> | ||
3학년 | ||
</Td> | ||
<Td borderBottomRightRadius={12} width={318} height={56}> | ||
<CellInput value={formDetailData?.grade.volunteerTime3} readOnly /> | ||
<Hour>시간</Hour> | ||
</Td> | ||
</Row> | ||
</Column> | ||
); | ||
}; | ||
|
||
export default 봉사시간; | ||
|
||
const Hour = styled.p` | ||
${font.p2} | ||
color: ${color.gray900}; | ||
margin-left: 8px; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
apps/admin/src/components/form/FormDetailContent/성적/자격증/자격증.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
import { useFormDetailQuery } from '@/services/form/queries'; | ||
import { CheckBox, Column, Row, Td, Th } from '@maru/ui'; | ||
|
||
interface Props { | ||
id: number; | ||
} | ||
|
||
const 자격증 = ({ id }: Props) => { | ||
const { data: formDetailData } = useFormDetailQuery(id); | ||
|
||
const is기능사included = | ||
formDetailData?.grade.certificateList.includes('CRAFTSMAN_INFORMATION_PROCESSING') || | ||
formDetailData?.grade.certificateList.includes( | ||
'CRAFTSMAN_INFORMATION_EQUIPMENT_OPERATION', | ||
) || | ||
formDetailData?.grade.certificateList.includes('CRAFTSMAN_COMPUTER'); | ||
|
||
return ( | ||
<Column> | ||
<Row> | ||
<Th width={416} height={56} borderTopLeftRadius={12}> | ||
자격증명 | ||
</Th> | ||
<Th width={200} height={56}> | ||
시행기관 | ||
</Th> | ||
<Th width={120} height={56}> | ||
반영점수 | ||
</Th> | ||
<Th width={80} height={56} borderTopRightRadius={12}> | ||
선택 | ||
</Th> | ||
</Row> | ||
<Row> | ||
<Td width={416} height={56}> | ||
정보처리기능사, 정보기기운용기능사, 전자계산기기능사 | ||
</Td> | ||
<Td width={200} height={56}> | ||
한국산업인력공단 | ||
</Td> | ||
<Td width={120} height={56}> | ||
4점 | ||
</Td> | ||
<Td width={80} height={56}> | ||
<CheckBox checked={is기능사included} /> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td width={416} height={168} borderBottomLeftRadius={12}> | ||
컴퓨터활용능력 | ||
</Td> | ||
<Td width={200} height={168}> | ||
한국산업인력공단 | ||
</Td> | ||
<Column> | ||
<Row> | ||
<Td width={120} height={56}> | ||
1급(3점) | ||
</Td> | ||
<Td width={80} height={56}> | ||
<CheckBox | ||
checked={formDetailData?.grade.certificateList.includes( | ||
'COMPUTER_SPECIALIST_LEVEL_1', | ||
)} | ||
/> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td width={120} height={56}> | ||
2급(2점) | ||
</Td> | ||
<Td width={80} height={56}> | ||
<CheckBox | ||
checked={formDetailData?.grade.certificateList.includes( | ||
'COMPUTER_SPECIALIST_LEVEL_2', | ||
)} | ||
/> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td width={120} height={56}> | ||
3급(1점) | ||
</Td> | ||
<Td width={80} height={56} borderBottomRightRadius={12}> | ||
<CheckBox | ||
checked={formDetailData?.grade.certificateList.includes( | ||
'COMPUTER_SPECIALIST_LEVEL_3', | ||
)} | ||
/> | ||
</Td> | ||
</Row> | ||
</Column> | ||
</Row> | ||
</Column> | ||
); | ||
}; | ||
|
||
export default 자격증; |
94 changes: 94 additions & 0 deletions
94
apps/admin/src/components/form/FormDetailContent/성적/출결상황/출결상황.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { useFormDetailQuery } from '@/services/form/queries'; | ||
import { CellInput, Column, Row, Td, Th } from '@maru/ui'; | ||
|
||
interface Props { | ||
id: number; | ||
} | ||
|
||
const 출결상황 = ({ id }: Props) => { | ||
const { data: formDetailData } = useFormDetailQuery(id); | ||
|
||
return ( | ||
<Column> | ||
<Row> | ||
<Th width={140} height={56} borderTopLeftRadius={12}> | ||
학년 | ||
</Th> | ||
<Th width={140} height={56}> | ||
미인정 결석 | ||
</Th> | ||
<Th width={140} height={56}> | ||
미인정 지각 | ||
</Th> | ||
<Th width={140} height={56}> | ||
미인정 조퇴 | ||
</Th> | ||
<Th width={140} height={56} borderTopRightRadius={12}> | ||
미인정 결과 | ||
</Th> | ||
</Row> | ||
<Row> | ||
<Td option="SECONDARY" width={140} height={56}> | ||
1학년 | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance1.absenceCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance1.latenessCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance1.earlyLeaveCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput | ||
value={formDetailData?.grade.attendance1.classAbsenceCount} | ||
readOnly | ||
/> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td option="SECONDARY" width={140} height={56}> | ||
2학년 | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance2.absenceCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance2.latenessCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance2.earlyLeaveCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput | ||
value={formDetailData?.grade.attendance2.classAbsenceCount} | ||
readOnly | ||
/> | ||
</Td> | ||
</Row> | ||
<Row> | ||
<Td option="SECONDARY" width={140} height={56} borderBottomLeftRadius={12}> | ||
3학년 | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance3.absenceCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance3.latenessCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput value={formDetailData?.grade.attendance3.earlyLeaveCount} readOnly /> | ||
</Td> | ||
<Td width={140} height={56}> | ||
<CellInput | ||
value={formDetailData?.grade.attendance3.classAbsenceCount} | ||
readOnly | ||
/> | ||
</Td> | ||
</Row> | ||
</Column> | ||
); | ||
}; | ||
|
||
export default 출결상황; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters