Files
red_de_investigacion_front/node_modules/.cache/vue-loader/7ebaa4cea6797cc1954840ce7e2df8a0.json
T
DanielRamirezGe 5eecfbf6cd first commit
2020-01-14 20:43:08 -06:00

1 line
17 KiB
JSON

{"remainingRequest":"/home/george/citwa/red_de_investigacion_front/first/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/george/citwa/red_de_investigacion_front/first/src/components/registro_2.vue?vue&type=style&index=0&id=e6817394&scoped=true&lang=css&","dependencies":[{"path":"/home/george/citwa/red_de_investigacion_front/first/src/components/registro_2.vue","mtime":1576019756352},{"path":"/home/george/citwa/red_de_investigacion_front/first/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/george/citwa/red_de_investigacion_front/first/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/home/george/citwa/red_de_investigacion_front/first/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/home/george/citwa/red_de_investigacion_front/first/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/george/citwa/red_de_investigacion_front/first/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKLnNlcGFyYWNpb257CiAgICBtYXJnaW4tYm90dG9tOiAzcmVtOwp9Ci5zZWxlY3RfdmVyZGV7CiAgICBiYWNrZ3J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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;AAGA","file":"registro_2.vue","sourceRoot":"src/components","sourcesContent":["<template>\n \n <div class=\"container formulario\">\n <!-- <p>{{campos_de_conocimiento_seleccionado}}</p>\n <p>{{campos_de_conocimiento}}</p>\n <p>{{lineas_de_investigacion_seleccionado}}</p>\n <p>{{lineas_de_investigacion}}</p> -->\n <!-- <p>{{p}}</p>\n <p>{{inputs}}</p> -->\n <h1>Datos del proyecto</h1>\n\n <div class=\"row\">\n <div class=\"col inputs_nombre\">\n <input type=\"text\" class=\"cuadro\" placeholder=\"Nombre del Proyecto\" v-model=\"nombre_proyecto\" >\n <input type=\"text\" class=\"cuadro\" placeholder=\"Disciplina\" v-model=\"disciplina\" >\n </div>\n \n </div>\n <div class=\"row separacion\" >\n <div class=\"col-md-6\">\n\n <table class=\"table\" >\n <tr>\n <th>\n Campos de Conocimiento\n </th>\n </tr>\n <tr v-for=\"item in campos_de_conocimiento\" v-bind:key=\"item.id\" >\n <td class=\"renglon select_verde \" v-text=\"item.nombre\" @click=\"seleccionar_campo(item.id_campo)\" v-if=\"verificar_selec(item.id_campo)\"></td>\n <td class=\"renglon\" v-text=\"item.nombre\" @click=\"seleccionar_campo(item.id_campo)\" v-else></td> \n </tr>\n </table>\n </div>\n <div class=\"col\">\n\n <table class=\"table\" >\n <tr>\n <th> \n Lineas de Investigación\n </th>\n </tr>\n <tr v-for=\"item in lineas_de_investigacion\" v-bind:key=\"item.id\" >\n <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>\n <td class=\"renglon\" v-text=\"item.nombre\" @click=\"seleccionar_linea(item.id_linea_investigacion)\" v-else></td> \n \n </tr>\n </table>\n\n\n </div>\n </div>\n <div class=\"row separacion\">\n <div class=\"col\">\n <textarea class=\"form-control\" rows=\"5\" id=\"comment\" name=\"text\" placeholder=\"Objetivo General\" v-model=\"objetivo_general\"></textarea>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col \">\n <div class=\"form-group\" v-for=\"(inp,k) in inputs\" :key=\"k\">\n <input type=\"text\" class=\"form-control\" placeholder=\"Objetivo Particular\" v-model=\"inp.name\">\n \n </div>\n </div>\n </div> \n <div class=\"row\">\n <div class=\"col\">\n <button class=\"button_agregar rojo\" @click=\"remove()\" v-show=\" inputs.length > 3\">-</button>\n </div>\n <div class=\"col-6\">\n <button class=\"button_agregar verde\" @click=\"add()\" >+</button>\n \n </div>\n </div> \n\n\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"entrar\">\n <button class=\"button \" v-if=\"listo()\" >Siguiente</button>\n <p class=\"botton_falso\" v-else>Siguiente</p>\n </div>\n </div>\n </div> \n\n </div> \n\n</template>\n\n\n<script>\n\nimport axios from 'axios';\nimport config from '../config/config.js'\n\nexport default {\n data(){\n return {\n campos_de_conocimiento:[],\n campos_de_conocimiento_seleccionado:[],\n lineas_de_investigacion: [],\n lineas_de_investigacion_seleccionado: [],\n objetivos_particulares:[],\n p: '',\n name : '',\n inputs:([{name: ''},{name: ''},{name: ''}]),\n counter:3,\n nombre_proyecto:'',\n disciplina: '',\n objetivo_general:''\n \n }\n },\n methods:{\n listo()\n {\n if(this.lineas_de_investigacion_seleccionado.length==0)\n {\n this.p=\"lineas\";\n return false;\n }\n if(this.campos_de_conocimiento_seleccionado.length==0)\n {\n this.p=\"campos\";\n return false;\n }\n if(this.nombre_proyecto=='')\n {\n this.p=\"nolmbre\";\n return false;\n }\n if(this.disciplina=='')\n {\n this.p=\"disciplina\";\n return false;\n }\n if(this.objetivo_general=='')\n {\n this.p=\"general\";\n return false;\n }\n if(this.inputs[0].name=='' || this.inputs[1].name=='' || this.inputs[2].name=='' )\n {\n this.p=this.inputs[0].name+\" \"+this.inputs[1].name+\" \"+this.inputs[2].name;\n return false;\n }\n return true;\n \n }\n ,\n verificar_selec(id_campo){\n let ban=0;\n this.campos_de_conocimiento_seleccionado.forEach(element=>{\n if(element==id_campo)\n ban=1;\n });\n if(ban==1)\n return true;\n else\n return false;\n\n }\n ,\n seleccionar_campo(id_campo)\n {\n let ban=0;\n let con=0;\n \n this.campos_de_conocimiento_seleccionado.forEach(element=>{\n if(element==id_campo)\n ban=1;\n \n if(ban==0)\n con++;\n });\n if(ban==0)\n {\n this.campos_de_conocimiento_seleccionado.push(id_campo);\n }\n else{\n this.campos_de_conocimiento_seleccionado.splice(con,1);\n }\n \n },\n verificar_selec_linea (id_linea){\n let ban=0;\n this.lineas_de_investigacion_seleccionado.forEach(element=>{\n if(element==id_linea)\n ban=1;\n });\n if(ban==1)\n return true;\n else\n return false;\n\n }\n ,\n seleccionar_linea(id_linea)\n {\n let ban=0;\n let con=0;\n \n this.lineas_de_investigacion_seleccionado.forEach(element=>{\n if(element==id_linea)\n ban=1;\n \n if(ban==0)\n con++;\n });\n if(ban==0)\n {\n this.lineas_de_investigacion_seleccionado.push(id_linea);\n }\n else{\n this.lineas_de_investigacion_seleccionado.splice(con,1);\n }\n \n }\n ,\n traer_campos_de_conocimiento()\n {\n axios.post(`${config.api}/traer_campos`).then(response=>{\n this.p=response;\n this.campos_de_conocimiento=response.data.campos;\n })\n },\n traer_lineas_de_investigacion()\n {\n axios.post(`${config.api}/traer_lineas`).then(response=>{\n this.lineas_de_investigacion=response.data.lineas;\n \n })\n },\n add() {\n this.inputs.push({ name: '' });\n },\n remove() {\n this.inputs.splice( this.inputs.length-1,1);\n }\n\n },\n created()\n {\n this.traer_campos_de_conocimiento();\n this.traer_lineas_de_investigacion();\n }\n \n} \n</script>\n\n\n<style scoped>\n.separacion{\n margin-bottom: 3rem;\n}\n.select_verde{\n background-color: rgb(31, 182, 31);\n}\n.button_agregar {\n background-color: #1B3D70; /* Green */\n border: none;\n color: white;\n height: 3rem;\n width: 4rem;\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n font-size: 1.5rem;\n border-radius: .5rem;\n -webkit-transition-duration: 0.4s; /* Safari */\n transition-duration: 0.4s;\n box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);\n margin-bottom: 3rem;\n margin-top:1rem;\n}\n.verde:hover{\n background-color: rgb(35, 143, 35);\n}\n\n.rojo:hover{\n background-color: rgb(172, 20, 20);\n}\n\n.button {\n background-color: #1B3D70; /* Green */\n border: none;\n color: white;\n padding: 1rem 6rem;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n font-size: 1.5rem;\n border-radius: 1rem;\n -webkit-transition-duration: 0.4s; /* Safari */\n transition-duration: 0.4s;\n box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);\n}\n\n.botton_falso{\n background-color: #CCC; /* Green */\n border: none;\n color: white;\n padding: 1rem 6rem;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n font-size: 1.5rem;\n border-radius: 1rem;\n -webkit-transition-duration: 0.4s; /* Safari */\n transition-duration: 0.4s;\n box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);\n}\n\n.button:hover {\n background-color: #bb8800; /* Green */\n color: white;\n}\n\n\n\n.cuadro{\n height: 4rem;\n width: 15rem;\n border-top: white;\n border-right:white;\n border-left: white;\n border-bottom-color:black;\n font-size: 1rem;\n margin-bottom: 2rem;\n \n}\n\n.formulario{\n margin-top: 5rem;\n margin-bottom: 5rem;\n}\n.renglon:hover{\n background-color: rgb(31, 182, 31);\n}\n\n.inputs_nombre{\n margin-top: 4rem;\n margin-bottom: 2rem;\n}\n@media screen and (min-width: 768px) {\n \n\n.registro form div input[type=\"text\"]{\n height: 300rem;\n}\n.cuadro{\n height: 3rem;\n width: 25rem;\n border-top: white;\n border-right:white;\n border-left: white;\n border-bottom-color:black;\n margin-left: 2rem;\n margin-bottom: 3rem;\n\n font-size: 1.5rem;\n padding-left: 2rem;\n}\n\n.inputs_nombre{\n margin-top: 4rem;\n margin-bottom: 2rem;\n}\n\n \n}\n\n</style>"]}]}