Skip to content

Commit

Permalink
fix: Refreshing queue after calling/finishing ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Oct 30, 2024
1 parent db87c43 commit ec03739
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/Resources/public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@
success: (response) => {
this.localModal.hide();
Vue.set(this.usuario, 'numeroLocal', response.data.numero.value);
this.usuario.local = response.data.local;
this.usuario.numeroLocal = response.data.numero;
this.usuario.tipoAtendimento = response.data.tipo;
this.novoLocal.local = response.data.local.id;
this.novoLocal.numeroLocal = response.data.numero;
this.usuario.local = response.data.local;
this.usuario.numeroLocal = response.data.numero;
this.usuario.tipoAtendimento = response.data.tipo;
this.novoLocal.local = response.data.local.id;
this.novoLocal.numeroLocal = response.data.numero;
this.novoLocal.tipoAtendimento = response.data.tipo;
this.filas = [];
this.total = 0;
this.filas = [];
this.total = 0;
this.update();
}
});
Expand All @@ -109,6 +109,7 @@
type: 'post',
success: (response) => {
this.atendimento = response.data;
this.update();
},
complete: () => {
setTimeout(() => {
Expand Down Expand Up @@ -153,7 +154,6 @@
labelNao,
labelSim
],
//dangerMode: true,
})
.then((ok) => {
if (!ok) {
Expand All @@ -164,6 +164,7 @@
type: 'post',
success: () => {
this.atendimento = null;
this.update();
}
});
});
Expand Down Expand Up @@ -239,7 +240,6 @@
labelNao,
labelSim
],
//dangerMode: true,
})
.then((ok) => {
if (!ok) {
Expand All @@ -254,6 +254,7 @@
this.atendimento = null;
this.redirecionarAoEncerrar = false;
App.Modal.closeAll();
this.update();
}
});
});
Expand Down Expand Up @@ -291,7 +292,6 @@
labelNao,
labelSim
],
//dangerMode: true,
})
.then((ok) => {
if (!ok) {
Expand All @@ -307,6 +307,7 @@
success: () => {
this.atendimento = null;
App.Modal.closeAll();
this.update();
}
});
});
Expand Down

0 comments on commit ec03739

Please sign in to comment.