refactor: handle status canceled
This commit is contained in:
parent
718a28642d
commit
3f835bd2f0
1 changed files with 12 additions and 0 deletions
|
|
@ -116,6 +116,9 @@ defineProps<{
|
||||||
$q.screen.gt.xs &&
|
$q.screen.gt.xs &&
|
||||||
(status?.workStatus === RequestWorkStatus.Ended ||
|
(status?.workStatus === RequestWorkStatus.Ended ||
|
||||||
status?.workStatus === RequestWorkStatus.Completed),
|
status?.workStatus === RequestWorkStatus.Completed),
|
||||||
|
canceled:
|
||||||
|
$q.screen.gt.xs &&
|
||||||
|
status?.workStatus === RequestWorkStatus.Canceled,
|
||||||
}"
|
}"
|
||||||
:style="
|
:style="
|
||||||
$q.screen.xs &&
|
$q.screen.xs &&
|
||||||
|
|
@ -170,6 +173,9 @@ defineProps<{
|
||||||
complete:
|
complete:
|
||||||
status?.workStatus === RequestWorkStatus.Ended ||
|
status?.workStatus === RequestWorkStatus.Ended ||
|
||||||
status?.workStatus === RequestWorkStatus.Completed,
|
status?.workStatus === RequestWorkStatus.Completed,
|
||||||
|
canceled:
|
||||||
|
$q.screen.gt.xs &&
|
||||||
|
status?.workStatus === RequestWorkStatus.Canceled,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
|
|
@ -240,6 +246,9 @@ defineProps<{
|
||||||
&.complete {
|
&.complete {
|
||||||
--_color: var(--green-5-hsl);
|
--_color: var(--green-5-hsl);
|
||||||
}
|
}
|
||||||
|
&.canceled {
|
||||||
|
--_color: var(--red-5-hsl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-status-text {
|
.product-status-text {
|
||||||
|
|
@ -257,5 +266,8 @@ defineProps<{
|
||||||
&.complete {
|
&.complete {
|
||||||
--_color: var(--green-5-hsl);
|
--_color: var(--green-5-hsl);
|
||||||
}
|
}
|
||||||
|
&.canceled {
|
||||||
|
--_color: var(--red-5-hsl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue