Merge branch 'master' into UC-90

This commit is contained in:
frontgavrilin
2022-11-29 19:13:39 +03:00
committed by GitHub
8 changed files with 113 additions and 28 deletions

View File

@@ -65,6 +65,7 @@
clients-action-popup(
v-if="isOpenPopup",
:open-change-data="openChangeData"
:delete-client="deleteClient"
)
client-detail-info-wrapper(
v-if="isOpenDetailInfo"
@@ -272,6 +273,11 @@ export default {
openChangeData() {
this.isOpenChange = true;
},
async deleteClient() {
await fetchWrapper.del(`general/person/${this.dataClient.id}/delete/`);
this.handleUnFocusPopup();
this.$emit("update-clients");
},
fetchClientDetail(id) {
fetchWrapper
.get(`general/person/${id}/detail/`)