changes untested

This commit is contained in:
2024-03-28 10:33:56 -04:00
parent 06dcc6ab93
commit 5b13032cd6
86 changed files with 1434 additions and 2647 deletions

13
src/layouts/headers/headerauth.vue Normal file → Executable file
View File

@@ -1,6 +1,6 @@
<template>
<div class="navbar bg-base-100">
<div class="navbar bg-primary">
<div class="basis-1/4 md:basis-1/4">
<router-link :to="{ name: 'home' }">
Auburn Oil
@@ -12,12 +12,12 @@
<div class="basis-1/2 md:basis-1/4 justify-end gap-5">
<router-link :to="{ name: 'customerCreate' }">
<button class="btn">Create Customer</button>
<button class="btn btn-accent">Create Customer</button>
</router-link>
<div v-if="employee.id">
<router-link :to="{ name: 'employeeProfile', params: { id: employee.id } }">
<button class="btn">{{ user.user_name }}</button>
<button class="btn btn-accent">{{ user.user_name }}</button>
</router-link>
</div>
</div>
@@ -72,19 +72,18 @@ export default defineComponent({
employee_state: '',
},
loaded: false,
searchTerm: '',
searchTerm: "",
customers: [],
type_of_search: 0,
};
},
watch: {
searchTerm() {
searchTerm(this:any) {
this.performSearch();
},
},
methods: {
performSearch: debounce(async function () {
console.log(this.searchTerm)
performSearch: debounce(async function (this:any) {
if (this.searchTerm === "") {
this.customers = [];
return;