From a0b4e4ee7f7f990c7c029fb0bf8dafc980522fa1 Mon Sep 17 00:00:00 2001 From: JunhoYeo <32605822+JunhoYeo@users.noreply.github.com> Date: Sun, 19 May 2019 16:05:01 +0900 Subject: [PATCH 1/3] feat(service): add request status page --- app/pages/paths/management/ManageRequest.vue | 180 +++++++++++++++++++ app/router/routers/management.js | 9 + 2 files changed, 189 insertions(+) create mode 100644 app/pages/paths/management/ManageRequest.vue diff --git a/app/pages/paths/management/ManageRequest.vue b/app/pages/paths/management/ManageRequest.vue new file mode 100644 index 00000000..31f8fda3 --- /dev/null +++ b/app/pages/paths/management/ManageRequest.vue @@ -0,0 +1,180 @@ + + + + + diff --git a/app/router/routers/management.js b/app/router/routers/management.js index 49caf7a4..e42272ba 100644 --- a/app/router/routers/management.js +++ b/app/router/routers/management.js @@ -2,6 +2,7 @@ import withPrefix from '@/src/util/path-with-prefix' const ManageWrapper = () => import('@/pages/paths/management/ManageWrapper.vue') const ManageMain = () => import('@/pages/paths/management/ManageMain.vue') +const ManageRequest = () => import('@/pages/paths/management/ManageRequest.vue') const ManageAssignment = () => import('@/pages/paths/management/ManageAssignment.vue') const ManageAfterschool = () => import('@/pages/paths/management/ManageAfterschool.vue') const ManageCounsel = () => import('@/pages/paths/management/ManageCounsel.vue') @@ -27,6 +28,14 @@ export default [ path: '/', component: ManageWrapper, children: [ + { + path: 'request', + name: 'management/request', + component: ManageRequest, + meta: { + title: '디미고인 > 신청 현황' + } + }, { path: 'assignment', name: 'management/assignment', From dd85bc95ba9f1f47a2494efd4bc36ecc9468d2d4 Mon Sep 17 00:00:00 2001 From: JunhoYeo <32605822+JunhoYeo@users.noreply.github.com> Date: Sun, 19 May 2019 22:30:26 +0900 Subject: [PATCH 2/3] feat: add DimiProgressbar component for snack/ingang status --- app/dimiru/components/DimiProgressbar.vue | 100 +++++++++++++++++++ app/dimiru/components/index.js | 1 + app/pages/paths/management/ManageRequest.vue | 93 ++++++++++++----- 3 files changed, 171 insertions(+), 23 deletions(-) create mode 100644 app/dimiru/components/DimiProgressbar.vue diff --git a/app/dimiru/components/DimiProgressbar.vue b/app/dimiru/components/DimiProgressbar.vue new file mode 100644 index 00000000..09ef9664 --- /dev/null +++ b/app/dimiru/components/DimiProgressbar.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/app/dimiru/components/index.js b/app/dimiru/components/index.js index db7c5eb6..ac8ac465 100644 --- a/app/dimiru/components/index.js +++ b/app/dimiru/components/index.js @@ -16,5 +16,6 @@ export { default as DimiMenu } from './DimiMenu.vue' export { default as DimiMenuItem } from './DimiMenuItem.vue' export { default as DimiModal } from './DimiModal.vue' export { default as DimiNavbar } from './DimiNavbar.vue' +export { default as DimiProgressbar } from './DimiProgressbar.vue' export { default as DimiTab } from './DimiTab.vue' export { default as DimiLongInput } from './DimiLongInput.vue' diff --git a/app/pages/paths/management/ManageRequest.vue b/app/pages/paths/management/ManageRequest.vue index 31f8fda3..6b48821f 100644 --- a/app/pages/paths/management/ManageRequest.vue +++ b/app/pages/paths/management/ManageRequest.vue @@ -28,13 +28,21 @@ export default { {{ month }}월 간식 신청 현황
-
- 총인원 620명 중
- 0명 신청 -
-
- 0% +
+
+ 총인원 620명 중
+ 150명 신청 +
+
+ 24% +
+
@@ -67,30 +75,46 @@ export default {
-
+

{{ month }}월 {{ today }}일 인강실 사용 신청 현황

-
- 1타임 -
-
- 30석 중 24석 신청 +
+
+ 1타임 +
+
+ 30석 중 24석 신청 +
+
-
- 2타임 -
-
- 2타임 30석 중 12석 신청 +
+
+ 2타임 +
+
+ 30석 중 12석 신청 +
+
-
+

{{ month }}월 2주차 잔류 신청 현황

@@ -137,7 +161,13 @@ export default { &__content { display: flex; flex-direction: column; - padding-top: 1.5em; + margin-top: 1.5em; + } + + &__field { + display: flex; + flex-direction: row; + justify-content: space-between; line-height: 1.8; } @@ -151,10 +181,9 @@ export default { display: flex; } - &__snack &__content { - @include from($tablet) { - flex-direction: row; - justify-content: space-between; + &__snack &__field { + @include until($tablet) { + flex-direction: column; } } @@ -164,6 +193,14 @@ export default { &__ingang { display: flex; + flex-direction: row; + align-items: flex-end; + justify-content: space-between; + } + + &__ingang--field { + display: flex; + width: 50%; flex-direction: column; } @@ -177,4 +214,14 @@ export default { font-weight: $font-weight-bold; } } + +.progress.snack { + display: flex; + margin-top: 1em; +} + +.progress.ingang { + display: flex; + padding-left: 0.5em; +} From 9fe5a35c88f04f2c25e45cd6966e7e496a45397c Mon Sep 17 00:00:00 2001 From: JunhoYeo <32605822+JunhoYeo@users.noreply.github.com> Date: Mon, 20 May 2019 12:56:55 +0900 Subject: [PATCH 3/3] feat: add DimiBarChart component for afterschool status --- app/dimiru/components/DimiBarChart.vue | 99 +++++++++++++++++ app/dimiru/components/index.js | 4 +- app/pages/paths/management/ManageRequest.vue | 110 ++++++++++++++++++- 3 files changed, 205 insertions(+), 8 deletions(-) create mode 100644 app/dimiru/components/DimiBarChart.vue diff --git a/app/dimiru/components/DimiBarChart.vue b/app/dimiru/components/DimiBarChart.vue new file mode 100644 index 00000000..538512fd --- /dev/null +++ b/app/dimiru/components/DimiBarChart.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/app/dimiru/components/index.js b/app/dimiru/components/index.js index ac8ac465..f3426615 100644 --- a/app/dimiru/components/index.js +++ b/app/dimiru/components/index.js @@ -1,7 +1,7 @@ export { default as DimiBadge } from './DimiBadge.vue' -export { default as DimiBadgeGroup } from './DimiBadgeGroup.vue' -export { default as DimiButton } from './DimiButton.vue' export { default as DimiButtonGroup } from './DimiButtonGroup.vue' +export { default as DimiBarChart } from './DimiBarChart.vue' +export { default as DimiButton } from './DimiButton.vue' export { default as DimiButtonRadio } from './DimiButtonRadio.vue' export { default as DimiCard } from './DimiCard.vue' export { default as DimiCheckbox } from './DimiCheckbox.vue' diff --git a/app/pages/paths/management/ManageRequest.vue b/app/pages/paths/management/ManageRequest.vue index 6b48821f..1adc848e 100644 --- a/app/pages/paths/management/ManageRequest.vue +++ b/app/pages/paths/management/ManageRequest.vue @@ -29,7 +29,7 @@ export default {
-
+
총인원 620명 중
150명 신청
@@ -60,7 +60,71 @@ export default { {{ year }}년 상반기 방과 후 활동 신청 현황
- 차트 컴포넌트를 만들자 +
+
+ 월요일 +
+ +
+ 50%(310명) +
+
+
+
+ 화요일 +
+ +
+ 25%(155명) +
+
+
+
+ 수요일 +
+ +
+ 60%(372명) +
+
+
+
+ 목요일 +
+ +
+ 50%(310명) +
+
+
+
+ 금요일 +
+ +
+ 80%(496명) +
+
@@ -85,7 +149,7 @@ export default {
1타임
-
+
30석 중 24석 신청
@@ -101,7 +165,7 @@ export default {
2타임
-
+
30석 중 12석 신청
@@ -171,13 +235,13 @@ export default { line-height: 1.8; } - &__percent { + &__snack &__percent { color: $orange; font-size: 48px; font-weight: $font-weight-regular; } - &__status { + &__snack &__status { display: flex; } @@ -191,6 +255,35 @@ export default { line-height: normal; } + &__afterschool &__title { + margin-bottom: 0.7em; + } + + &__afterschool &__content { + display: flex; + flex-direction: row; + justify-content: space-between; + padding-right: 2.5em; + padding-left: 2.5em; + } + + &__afterschool &__cell { + display: flex; + flex-direction: column; + align-items: center; + } + + &__afterschool &__day { + margin-bottom: 0.8em; + color: $gray-dark; + font-size: 18px; + font-weight: $font-weight-regular; + } + + &__afterschool &__percent { + margin-top: 1em; + } + &__ingang { display: flex; flex-direction: row; @@ -224,4 +317,9 @@ export default { display: flex; padding-left: 0.5em; } + +.barchart.afterschool { + display: flex; + height: 120px; +}