tons fixes
This commit is contained in:
@@ -30,9 +30,6 @@
|
||||
<p>No service calls found.</p>
|
||||
</div>
|
||||
|
||||
<!-- ============================================= -->
|
||||
<!-- ============== UPDATED TABLE SECTION ============== -->
|
||||
<!-- ============================================= -->
|
||||
<div v-else class="overflow-x-auto rounded-lg">
|
||||
<table class="min-w-full divide-y divide-gray-700">
|
||||
<thead class="bg-base-200">
|
||||
@@ -46,11 +43,13 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="bg-base-100 divide-y divide-gray-700">
|
||||
<!-- The hover color is now a slightly lighter shade of the background -->
|
||||
<tr v-for="service in services" :key="service.id" @click="openEditModal(service)" class="hover:bg-base-300 cursor-pointer">
|
||||
<td class="px-6 py-4 whitespace-nowrap">{{ formatDate(service.scheduled_date) }}</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">{{ formatTime(service.scheduled_date) }}</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap">{{ service.customer_name }}</td>
|
||||
|
||||
<td class="px-6 py-4 whitespace-nowrap hover:text-blue-600">{{ service.customer_name }}</td>
|
||||
|
||||
|
||||
<td class="px-6 py-4 whitespace-nowrap">{{ service.customer_address }}, {{ service.customer_town }}</td>
|
||||
<td class="px-6 py-4 whitespace-nowrap font-medium" :style="{ color: getServiceTypeColor(service.type_service_call) }">
|
||||
{{ getServiceTypeName(service.type_service_call) }}
|
||||
@@ -60,9 +59,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- ============================================= -->
|
||||
<!-- ============== END UPDATED SECTION ============== -->
|
||||
<!-- ============================================= -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -91,6 +87,7 @@ import dayjs from 'dayjs'; // Import dayjs to handle date/time formatting
|
||||
interface ServiceCall {
|
||||
id: number;
|
||||
scheduled_date: string;
|
||||
customer_id: number;
|
||||
customer_name: string;
|
||||
customer_address: string;
|
||||
customer_town: string;
|
||||
|
||||
Reference in New Issue
Block a user