Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ygonzalezp
sigi
Commits
231b2fc7
Commit
231b2fc7
authored
Aug 13, 2021
by
Yoelvis Gonzalez
Browse files
patient details on clic
parent
acc7b2a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
39 deletions
+6
-39
src/views/sections/Patients.vue
src/views/sections/Patients.vue
+6
-39
No files found.
src/views/sections/Patients.vue
View file @
231b2fc7
...
...
@@ -27,29 +27,6 @@
>
<v-icon>
mdi-plus
</v-icon>
Registrar Paciente
</v-btn>
<!--
<v-dialog
v-model=
"dialog"
max-width=
"800px"
persistent
>
<template
v-slot:activator=
"
{ on, attrs }">
<v-btn
color=
"success"
dark
class=
"toolbar-btn"
v-bind=
"attrs"
v-on=
"on"
>
<v-icon>
mdi-plus
</v-icon>
Registrar Paciente
</v-btn>
</
template
>
<patient-form
:title=
"formTitle"
@
refresh=
"closeSaved"
@
close-click=
"close"
/>
</v-dialog>
-->
</v-card-title>
<v-expansion-panels
v-model=
"filterPanel"
...
...
@@ -75,6 +52,7 @@
loading-text="Cargando Pacientes"
class="elevation-1"
@pagination="paginatePatients"
@click:row="detailsItem"
>
<template
v-slot:item.estado_sistema=
"
{ item }">
<v-chip
...
...
@@ -129,7 +107,7 @@
icon
:loading=
"loadingPatientData"
v-on=
"on"
@
click=
"detailsItem(item
.id_paciente
)"
@
click=
"detailsItem(item)"
>
<v-icon>
mdi-dots-horizontal-circle
...
...
@@ -207,7 +185,7 @@
:loading=
"loadingPatientData"
icon
v-on=
"on"
@
click=
"detailsItem(item
.id_paciente
)"
@
click=
"detailsItem(item)"
>
<v-icon>
mdi-account-check
</v-icon>
</v-btn>
...
...
@@ -684,13 +662,13 @@
this
.
closeDetails
()
this
.
editItem
(
this
.
patient
)
},
async
detailsItem
(
i
d
)
{
async
detailsItem
(
i
tem
)
{
this
.
loadingPatientData
=
true
if
(
i
d
!==
null
&&
id
!==
undefined
)
{
if
(
i
tem
.
id_paciente
!==
null
&&
item
.
id_paciente
!==
undefined
)
{
this
.
loadingPatientData
=
true
try
{
this
.
loadingPatientData
=
false
this
.
setPatientId
(
i
d
)
this
.
setPatientId
(
i
tem
.
id_paciente
)
this
.
$router
.
push
({
name
:
'
PatientFile
'
})
}
catch
(
e
)
{
errorHandler
(
e
)
...
...
@@ -823,17 +801,6 @@
this
.
closeDelete
()
this
.
loadingPatientsData
=
false
},
closeSaved
()
{
this
.
dialog
=
false
this
.
$nextTick
(()
=>
{
this
.
clearPatient
()
this
.
setPIndex
(
-
1
)
})
this
.
loadPatientsData
()
if
(
this
.
patientId
!==
-
1
)
{
this
.
detailsItem
(
this
.
patientId
)
}
},
close
()
{
this
.
dialog
=
false
this
.
$nextTick
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment