Merge branch 'master' into UC-14

This commit is contained in:
Алексей Дёмин
2022-10-17 12:22:07 +03:00
committed by GitHub
13 changed files with 626 additions and 54 deletions

View File

@@ -66,39 +66,17 @@ export default {
return {
selectAll: false,
marked: [],
dataClients: [
{
id: "1",
fullName: "Вильгейльм Арнольд Витальевич",
age: "34",
jobTitle: "Менеджер",
priority: "Высокий",
phone: "+7 (915) 6572114",
email: "Superboyband@yandex.ru",
networks: [],
meetingTime: {
date: "02.06.22",
time: "18:3019:30",
},
},
{
id: "2",
fullName: "Астафоркина Екатерина Геннадьевна",
age: "54",
jobTitle: "Менеджер",
priority: "-",
phone: "+7 (574) 3645336",
email: "antimag@gmail.com",
networks: [],
meetingTime: {
date: "14.07.22",
time: "17:3021:30",
},
},
],
dataClients: [],
};
},
methods: {
saveDataClients(data) {
this.dataClients = data.dataClients;
},
fetchDataClients() {
// eslint-disable-next-line
fetch("/api/clients").then((res) => res.json()).then((data) => this.saveDataClients(data))
},
selectedCheck(e) {
if (e.target.id === "all") {
this.selectAll = !this.selectAll;
@@ -119,6 +97,9 @@ export default {
}
},
},
mounted() {
this.fetchDataClients();
},
};
</script>