diff --git a/src/components/ui/VnLv.vue b/src/components/ui/VnLv.vue index 21205e63b..83234b658 100644 --- a/src/components/ui/VnLv.vue +++ b/src/components/ui/VnLv.vue @@ -13,11 +13,9 @@ const isBooleanValue = computed(() => typeof $props.value === 'boolean'); diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index afa504e8c..03a652017 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -18,34 +18,6 @@ const stateStore = useStateStore(); onMounted(() => (stateStore.rightDrawer = true)); onUnmounted(() => (stateStore.rightDrawer = false)); -const filter = { - include: [ - { - relation: 'client', - scope: { - include: { - relation: 'salesPersonUser', - scope: { - fields: ['name'], - }, - }, - }, - }, - { - relation: 'ticketState', - scope: { - fields: ['stateFk', 'code', 'alertLevel'], - include: { - relation: 'state', - scope: { - fields: ['name'], - }, - }, - }, - }, - ], -}; - const from = Date.vnNew(); const to = Date.vnNew(); to.setDate(to.getDate() + 1); @@ -55,14 +27,6 @@ const userParams = { to: toDateString(to), }; -function stateColor(row) { - if (row.alertLevelCode === 'OK') return 'green'; - if (row.alertLevelCode === 'FREE') return 'blue-3'; - if (row.alertLevel === 1) return 'orange'; - if (row.alertLevel === 0) return 'red'; - return 'red'; -} - function navigate(id) { router.push({ path: `/ticket/${id}` }); } @@ -112,7 +76,6 @@ function viewSummary(id) {