Interface SAV

This commit is contained in:
Jonathan Chevalier
2023-07-06 18:39:07 +02:00
parent f3f90db859
commit 6a98b61f51
9 changed files with 218 additions and 157 deletions

View File

@@ -15,9 +15,22 @@ export default {
return response.json();
},
async getStandardMessageList(id) {
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=getStandardMessageList&id_business=' + id
if (import.meta.env.DEV) {
console.log(apiUrl)
}
const response = await fetch(apiUrl)
if (import.meta.env.DEV) {
console.log(response.clone().text())
}
return response.json();
},
async getMessages(code, id) {
// code =2641056
// id = 66088
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=getMessages&code_business=' + code + '&id_business=' + id
if (import.meta.env.DEV) {
@@ -34,7 +47,7 @@ export default {
},
async saveMessage(id, quill, replyOption) {
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=saveMessage'
if (import.meta.env.DEV) {
if (import.meta.env.DEV) {
console.log(apiUrl)
}