1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{241:function(e,t,n){"use strict";n.r(t);var o={props:{path:String,deleteFromLocalStorage:Array},methods:{regresar:function(){if(this.deleteFromLocalStorage)for(var i=0;i<this.deleteFromLocalStorage.length;i++)localStorage.removeItem(this.deleteFromLocalStorage[i]);this.$router.push(this.path)}}},r=n(8),component=Object(r.a)(o,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-button",{staticClass:"boton border-info my-5",attrs:{type:"is-info is-light ","icon-left":"arrow-left-box"},on:{click:function(t){return e.regresar()}}},[e._v("\n Regresar\n")])}),[],!1,null,null,null);t.default=component.exports},379:function(e,t,n){var map={"./af":242,"./af.js":242,"./ar":243,"./ar-dz":244,"./ar-dz.js":244,"./ar-kw":245,"./ar-kw.js":245,"./ar-ly":246,"./ar-ly.js":246,"./ar-ma":247,"./ar-ma.js":247,"./ar-sa":248,"./ar-sa.js":248,"./ar-tn":249,"./ar-tn.js":249,"./ar.js":243,"./az":250,"./az.js":250,"./be":251,"./be.js":251,"./bg":252,"./bg.js":252,"./bm":253,"./bm.js":253,"./bn":254,"./bn-bd":255,"./bn-bd.js":255,"./bn.js":254,"./bo":256,"./bo.js":256,"./br":257,"./br.js":257,"./bs":258,"./bs.js":258,"./ca":259,"./ca.js":259,"./cs":260,"./cs.js":260,"./cv":261,"./cv.js":261,"./cy":262,"./cy.js":262,"./da":263,"./da.js":263,"./de":264,"./de-at":265,"./de-at.js":265,"./de-ch":266,"./de-ch.js":266,"./de.js":264,"./dv":267,"./dv.js":267,"./el":268,"./el.js":268,"./en-au":269,"./en-au.js":269,"./en-ca":270,"./en-ca.js":270,"./en-gb":271,"./en-gb.js":271,"./en-ie":272,"./en-ie.js":272,"./en-il":273,"./en-il.js":273,"./en-in":274,"./en-in.js":274,"./en-nz":275,"./en-nz.js":275,"./en-sg":276,"./en-sg.js":276,"./eo":277,"./eo.js":277,"./es":278,"./es-do":279,"./es-do.js":279,"./es-mx":280,"./es-mx.js":280,"./es-us":281,"./es-us.js":281,"./es.js":278,"./et":282,"./et.js":282,"./eu":283,"./eu.js":283,"./fa":284,"./fa.js":284,"./fi":285,"./fi.js":285,"./fil":286,"./fil.js":286,"./fo":287,"./fo.js":287,"./fr":288,"./fr-ca":289,"./fr-ca.js":289,"./fr-ch":290,"./fr-ch.js":290,"./fr.js":288,"./fy":291,"./fy.js":291,"./ga":292,"./ga.js":292,"./gd":293,"./gd.js":293,"./gl":294,"./gl.js":294,"./gom-deva":295,"./gom-deva.js":295,"./gom-latn":296,"./gom-latn.js":296,"./gu":297,"./gu.js":297,"./he":298,"./he.js":298,"./hi":299,"./hi.js":299,"./hr":300,"./hr.js":300,"./hu":301,"./hu.js":301,"./hy-am":302,"./hy-am.js":302,"./id":303,"./id.js":303,"./is":304,"./is.js":304,"./it":305,"./it-ch":306,"./it-ch.js":306,"./it.js":305,"./ja":307,"./ja.js":307,"./jv":308,"./jv.js":308,"./ka":309,"./ka.js":309,"./kk":310,"./kk.js":310,"./km":311,"./km.js":311,"./kn":312,"./kn.js":312,"./ko":313,"./ko.js":313,"./ku":314,"./ku.js":314,"./ky":315,"./ky.js":315,"./lb":316,"./lb.js":316,"./lo":317,"./lo.js":317,"./lt":318,"./lt.js":318,"./lv":319,"./lv.js":319,"./me":320,"./me.js":320,"./mi":321,"./mi.js":321,"./mk":322,"./mk.js":322,"./ml":323,"./ml.js":323,"./mn":324,"./mn.js":324,"./mr":325,"./mr.js":325,"./ms":326,"./ms-my":327,"./ms-my.js":327,"./ms.js":326,"./mt":328,"./mt.js":328,"./my":329,"./my.js":329,"./nb":330,"./nb.js":330,"./ne":331,"./ne.js":331,"./nl":332,"./nl-be":333,"./nl-be.js":333,"./nl.js":332,"./nn":334,"./nn.js":334,"./oc-lnc":335,"./oc-lnc.js":335,"./pa-in":336,"./pa-in.js":336,"./pl":337,"./pl.js":337,"./pt":338,"./pt-br":339,"./pt-br.js":339,"./pt.js":338,"./ro":340,"./ro.js":340,"./ru":341,"./ru.js":341,"./sd":342,"./sd.js":342,"./se":343,"./se.js":343,"./si":344,"./si.js":344,"./sk":345,"./sk.js":345,"./sl":346,"./sl.js":346,"./sq":347,"./sq.js":347,"./sr":348,"./sr-cyrl":349,"./sr-cyrl.js":349,"./sr.js":348,"./ss":350,"./ss.js":350,"./sv":351,"./sv.js":351,"./sw":352,"./sw.js":352,"./ta":353,"./ta.js":353,"./te":354,"./te.js":354,"./tet":355,"./tet.js":355,"./tg":356,"./tg.js":356,"./th":357,"./th.js":357,"./tk":358,"./tk.js":358,"./tl-ph":359,"./tl-ph.js":359,"./tlh":360,"./tlh.js":360,"./tr":361,"./tr.js":361,"./tzl":362,"./tzl.js":362,"./tzm":363,"./tzm-latn":364,"./tzm-latn.js":364,"./tzm.js":363,"./ug-cn":365,"./ug-cn.js":365,"./uk":366,"./uk.js":366,"./ur":367,"./ur.js":367,"./uz":368,"./uz-latn":369,"./uz-latn.js":369,"./uz.js":368,"./vi":370,"./vi.js":370,"./x-pseudo":371,"./x-pseudo.js":371,"./yo":372,"./yo.js":372,"./zh-cn":373,"./zh-cn.js":373,"./zh-hk":374,"./zh-hk.js":374,"./zh-mo":375,"./zh-mo.js":375,"./zh-tw":376,"./zh-tw.js":376};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(map,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return map[e]}o.keys=function(){return Object.keys(map)},o.resolve=r,e.exports=o,o.id=379},385:function(e,t,n){"use strict";n.r(t);var o={data:function(){return{answers:{p1:"",p2:"",p3:[],p3Otro:""},b3Options:["Actividades descritas en el programa","Apoyo económico","Asesoría académica","Dependencia de la UNAM","Flexibilidad en horarios","Institución del sector público","Institucíon del sector social","Invitación de profesores","Modalidad de titulación por servicio social","Objetivos del programa","Oportunidad de desarrollo de tesis","Prestigio de la institución","Recomendación de compañeros"]}},watch:{"answers.p1":function(){this.$emit("childBToParent",this.answers)},"answers.p2":function(){this.$emit("childBToParent",this.answers)},"answers.p3":function(){this.$emit("childBToParent",this.answers)},"answers.p3Otro":function(){this.$emit("childBToParent",this.answers)}}},r=n(8),component=Object(r.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"B apartado"},[n("p",{staticClass:"is-size-3"},[e._v("B.INFORMACIÓN GENERAL SOBRE EL SERVICIO SOCIAL")]),e._v(" "),n("div",{staticClass:"field is-flex is-flex-direction-column SINO"},[n("p",[e._v("1.¿Conoces el reglamento de servicio social vigente de la UNAM?")]),e._v(" "),n("b-radio",{attrs:{"native-value":"true",type:"is-info"},model:{value:e.answers.p1,callback:function(t){e.$set(e.answers,"p1",t)},expression:"answers.p1"}},[e._v("\n Si\n ")]),e._v(" "),n("b-radio",{attrs:{"native-value":"false",type:"is-info"},model:{value:e.answers.p1,callback:function(t){e.$set(e.answers,"p1",t)},expression:"answers.p1"}},[e._v("\n No\n ")])],1),e._v(" "),n("div",{staticClass:"field is-flex is-flex-direction-column SINO"},[n("p",[e._v("\n 2.¿Conoces la normatividad vigente del servicio social de tu escuela o\n facultad?\n ")]),e._v(" "),n("b-radio",{attrs:{"native-value":"true",type:"is-info"},model:{value:e.answers.p2,callback:function(t){e.$set(e.answers,"p2",t)},expression:"answers.p2"}},[e._v("\n Si\n ")]),e._v(" "),n("b-radio",{attrs:{"native-value":"false",type:"is-info"},model:{value:e.answers.p2,callback:function(t){e.$set(e.answers,"p2",t)},expression:"answers.p2"}},[e._v("\n No\n ")])],1),e._v(" "),n("div",{staticClass:"field"},[n("p",[e._v("\n 3.Señala los tres principales criterios que utilizaste para seleccionar\n el programa de servicio social:\n ")]),e._v(" "),e._l(e.b3Options,(function(t,o){return n("div",{key:t,staticClass:"SINO"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.answers.p3,expression:"answers.p3"}],staticClass:"checkb",attrs:{type:"checkbox",disabled:e.answers.p3.length>=3||e.answers.p3.length>=2&&""!=e.answers.p3Otro},domProps:{value:o,checked:Array.isArray(e.answers.p3)?e._i(e.answers.p3,o)>-1:e.answers.p3},on:{change:function(t){var n=e.answers.p3,r=t.target,c=!!r.checked;if(Array.isArray(n)){var l=o,d=e._i(n,l);r.checked?d<0&&e.$set(e.answers,"p3",n.concat([l])):d>-1&&e.$set(e.answers,"p3",n.slice(0,d).concat(n.slice(d+1)))}else e.$set(e.answers,"p3",c)}}}),e._v("\n "+e._s(t)+"\n ")])})),e._v(" "),n("b-field",[n("b-input",{attrs:{disabled:e.answers.p3>=3,placeholder:"Otro (especificar)"},model:{value:e.answers.p3Otro,callback:function(t){e.$set(e.answers,"p3Otro",t)},expression:"answers.p3Otro"}})],1)],2)])}),[],!1,null,null,null);t.default=component.exports},430:function(e,t,n){var content=n(569);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,n(27).default)("151ca6b2",content,!0,{sourceMap:!1})},568:function(e,t,n){"use strict";n(430)},569:function(e,t,n){(t=n(26)(!1)).push([e.i,".centro{text-align:center}.footter{margin-bottom:6rem}",""]),e.exports=t},579:function(e,t,n){"use strict";n.r(t);var o=n(241),r=(n(108),n(16),n(239)),c=n.n(r),l=n(44),d=n.n(l),m={data:function(){return{alumno:{fechaNacimiento:"",fechaInicio:"",fechaFin:"",Usuario:{},Carrera:{},Status:{}},token:{headers:{token:localStorage.getItem("token")}},idCasoEspecial:localStorage.getItem("idCasoEspecial"),isLoading:!1}},methods:{editar:function(){this.$router.push("/admin/especial/casoEspecial/editar")},obtenerDatos:function(){var e=this;return d.a.get("".concat("https://venus.acatlan.unam.mx/serviciosocial","/caso_especial/?idCasoEspecial=").concat(this.idCasoEspecial),this.token).then((function(t){e.alumno=t.data})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))},confirmarLiberacion:function(){var e=this;this.isLoading=!0;var data={idCasoEspecial:this.idCasoEspecial};d.a.put("".concat("https://venus.acatlan.unam.mx/serviciosocial","/caso_especial/liberacion"),data,this.token).then((function(t){e.$buefy.dialog.alert("El servicio ha sido liberado"),localStorage.removeItem("idCasoEspecial"),e.$router.push("/admin/especial")})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))},fecha:function(e){var t=c()(e.substr(0,10));return"".concat(t.date(),"/").concat(t.month()+1,"/").concat(t.year())},motivo:function(e){return 1==e?"Tercera edad":2==e?"Capacidades diferentes":void 0},error:function(e){var t=!1;switch(e){case"invalid signature":e="Tu token no es valido, inicia sesión de nuevo.",t=!0;break;case"jwt expired":e="Tu sesión ha expirado, inicia sesión de nuevo.",t=!0;break;case"jwt malformed":e="No se encontro tu token, inicia sesión de nuevo.",t=!0;break;case"No hay token":e="Ocurrio un error al enviar tu token, inicia sesión de nuevo.",t=!0}this.$buefy.dialog.alert({title:"Error",message:e,type:"is-danger",hasIcon:!0,icon:"alert-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),1==t&&(localStorage.clear(),this.$router.push("/"))}},created:function(){this.obtenerDatos()}},v=(n(568),n(8)),component=Object(v.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return 11!=e.alumno.Status.idServicio||12!=e.alumno.Status.idServicio?n("div",{staticClass:"footter"},[e.alumno.Status?n("p",{staticClass:"is-size-2 mb-3"},[e._v("\n "+e._s(e.alumno.Status.status)+"\n ")]):e._e(),e._v(" "),e._m(0),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Número de cuenta: ")]),e._v(" "+e._s(e.alumno.Usuario.usuario)+"\n ")]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Nombre: ")]),e._v(" "+e._s(e.alumno.Usuario.nombre))]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Carrera: ")]),e._v(" "+e._s(e.alumno.Carrera.carrera))]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Correo: ")]),e._v(" "+e._s(e.alumno.correo))]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Dirección: ")]),e._v(" "+e._s(e.alumno.direccion))]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Teléfono: ")]),e._v(" "+e._s(e.alumno.telefono))]),e._v(" "),e.alumno.motivo?n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Motivo: ")]),e._v(e._s(e.motivo(e.alumno.motivo))+"\n ")]):e._e(),e._v(" "),e.alumno.institucion?n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Institución: ")]),e._v(e._s(e.alumno.institucion)+"\n ")]):e._e(),e._v(" "),e.alumno.dependencia?n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Dependencia: ")]),e._v(e._s(e.alumno.dependencia)+"\n ")]):e._e(),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Créditos: ")]),e._v(" "+e._s(e.alumno.creditos+"%"))]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Fecha de nacimiento: ")]),e._v("\n "+e._s(e.fecha(e.alumno.fechaNacimiento))+"\n ")]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Fecha de inicio: ")]),e._v("\n "+e._s(e.fecha(e.alumno.fechaInicio))+"\n ")]),e._v(" "),n("p",{staticClass:"is-size-5 mt-3"},[n("b",[e._v("Fecha de fin: ")]),e._v("\n "+e._s(e.fecha(e.alumno.fechaFin))+"\n ")]),e._v(" "),n("b-button",{staticClass:"is-info my-4",on:{click:function(t){return e.editar()}}},[e._v("\n Editar información\n ")]),e._v(" "),11===e.alumno.Status.idStatus||12===e.alumno.Status.idStatus?n("b-field",{staticClass:"centro"},[n("b-button",{staticClass:"boton border-info my-5",attrs:{type:"is-success"},on:{click:function(t){return e.confirmarLiberacion()}}},[e._v("\n Liberar\n ")])],1):e._e(),e._v(" "),n("b-loading",{attrs:{"is-full-page":!0,"can-cancel":!1},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}})],1):e._e()}),[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"is-size-3"},[t("b",[this._v("Datos personales")])])}],!1,null,null,null),j=component.exports;installComponents(component,{B:n(385).default});var f={components:{BotonRegresar:o.default,DatosPersonalesEspecial:j}},h=Object(v.a)(f,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container"},[t("BotonRegresar",{attrs:{path:"/admin/especial"}}),this._v(" "),t("DatosPersonalesEspecial")],1)}),[],!1,null,null,null);t.default=h.exports;installComponents(h,{BotonRegresar:n(241).default})}}]); |