cambio de linea de investigacion
This commit is contained in:
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//use.fontawesome.com/releases/v5.0.7/css/all.css><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap" rel=stylesheet><link rel=stylesheet href=https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css><script src=https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js></script><script src=https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js></script><script src=https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js></script><title>Red de investigacion</title><link href=css/app.98d771b5.css rel=preload as=style><link href=css/chunk-vendors.c580d68a.css rel=preload as=style><link href=js/app.01f6724f.js rel=preload as=script><link href=js/chunk-vendors.1a532696.js rel=preload as=script><link href=css/chunk-vendors.c580d68a.css rel=stylesheet><link href=css/app.98d771b5.css rel=stylesheet></head><body><noscript><strong>We're sorry but first doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.1a532696.js></script><script src=js/app.01f6724f.js></script></body></html>
|
||||
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//use.fontawesome.com/releases/v5.0.7/css/all.css><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap" rel=stylesheet><link rel=stylesheet href=https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css><script src=https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js></script><script src=https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js></script><script src=https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js></script><title>Red de investigacion</title><link href=css/app.fc979d37.css rel=preload as=style><link href=css/chunk-vendors.c580d68a.css rel=preload as=style><link href=js/app.89670ce5.js rel=preload as=script><link href=js/chunk-vendors.1a532696.js rel=preload as=script><link href=css/chunk-vendors.c580d68a.css rel=stylesheet><link href=css/app.fc979d37.css rel=stylesheet></head><body><noscript><strong>We're sorry but first doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=js/chunk-vendors.1a532696.js></script><script src=js/app.89670ce5.js></script></body></html>
|
||||
Vendored
-2
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
@@ -42,6 +42,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<h3>Nombre del responsable</h3>
|
||||
|
||||
<div class="row tabla cuadro_abajo_boton" >
|
||||
|
||||
<div class="col-md-6 col-xs-12">
|
||||
@@ -139,25 +140,35 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col">
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="table-wrapper-scroll-y my-custom-scrollbar">
|
||||
|
||||
<table class="table table-bordered table-striped mb-0 ">
|
||||
<tr>
|
||||
<th>
|
||||
Lineas de Investigación
|
||||
</th>
|
||||
</tr>
|
||||
<tr v-for="item in lineas_de_investigacion" v-bind:key="item.id" >
|
||||
<td class="renglon select_verde " v-text="item.nombre" @click="seleccionar_linea(item.id_linea_investigacion)" v-if="verificar_selec_linea(item.id_linea_investigacion)"></td>
|
||||
<td class="renglon" v-text="item.nombre" @click="seleccionar_linea(item.id_linea_investigacion)" v-else></td>
|
||||
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>
|
||||
Lineas de Investigación
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tr v-for="item in linea" v-bind:key="item.id" >
|
||||
<td class="renglon select_verde" v-if="linea_seleccionada==item.nom" v-text="item.nom" @click="select_linea(item.nom)" ></td>
|
||||
<td class="renglon" v-else v-text="item.nom" @click="select_linea(item.nom)" ></td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<input v-if="aparece==true" v-model="linea_base" type="text" class="form-control marco " placeholder="Nombre de la otra disciplina" :maxlength="140">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="row separacion">
|
||||
<div class="col">
|
||||
@@ -305,9 +316,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col separacion">
|
||||
|
||||
<div class="form-group ">
|
||||
<label for="numero" class="letra_titulo">Numero de registro</label>
|
||||
<input id="numero" type="text" class="cuadro_registro" placeholder="Numero de registro" v-model="numero_registro" >
|
||||
<label v-if=" check_numero_registro()" for="numero" class="letra_titulo">Numero de registro</label>
|
||||
<input v-if=" check_numero_registro()" id="numero" type="text" class="cuadro_registro" placeholder="Numero de registro" v-model="numero_registro" >
|
||||
<label for="presupuesto" class="letra_titulo">Presupuesto Asignado ($00.00MXN)</label>
|
||||
<input type="number" class="ultimo" placeholder="Presupuesto Asignado ($00.00MXN)" v-model="presupuesto" >
|
||||
</div>
|
||||
@@ -640,8 +652,7 @@ export default {
|
||||
lista: [{ "Nombre": "-", "Rfc": 1 }],
|
||||
campos_de_conocimiento:[],
|
||||
campos_de_conocimiento_seleccionado:[],
|
||||
lineas_de_investigacion: [],
|
||||
lineas_de_investigacion_seleccionado: [],
|
||||
linea:[{nom:"Autocultura e intercultura de las literaturas mexicanas y española"},{nom: "Didáctica dla literatura"},{nom: "Didáctica de la liteatura"},{nom: "Didáctica de la literaa"},{nom: "Didáctica de la literatu"},{nom: "Didáctica de la literatur"},{nom: "Otra"}],
|
||||
objetivos_particulares:[],
|
||||
p: '',
|
||||
name : '',
|
||||
@@ -695,7 +706,11 @@ export default {
|
||||
concurrent: 0,
|
||||
nombre_buscar:[],
|
||||
|
||||
espera: false
|
||||
espera: false,
|
||||
|
||||
linea_seleccionada: null,
|
||||
linea_base: null,
|
||||
aparece: false
|
||||
|
||||
|
||||
|
||||
@@ -703,7 +718,48 @@ export default {
|
||||
},
|
||||
methods:
|
||||
{
|
||||
check_numero_registro()
|
||||
{
|
||||
if(this.financiamiento_seleccionado=='PAPIME' || this.financiamiento_seleccionado=='PAPIIT' || this.financiamiento_seleccionado=='PAIDI' || this.financiamiento_seleccionado=='CONACYT' )
|
||||
return true;
|
||||
else
|
||||
{
|
||||
this.numero_registro='';
|
||||
return false;
|
||||
}
|
||||
},
|
||||
select_linea(nom){
|
||||
if(this.linea_seleccionada==nom)
|
||||
this.linea_seleccionada=null;
|
||||
else
|
||||
{
|
||||
this.linea_seleccionada=nom;
|
||||
if(nom=="Otra")
|
||||
this.aparece=true;
|
||||
else
|
||||
{
|
||||
this.linea_base=null
|
||||
this.aparece=false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
registrar(){
|
||||
|
||||
if(this.linea_base!=null)
|
||||
{
|
||||
this.linea_seleccionada=this.linea_base;
|
||||
}
|
||||
else
|
||||
if(this.linea_seleccionada=='Otra')
|
||||
{
|
||||
swal("No deje la linea de investigacion vacia",'','warning')
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
this.espera=true;
|
||||
const data={
|
||||
datos_proyecto:{
|
||||
@@ -722,11 +778,12 @@ export default {
|
||||
duracion: this.duracion_elegido,
|
||||
financiamiento: this.financiamiento_seleccionado,
|
||||
numero_registro: this.numero_registro,
|
||||
linea_investigacion: this.linea_seleccionada,
|
||||
presupuesto: this.presupuesto
|
||||
|
||||
},
|
||||
lineas:{
|
||||
linea_investigacion: this.lineas_de_investigacion_seleccionado,
|
||||
|
||||
campo_conocimiento: this.campos_de_conocimiento_seleccionado,
|
||||
objetivo_particular: this.inputs,
|
||||
producto: this.productos_seleccionados,
|
||||
@@ -861,14 +918,7 @@ export default {
|
||||
this.campos_de_conocimiento=response.data.campos;
|
||||
})
|
||||
},
|
||||
traer_lineas_de_investigacion()
|
||||
{
|
||||
axios.post(`${config.api}/traer_lineas`).then(response=>{
|
||||
//alert(response.data);
|
||||
this.lineas_de_investigacion=response.data.lineas;
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
add() {
|
||||
this.inputs.push({ objetivo_texto: '' });
|
||||
},
|
||||
@@ -1106,7 +1156,8 @@ export default {
|
||||
this.traer_entidades();
|
||||
this.traer_productos();
|
||||
this.traer_campos_de_conocimiento();
|
||||
this.traer_lineas_de_investigacion();
|
||||
|
||||
|
||||
this.traer_entidades_persona()
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
@@ -1117,7 +1168,8 @@ export default {
|
||||
this.disciplina=this.datos.proyecto[0].disciplina;
|
||||
this.objetivo_general=this.datos.proyecto[0].objetivo_general;
|
||||
this.campos_de_conocimiento_seleccionado=this.datos.campo_proyecto;
|
||||
this.lineas_de_investigacion_seleccionado=this.datos.linea_investigacion;
|
||||
|
||||
|
||||
this.inputs=this.datos.objetivo;
|
||||
this.hipotesis=this.datos.proyecto[0].hipotesis;
|
||||
this.resumen=this.datos.proyecto[0].resumen;
|
||||
@@ -1135,7 +1187,19 @@ export default {
|
||||
this.profesores_externos=this.datos.profesores_externos;
|
||||
this.alumnos_internos=this.datos.alumnos_internos;
|
||||
this.alumnos_externos=this.datos.alumnos_externos;
|
||||
|
||||
let ban=0;
|
||||
for( let i=0; i<this.linea.length; i++)
|
||||
{
|
||||
if(this.datos.proyecto[0].linea_investigacion==this.linea[i].nom)
|
||||
ban=1;
|
||||
}
|
||||
if(ban)
|
||||
this.linea_seleccionada=this.datos.proyecto[0].linea_investigacion;
|
||||
else{
|
||||
this.linea_seleccionada='Otra';
|
||||
this.aparece=true;
|
||||
this.linea_base=this.datos.proyecto[0].linea_investigacion;
|
||||
}
|
||||
for(let i=0; i<=this.profesores_internos.length; i++)
|
||||
{
|
||||
this.nombre_buscar.push('')
|
||||
@@ -1169,6 +1233,9 @@ export default {
|
||||
|
||||
|
||||
<style scoped>
|
||||
.marco{
|
||||
border-color: black;
|
||||
}
|
||||
.cada{
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 10rem;
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
<!-- <p>{{p}}</p>
|
||||
<p>{{inputs}}</p> -->
|
||||
<h1>Datos del proyecto</h1>
|
||||
<!-- {{linea_seleccionada}}
|
||||
{{linea_base}} -->
|
||||
<!-- <p> {{id_usuario}} pp {{responsable}} pp {{rfc}} </p> -->
|
||||
<div class="row">
|
||||
<div class="col inputs_nombre">
|
||||
@@ -25,11 +27,13 @@
|
||||
<div class="col-md-6">
|
||||
|
||||
<table class="table" >
|
||||
<tr>
|
||||
<th>
|
||||
Campos de Conocimiento
|
||||
</th>
|
||||
</tr>
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>
|
||||
Campos de Conocimiento
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="item in campos_de_conocimiento" v-bind:key="item.id" >
|
||||
<td class="renglon select_verde " v-text="item.nombre" @click="seleccionar_campo(item.id_campo)" v-if="verificar_selec(item.id_campo)"></td>
|
||||
<td class="renglon" v-text="item.nombre" @click="seleccionar_campo(item.id_campo)" v-else></td>
|
||||
@@ -41,18 +45,23 @@
|
||||
<div class="table-wrapper-scroll-y my-custom-scrollbar">
|
||||
|
||||
<table class="table table-bordered table-striped mb-0 ">
|
||||
<tr>
|
||||
<th>
|
||||
Lineas de Investigación
|
||||
</th>
|
||||
</tr>
|
||||
<tr v-for="item in lineas_de_investigacion" v-bind:key="item.id" >
|
||||
<td class="renglon select_verde " v-text="item.nombre" @click="seleccionar_linea(item.id_linea_investigacion)" v-if="verificar_selec_linea(item.id_linea_investigacion)"></td>
|
||||
<td class="renglon" v-text="item.nombre" @click="seleccionar_linea(item.id_linea_investigacion)" v-else></td>
|
||||
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>
|
||||
Lineas de Investigación
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tr v-for="item in linea" v-bind:key="item.id" >
|
||||
<td class="renglon select_verde" v-if="linea_seleccionada==item.nom" v-text="item.nom" @click="select_linea(item.nom)" ></td>
|
||||
<td class="renglon" v-else v-text="item.nom" @click="select_linea(item.nom)" ></td>
|
||||
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<input v-if="aparece==true" v-model="linea_base" type="text" class="form-control marco " placeholder="Nombre de la otra disciplina" :maxlength="140">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,6 +123,7 @@ export default {
|
||||
campos_de_conocimiento:[],
|
||||
campos_de_conocimiento_seleccionado:[],
|
||||
lineas_de_investigacion: [],
|
||||
linea:[{nom:"Autocultura e intercultura de las literaturas mexicanas y española"},{nom: "Didáctica dla literatura"},{nom: "Didáctica de la liteatura"},{nom: "Didáctica de la literaa"},{nom: "Didáctica de la literatu"},{nom: "Didáctica de la literatur"},{nom: "Otra"}],
|
||||
lineas_de_investigacion_seleccionado: [],
|
||||
objetivos_particulares:[],
|
||||
p: '',
|
||||
@@ -125,11 +135,32 @@ export default {
|
||||
objetivo_general:'',
|
||||
resp: null,
|
||||
error: false,
|
||||
linea_seleccionada: null,
|
||||
linea_base: null,
|
||||
aparece: false
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
select_linea(nom){
|
||||
if(this.linea_seleccionada==nom)
|
||||
this.linea_seleccionada=null;
|
||||
else
|
||||
{
|
||||
this.linea_seleccionada=nom;
|
||||
if(nom=="Otra")
|
||||
this.aparece=true;
|
||||
else
|
||||
{
|
||||
this.linea_base=null
|
||||
this.aparece=false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
|
||||
async llamar(){
|
||||
|
||||
await this.registrar();
|
||||
if(this.error==true)
|
||||
{
|
||||
@@ -141,6 +172,8 @@ export default {
|
||||
},
|
||||
|
||||
async registrar(){
|
||||
if(this.linea_base!=null)
|
||||
this.linea_seleccionada=this.linea_base;
|
||||
this.objetivos_particulares=[];
|
||||
await this.inputs.forEach(element=>{
|
||||
this.objetivos_particulares.push(element.name);
|
||||
@@ -151,7 +184,7 @@ export default {
|
||||
nombre_responsable: this.responsable,
|
||||
disciplina: this.disciplina,
|
||||
objetivo_general: this.objetivo_general,
|
||||
linea_investigacion: this.lineas_de_investigacion_seleccionado,
|
||||
linea_investigacion: this.linea_seleccionada,
|
||||
campo_conocimiento: this.campos_de_conocimiento_seleccionado,
|
||||
objetivo_particular: this.objetivos_particulares,
|
||||
id_usuario: this.id_usuario
|
||||
@@ -199,9 +232,9 @@ export default {
|
||||
},
|
||||
listo()
|
||||
{
|
||||
if(this.lineas_de_investigacion_seleccionado.length==0)
|
||||
if(this.linea_seleccionada==null && this.linea_base==null)
|
||||
{
|
||||
this.p="lineas";
|
||||
|
||||
return false;
|
||||
}
|
||||
if(this.campos_de_conocimiento_seleccionado.length==0)
|
||||
@@ -267,41 +300,9 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
verificar_selec_linea (id_linea){
|
||||
let ban=0;
|
||||
this.lineas_de_investigacion_seleccionado.forEach(element=>{
|
||||
if(element==id_linea)
|
||||
ban=1;
|
||||
});
|
||||
if(ban==1)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
}
|
||||
,
|
||||
seleccionar_linea(id_linea)
|
||||
{
|
||||
let ban=0;
|
||||
let con=0;
|
||||
|
||||
this.lineas_de_investigacion_seleccionado.forEach(element=>{
|
||||
if(element==id_linea)
|
||||
ban=1;
|
||||
|
||||
if(ban==0)
|
||||
con++;
|
||||
});
|
||||
if(ban==0)
|
||||
{
|
||||
this.lineas_de_investigacion_seleccionado.push(id_linea);
|
||||
}
|
||||
else{
|
||||
this.lineas_de_investigacion_seleccionado.splice(con,1);
|
||||
}
|
||||
|
||||
}
|
||||
,
|
||||
|
||||
|
||||
|
||||
traer_campos_de_conocimiento()
|
||||
{
|
||||
axios.post(`${config.api}/traer_campos`).then(response=>{
|
||||
@@ -309,14 +310,7 @@ export default {
|
||||
this.campos_de_conocimiento=response.data.campos;
|
||||
})
|
||||
},
|
||||
traer_lineas_de_investigacion()
|
||||
{
|
||||
axios.post(`${config.api}/traer_lineas`).then(response=>{
|
||||
//alert(response.data);
|
||||
this.lineas_de_investigacion=response.data.lineas;
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
add() {
|
||||
this.inputs.push({ name: '' });
|
||||
},
|
||||
@@ -328,7 +322,7 @@ export default {
|
||||
created()
|
||||
{
|
||||
this.traer_campos_de_conocimiento();
|
||||
this.traer_lineas_de_investigacion();
|
||||
|
||||
window.localStorage.setItem('registro_2', true);
|
||||
|
||||
},
|
||||
@@ -348,6 +342,9 @@ export default {
|
||||
|
||||
|
||||
<style scoped>
|
||||
.marco{
|
||||
border-color: black;
|
||||
}
|
||||
.my-custom-scrollbar {
|
||||
position: relative;
|
||||
height: 19rem;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col inputs_nombre">
|
||||
<input type="text" class="cuadro" placeholder="Numero de registro" v-model="numero_registro" >
|
||||
<input type="text" v-if=" check_numero_registro()" class="cuadro" placeholder="Numero de registro" v-model="numero_registro" >
|
||||
<input type="number" class="ultimo" placeholder="Presupuesto Asignado ($00.00MXN)" v-model="presupuesto" >
|
||||
<p class="error" v-if="chack_presupuesto()">El presupuesto solo puede tener numeros y a lo más un caracter punto '.'</p>
|
||||
</div>
|
||||
@@ -115,7 +115,13 @@ export default {
|
||||
|
||||
}
|
||||
},methods:{
|
||||
|
||||
check_numero_registro()
|
||||
{
|
||||
if(this.financiamiento_seleccionado=='PAPIME' || this.financiamiento_seleccionado=='PAPIIT' || this.financiamiento_seleccionado=='PAIDI' || this.financiamiento_seleccionado=='CONACYT' )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
},
|
||||
salir(){
|
||||
|
||||
swal({
|
||||
@@ -204,8 +210,11 @@ export default {
|
||||
listo(){
|
||||
if(this.financiamiento_seleccionado=='')
|
||||
return false;
|
||||
if(this.numero_registro=='')
|
||||
return false;
|
||||
if( this.check_numero_registro()==true)
|
||||
{
|
||||
if(this.numero_registro=='')
|
||||
return false;
|
||||
}
|
||||
if(this.presupuesto=='')
|
||||
return false;
|
||||
if(this.productos_seleccionados.length==0)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
<dt class="col-md-7 text-left">Linea de investigación</dt>
|
||||
<dd class="col-md-5 text-left">
|
||||
<p>{{datos.linea_investigacion}}</p>
|
||||
<p>{{datos.proyecto[0].linea_investigacion}}</p>
|
||||
</dd>
|
||||
|
||||
<dt class="col-md-7 text-left">Objetivo general</dt>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const config = {
|
||||
//api: "http://localhost:3000"
|
||||
api: "https://venus.acatlan.unam.mx/redinvestigacion"
|
||||
}
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user