-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from webitel/feature/cases__card_deadlines
Feature/cases card deadlines
- Loading branch information
Showing
10 changed files
with
323 additions
and
122 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ const data = { | |
id: "u1", | ||
name: "User One" | ||
}, | ||
createdAt: "2024-11-01T10:00:00Z", | ||
createdAt: "1734950841253", | ||
updatedBy: { | ||
id: "u2", | ||
name: "User Two" | ||
|
@@ -30,8 +30,8 @@ const data = { | |
subject: "Network Issue", | ||
description: "The network is experiencing downtime.", | ||
contactInfo: "[email protected]", | ||
plannedReactionAt: "2024-11-01T12:00:00Z", | ||
plannedResolveAt: "2024-11-03T12:00:00Z", | ||
plannedReactionAt: "1734961322138", | ||
plannedResolveAt: "1734961322138", | ||
status: { | ||
id: "s1", | ||
name: "Open" | ||
|
@@ -84,42 +84,40 @@ const data = { | |
ratingComment: "Issue resolved promptly." | ||
}, | ||
timing: { | ||
resolvedAt: "2024-11-03T10:00:00Z", | ||
reactedAt: "2024-11-01T10:30:00Z", | ||
differenceInReaction: "30m", | ||
differenceInResolve: "2d" | ||
}, | ||
slaCondition: [ | ||
{ | ||
id: "sla1", | ||
name: "Critical SLA", | ||
priorities: [ | ||
{ | ||
id: "p1", | ||
name: "High" | ||
} | ||
], | ||
reactionTime: { | ||
hours: 1, | ||
minutes: 0 | ||
}, | ||
resolutionTime: { | ||
hours: 48, | ||
minutes: 0 | ||
}, | ||
slaId: "slaId1", | ||
createdAt: "2024-10-01T10:00:00Z", | ||
updatedAt: "2024-10-01T12:00:00Z", | ||
createdBy: { | ||
id: "u5", | ||
name: "SLA Manager" | ||
}, | ||
updatedBy: { | ||
id: "u6", | ||
name: "SLA Admin" | ||
resolvedAt: "1734961389622", | ||
reactedAt: "1734950841253", | ||
differenceInReaction: "1800", | ||
differenceInResolve: "-172800000" | ||
}, | ||
slaCondition: { | ||
id: "sla1", | ||
name: "Critical SLA", | ||
priorities: [ | ||
{ | ||
id: "p1", | ||
name: "High" | ||
} | ||
], | ||
reactionTime: { | ||
hours: 1, | ||
minutes: 0 | ||
}, | ||
resolutionTime: { | ||
hours: 48, | ||
minutes: 0 | ||
}, | ||
slaId: "slaId1", | ||
createdAt: "2024-10-01T10:00:00Z", | ||
updatedAt: "2024-10-01T12:00:00Z", | ||
createdBy: { | ||
id: "u5", | ||
name: "SLA Manager" | ||
}, | ||
updatedBy: { | ||
id: "u6", | ||
name: "SLA Admin" | ||
} | ||
], | ||
}, | ||
service: { | ||
id: "subservice2", | ||
name: "Network Support" | ||
|
@@ -224,8 +222,8 @@ const data = { | |
subject: "Login Issue", | ||
description: "Users are unable to log in to the system.", | ||
contactInfo: "[email protected]", | ||
plannedReactionAt: "2024-11-05T12:00:00Z", | ||
plannedResolveAt: "2024-11-07T12:00:00Z", | ||
plannedReactionAt: "1734961322138", | ||
plannedResolveAt: "1734961322138", | ||
status: { | ||
id: "s2", | ||
name: "In Progress" | ||
|
@@ -278,42 +276,40 @@ const data = { | |
ratingComment: "Issue is being addressed." | ||
}, | ||
timing: { | ||
resolvedAt: "2024-11-07T10:00:00Z", | ||
reactedAt: "2024-11-05T11:30:00Z", | ||
differenceInReaction: "30m", | ||
differenceInResolve: "2d" | ||
}, | ||
slaCondition: [ | ||
{ | ||
id: "sla2", | ||
name: "Standard SLA", | ||
priorities: [ | ||
{ | ||
id: "p2", | ||
name: "Medium" | ||
} | ||
], | ||
reactionTime: { | ||
hours: 2, | ||
minutes: 0 | ||
}, | ||
resolutionTime: { | ||
hours: 72, | ||
minutes: 0 | ||
}, | ||
slaId: "slaId2", | ||
createdAt: "2024-10-05T10:00:00Z", | ||
updatedAt: "2024-10-05T12:00:00Z", | ||
createdBy: { | ||
id: "u5", | ||
name: "SLA Manager" | ||
}, | ||
updatedBy: { | ||
id: "u6", | ||
name: "SLA Admin" | ||
resolvedAt: "1734950841253", | ||
reactedAt: "1734950841253", | ||
differenceInReaction: "1800", | ||
differenceInResolve: "172800000" | ||
}, | ||
slaCondition: { | ||
id: "sla2", | ||
name: "Standard SLA", | ||
priorities: [ | ||
{ | ||
id: "p2", | ||
name: "Medium" | ||
} | ||
], | ||
reactionTime: { | ||
hours: 2, | ||
minutes: 0 | ||
}, | ||
resolutionTime: { | ||
hours: 72, | ||
minutes: 0 | ||
}, | ||
slaId: "slaId2", | ||
createdAt: "2024-10-05T10:00:00Z", | ||
updatedAt: "2024-10-05T12:00:00Z", | ||
createdBy: { | ||
id: "u5", | ||
name: "SLA Manager" | ||
}, | ||
updatedBy: { | ||
id: "u6", | ||
name: "SLA Admin" | ||
} | ||
], | ||
}, | ||
service: { | ||
id: "srv2", | ||
name: "Login Support" | ||
|
@@ -405,11 +401,11 @@ const fieldsToSend = [ | |
'name', | ||
'subject', | ||
'description', | ||
'contact_info', | ||
'planned_reaction_at', | ||
'planned_resolve_at', | ||
'contactInfo', | ||
'plannedReactionAt', | ||
'plannedResolveAt', | ||
'status_lookup', | ||
'close_reason_lookup', | ||
'closeReasonLookup', | ||
'author', | ||
'assignee', | ||
'reporter', | ||
|
@@ -421,13 +417,13 @@ const fieldsToSend = [ | |
'close', | ||
'rate', | ||
'timing', | ||
'sla_condition', | ||
'slaCondition', | ||
'sla', | ||
'service', | ||
'comments', | ||
'related', | ||
'links', | ||
'status_condition' | ||
'statusCondition' | ||
]; | ||
|
||
|
||
|
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
70 changes: 70 additions & 0 deletions
70
src/modules/cases/modules/deadlines/components/case-deadline-list.vue
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,70 @@ | ||
<template> | ||
<div class="case-deadline-list"> | ||
<span class="case-deadline-list__title">{{ t('cases.deadlines') }}</span> | ||
<div class="case-deadline-list__wrapper"> | ||
<case-deadline | ||
:time="itemInstance?.createdAt" | ||
:label="t('cases.createdAt')" | ||
/> | ||
<case-deadline | ||
:time-difference="itemInstance?.timing?.differenceInReaction" | ||
:time="itemInstance?.plannedReactionAt" | ||
:label="t('cases.reactionTime')" | ||
/> | ||
<case-deadline | ||
:time="itemInstance?.timing?.reactedAt" | ||
:label="t('cases.actualReactionTime')" | ||
/> | ||
|
||
<case-deadline | ||
:time-difference="itemInstance?.timing?.differenceInResolve" | ||
:time="itemInstance?.plannedResolveAt" | ||
:label="t('cases.resolutionTime')" | ||
/> | ||
|
||
<case-deadline | ||
:time="itemInstance?.timing?.resolvedAt" | ||
:label="t('cases.actualResolutionTime')" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { useCardStore } from '@webitel/ui-sdk/store'; | ||
import { useI18n } from 'vue-i18n'; | ||
import CaseDeadline from './case-deadline.vue'; | ||
const { t } = useI18n(); | ||
const props = defineProps({ | ||
namespace: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
const { | ||
id, | ||
itemInstance, | ||
setItemProp, | ||
} = useCardStore(props.namespace); | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.case-deadline-list { | ||
width: 100%; | ||
&__title { | ||
display: block; | ||
@extend %typo-heading-4; | ||
padding: var(--spacing-xs); | ||
} | ||
&__wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--spacing-xs); | ||
gap: var(--spacing-xs); | ||
} | ||
} | ||
</style> |
Oops, something went wrong.