Skip to content

Commit d33d8da

Browse files
committed
Register & update research
1 parent e7bd88c commit d33d8da

10 files changed

Lines changed: 20 additions & 18 deletions

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>aaaimx-admin-vuetify</title><link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel=stylesheet><link href=https://use.fontawesome.com/releases/v5.0.13/css/all.css rel=stylesheet><link href=./static/css/app.f9d7d56ff6169ee8143d5b822baf4eb5.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.674f67bdcaf5a8f16c32.js></script><script type=text/javascript src=./static/js/app.c0b0603daec3c156bf41.js></script></body></html>
1+
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>aaaimx-admin-vuetify</title><link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel=stylesheet><link href=https://use.fontawesome.com/releases/v5.0.13/css/all.css rel=stylesheet><link href=./static/css/app.f9d7d56ff6169ee8143d5b822baf4eb5.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.674f67bdcaf5a8f16c32.js></script><script type=text/javascript src=./static/js/app.6f140755bd2a73869e14.js></script></body></html>

docs/static/js/app.6f140755bd2a73869e14.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/app.6f140755bd2a73869e14.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/app.c0b0603daec3c156bf41.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/static/js/app.c0b0603daec3c156bf41.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/static/js/manifest.3ad1d5771e9b13dbdad2.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/collaborators/AuthorsTable.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
:headers="headers"
1010
v-model="selected"
1111
:search="search"
12+
:loading="$store.state.colls.collaborators.length == 0 ? 'warning' : null"
1213
:items="$store.state.colls.collaborators"
1314
:expand="expand"
1415
item-key="fullname"

src/components/researches/NewResearch.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,20 @@
1919
<v-textarea
2020
v-model="research.title"
2121
:rules="[rules.required]"
22+
clearable
2223
auto-grow
2324
label="Title"
2425
rows="3"
2526
></v-textarea>
26-
<v-textarea v-model="research.description" label="Abstract" rows="5"></v-textarea>
27+
<v-textarea clearable v-model="research.description" label="Abstract" rows="5"></v-textarea>
2728
<v-layout row wrap>
2829
<v-flex xs12 sm6 md6 lg6>
2930
<v-text-field
3031
prepend-icon="schedule"
3132
browser-autocomplete
3233
name="year"
3334
type="number"
35+
clearable
3436
:rules="[rules.required]"
3537
v-model="research.year"
3638
placeholder="Year"
@@ -199,7 +201,7 @@
199201
</v-combobox>
200202
<v-text-field
201203
v-if="research.type === 'Ponencia' || research.type === 'Event'"
202-
prepend-icon="schedule"
204+
prepend-icon="today"
203205
browser-autocomplete
204206
name="event"
205207
type="text"
@@ -225,7 +227,7 @@
225227
</v-flex>
226228
<v-flex xs12 sm6 md6 lg6>
227229
<v-text-field
228-
:items="['Revista indizada en JCR', 'Revista indizada en otros índices']"
230+
:items="['Revista indizada en JCR', 'Revista indizada en otros índices']"
229231
prepend-icon="school"
230232
browser-autocomplete
231233
name="pub_in"
@@ -238,11 +240,15 @@
238240

239241
<v-layout v-if="research.type === 'Tesis' || research.type === 'Thesis'" row wrap>
240242
<v-flex xs12>
241-
<v-combobox prepend-icon="school"
243+
<v-combobox
244+
prepend-icon="school"
242245
type="text"
243246
name="grade"
244247
v-model="research.grade"
245-
placeholder="Grade" label="Grade" :items="['Licenciatura', 'Doctorado', 'Postgrado']"></v-combobox>
248+
placeholder="Grade"
249+
label="Grade"
250+
:items="['Licenciatura', 'Doctorado', 'Postgrado']"
251+
></v-combobox>
246252
</v-flex>
247253
<v-flex xs12>
248254
<v-combobox

src/components/researches/ResearchesTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<v-toolbar-title>{{$route.name}}</v-toolbar-title>
55
<v-divider class="mx-2" inset vertical></v-divider>
66
<v-spacer></v-spacer>
7-
<v-text-field v-model="search" append-icon="search" label="Search" single-line hide-details></v-text-field>
7+
<v-text-field v-model="search" clearable append-icon="search" label="Search" single-line hide-details></v-text-field>
88
</v-toolbar>
99
<v-data-table
1010
:headers="headers"

src/store/modules/research.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,10 @@ const mutations = {
3333
pub_in,
3434
event,
3535
Projects: [],
36-
Topics: [],
36+
Topics: lines,
3737
extra: JSON.parse(extra)
3838
},
39-
projects.forEach(element => {
40-
state.research.Projects.push(element.uuid)
41-
});
42-
lines.forEach(element => {
43-
state.research.Topics.push(element.topic)
44-
});
39+
state.research.Projects = projects.map(proj => proj.uuid)
4540
console.log(research)
4641
},
4742
clearResearch(state) {

0 commit comments

Comments
 (0)