diff --git a/src/components/Discover/Map/SidebarState.vue b/src/components/Discover/Map/SidebarState.vue index fd8ac4d..844e243 100644 --- a/src/components/Discover/Map/SidebarState.vue +++ b/src/components/Discover/Map/SidebarState.vue @@ -61,13 +61,54 @@

Case Duration

- - + + + + + + + + + + + + + + + + + + + + + + + +
+ + + {{ timeLabel(stats.case_duration.min)[1] }} + + {{ timeLabel(stats.case_duration.min)[2] }} +
+ + + {{ timeLabel(stats.case_duration.average)[1] }} + + {{ timeLabel(stats.case_duration.average)[2] }} +
+ + + {{ timeLabel(stats.case_duration.median)[1] }} + + {{ timeLabel(stats.case_duration.median)[2] }} +
+ + + {{ timeLabel(stats.case_duration.max)[1] }} + + {{ timeLabel(stats.case_duration.max)[2] }} +
@@ -203,7 +244,8 @@ export default { * @param {number} time use timeLabel.js */ timeLabel(time){ - return getTimeLabel(time); + let result = getTimeLabel(time).match(/(\d+)\s*([a-zA-Z]+)/); + return result; }, /** * @param {number} time use moment @@ -255,4 +297,16 @@ export default { :deep(.p-tabview-panel) { @apply animate-fadein } +/* .caseDurationTable td:first-child { + @apply pr-1 +} */ +.caseDurationTable td { + @apply scroll-pb-12 +} +.caseDurationTable td:nth-child(2) { + @apply text-right +} +.caseDurationTable td:last-child { + @apply pl-2 +}