From 81485a7a67c6faa68a804d2a3e070258831220a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tha=C3=ADs=20Ferreira?= Date: Mon, 3 Feb 2025 15:43:44 -0300 Subject: [PATCH] =?UTF-8?q?vers=C3=A3o=2003/02=20=C3=A1s=2015h43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 218 ++++++++++++++++++++++++------------- src/router/index.js | 7 -- src/views/TrainingView.vue | 48 +++++++- src/views/UsersView.vue | 144 ++++++++++++------------ 4 files changed, 257 insertions(+), 160 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9592306..1007445 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,104 +1,168 @@ - - \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index e3e81a9..515e73b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,7 +10,6 @@ import ForgotPassword from '@/views/ForgotPassword.vue'; import RegisterView from '@/views/RegisterView.vue'; import TrainingView from '@/views/TrainingView.vue'; import SSOView from '@/views/SSOView.vue'; -import AboutView from '@/views/AboutView.vue'; import UserProfileView from '@/views/UserProfileView.vue' import EditUserView from '@/views/EditUserView.vue' @@ -105,12 +104,6 @@ const routes = [ requiresAuth: false } }, - { - path: '/about', - name: 'about', - component: AboutView, - meta: { requiresAuth: true } - }, // Catch-all route for unmatched paths { path: '/:pathMatch(.*)*', diff --git a/src/views/TrainingView.vue b/src/views/TrainingView.vue index 82a0d86..f59d11b 100644 --- a/src/views/TrainingView.vue +++ b/src/views/TrainingView.vue @@ -49,6 +49,21 @@ + + + + + {{ camera.name }} + {{ camera.id }} + +

Status: {{ camera.isActive ? 'Ativo' : 'Inativo' }}

+

Descrição: {{ camera.description }}

+

Data de Registro: {{ camera.registrationDate }}

+
+
+
+
+ @@ -68,6 +83,20 @@ Pesquisar + + + + {{ camera.name }} + {{ camera.id }} + +

Descrição: {{ camera.description }}

+

Status: {{ camera.isActive ? 'Ativo' : 'Inativo' }}

+

Data de Registro: {{ camera.registrationDate }}

+

Treinada: {{ camera.isTrained ? 'Sim' : 'Não' }}

+
+
+
+
@@ -147,6 +176,11 @@ {{ face.isActive ? 'Ativo' : 'Inativo' }} + + + mdi-pencil + + @@ -217,6 +251,11 @@ export default { untrainedCameras: [ { id: 'CAM003', name: 'Câmera Estacionamento', brand: 'Dahua' } ], + cameras: [ + { id: 'CAM001', name: 'Câmera Principal', description: 'Câmera frontal do prédio', isActive: true, registrationDate: '2025-02-03T08:30', isTrained: true }, + { id: 'CAM002', name: 'Câmera Corredor', description: 'Câmera do corredor principal', isActive: false, registrationDate: '2025-01-28T14:00', isTrained: false } + ], + searchResults: [], identifiedFaces: [ { id: 'USER001', @@ -248,6 +287,10 @@ export default { }, searchCameraModels() { console.log('Critérios de pesquisa:', this.searchCriteria); + this.searchResults = this.cameras.filter(camera => + (camera.id.includes(this.searchCriteria.id) || camera.name.includes(this.searchCriteria.name)) && + (!this.searchCriteria.status || (this.searchCriteria.status === 'Ativo' && camera.isActive) || (this.searchCriteria.status === 'Inativo' && !camera.isActive)) + ); }, startTraining() { if (this.selectedCameraForTraining) { @@ -287,7 +330,10 @@ export default { }, confirmAssignments() { console.log('Atribuições confirmadas:', this.unidentifiedFaces); + }, + editFaceName(face) { + console.log('Editando rosto:', face); } } } - \ No newline at end of file + diff --git a/src/views/UsersView.vue b/src/views/UsersView.vue index 3b3b0c5..0919085 100644 --- a/src/views/UsersView.vue +++ b/src/views/UsersView.vue @@ -1,88 +1,82 @@ \ No newline at end of file +