Skip to content

Commit

Permalink
Register & update research
Browse files Browse the repository at this point in the history
  • Loading branch information
rnovec committed Jul 29, 2019
1 parent e7bd88c commit d33d8da
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -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>
<!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>
2 changes: 2 additions & 0 deletions docs/static/js/app.6f140755bd2a73869e14.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/static/js/app.6f140755bd2a73869e14.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/static/js/app.c0b0603daec3c156bf41.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/static/js/app.c0b0603daec3c156bf41.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/static/js/manifest.3ad1d5771e9b13dbdad2.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/components/collaborators/AuthorsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:headers="headers"
v-model="selected"
:search="search"
:loading="$store.state.colls.collaborators.length == 0 ? 'warning' : null"
:items="$store.state.colls.collaborators"
:expand="expand"
item-key="fullname"
Expand Down
16 changes: 11 additions & 5 deletions src/components/researches/NewResearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@
<v-textarea
v-model="research.title"
:rules="[rules.required]"
clearable
auto-grow
label="Title"
rows="3"
></v-textarea>
<v-textarea v-model="research.description" label="Abstract" rows="5"></v-textarea>
<v-textarea clearable v-model="research.description" label="Abstract" rows="5"></v-textarea>
<v-layout row wrap>
<v-flex xs12 sm6 md6 lg6>
<v-text-field
prepend-icon="schedule"
browser-autocomplete
name="year"
type="number"
clearable
:rules="[rules.required]"
v-model="research.year"
placeholder="Year"
Expand Down Expand Up @@ -199,7 +201,7 @@
</v-combobox>
<v-text-field
v-if="research.type === 'Ponencia' || research.type === 'Event'"
prepend-icon="schedule"
prepend-icon="today"
browser-autocomplete
name="event"
type="text"
Expand All @@ -225,7 +227,7 @@
</v-flex>
<v-flex xs12 sm6 md6 lg6>
<v-text-field
:items="['Revista indizada en JCR', 'Revista indizada en otros índices']"
:items="['Revista indizada en JCR', 'Revista indizada en otros índices']"
prepend-icon="school"
browser-autocomplete
name="pub_in"
Expand All @@ -238,11 +240,15 @@

<v-layout v-if="research.type === 'Tesis' || research.type === 'Thesis'" row wrap>
<v-flex xs12>
<v-combobox prepend-icon="school"
<v-combobox
prepend-icon="school"
type="text"
name="grade"
v-model="research.grade"
placeholder="Grade" label="Grade" :items="['Licenciatura', 'Doctorado', 'Postgrado']"></v-combobox>
placeholder="Grade"
label="Grade"
:items="['Licenciatura', 'Doctorado', 'Postgrado']"
></v-combobox>
</v-flex>
<v-flex xs12>
<v-combobox
Expand Down
2 changes: 1 addition & 1 deletion src/components/researches/ResearchesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<v-toolbar-title>{{$route.name}}</v-toolbar-title>
<v-divider class="mx-2" inset vertical></v-divider>
<v-spacer></v-spacer>
<v-text-field v-model="search" append-icon="search" label="Search" single-line hide-details></v-text-field>
<v-text-field v-model="search" clearable append-icon="search" label="Search" single-line hide-details></v-text-field>
</v-toolbar>
<v-data-table
:headers="headers"
Expand Down
9 changes: 2 additions & 7 deletions src/store/modules/research.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,10 @@ const mutations = {
pub_in,
event,
Projects: [],
Topics: [],
Topics: lines,
extra: JSON.parse(extra)
},
projects.forEach(element => {
state.research.Projects.push(element.uuid)
});
lines.forEach(element => {
state.research.Topics.push(element.topic)
});
state.research.Projects = projects.map(proj => proj.uuid)
console.log(research)
},
clearResearch(state) {
Expand Down

0 comments on commit d33d8da

Please sign in to comment.