|
|
@@ -8,7 +8,6 @@
|
|
|
'border-l-4 border-red-500': task.type === 'emergency',
|
|
|
'bg-green-50': task.status === 'completed'
|
|
|
}"
|
|
|
- :style="borderStyle"
|
|
|
@click="$emit('click', task.id)"
|
|
|
>
|
|
|
<view class="flex justify-between items-start mb-2">
|
|
|
@@ -85,23 +84,6 @@ const progressPercent = computed(() => {
|
|
|
}
|
|
|
return map[props.task.status] ?? 0
|
|
|
})
|
|
|
-
|
|
|
-const borderStyle = computed(() => {
|
|
|
- if (props.task.type === 'emergency') return {}
|
|
|
- const color = {
|
|
|
- pending: '#f59e0b',
|
|
|
- confirmed: '#2563eb',
|
|
|
- scheduled: '#2563eb',
|
|
|
- departed: '#8b5cf6',
|
|
|
- arrived: '#10b981',
|
|
|
- constructing: '#2563eb',
|
|
|
- inspecting: '#f59e0b',
|
|
|
- completed: '#10b981',
|
|
|
- cancelled: '#ef4444',
|
|
|
- rejected: '#ef4444',
|
|
|
- }[props.task.status] || '#2563eb'
|
|
|
- return { borderLeftColor: color }
|
|
|
-})
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|