Refine order list layout and client card
This commit is contained in:
@@ -14,14 +14,17 @@ const statusLabel = computed(() => {
|
||||
});
|
||||
|
||||
const className = computed(() => {
|
||||
if (props.status === 'COMPLETED') return 'badge badge-success';
|
||||
if (props.status === 'CLIENT_REJECTED' || props.status === 'MANAGER_REJECTED') return 'badge badge-error';
|
||||
if (props.status === 'MANAGER_BLOCKED') return 'badge badge-warning';
|
||||
if (props.status === 'NEW' || props.status === 'MANAGER_PROCESSING') return 'badge badge-warning';
|
||||
return 'badge badge-info';
|
||||
if (props.status === 'COMPLETED') return 'bg-[#139957]';
|
||||
if (props.status === 'CLIENT_REJECTED' || props.status === 'MANAGER_REJECTED') return 'bg-[#d94b55]';
|
||||
if (props.status === 'MANAGER_BLOCKED') return 'bg-[#f1a43a]';
|
||||
if (props.status === 'NEW' || props.status === 'MANAGER_PROCESSING') return 'bg-[#f1a43a]';
|
||||
return 'bg-[#2e8de4]';
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span :class="className">{{ statusLabel }}</span>
|
||||
<span class="inline-flex items-center gap-2 text-sm font-semibold text-[#123824]">
|
||||
<span class="h-2.5 w-2.5 rounded-full" :class="className" />
|
||||
<span>{{ statusLabel }}</span>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user