Added checks and updated ticket

This commit is contained in:
2024-09-26 20:00:44 -04:00
parent c7907bed8d
commit 54fa47268d
12 changed files with 520 additions and 194 deletions

View File

@@ -14,6 +14,9 @@
</div>
<div class="basis-1/2 md:basis-1/4 justify-end gap-5">
<!-- <button class="btn btn-green btn-sm" @click.prevent="increaseCall()">Call</button> -->
<router-link :to="{ name: 'customerCreate' }">
<button class="btn btn-accent btn-sm">Create Customer</button>
</router-link>
@@ -198,6 +201,21 @@ export default defineComponent({
})
},
increaseCall() {
let path = import.meta.env.VITE_BASE_URL + '/stats/calls/add';
axios({
method: "put",
url: path,
withCredentials: true,
headers: authHeader(),
})
.then((response: any) => {
this.number++;
})
},
getCompany() {
let path = import.meta.env.VITE_BASE_URL + '/admin/company/' + import.meta.env.VITE_COMPANY_ID;
axios({