{"version":3,"sources":["webpack:///./src/views/Admin/ofertaEducativa/Especialidades.vue?cf87","webpack:///./src/views/Admin/js/ListadoEspecialidades.js","webpack:///./src/views/Admin/js/ListadoEspecialidades.js?a958","webpack:///./src/views/Admin/ofertaEducativa/Especialidades.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","ConsultarEspecialidad","model","value","callback","$$v","estatus","expression","_l","item","index","isSelected","text","$event","$set","permisoGuardar","_v","_e","especialidades","scopedSlots","_u","key","fn","ref","data","tr","indextr","idProgramaUnique","programaEducativo","_s","perfilIngreso","requisitos","permisoActivaInactivar","CambiarStatus","permisoEliminar","del","idEspecialidad","permisoConsultar","slot","EliminarRegistro","staticRenderFns","EstatusRegistro","pagina","methods","status","fetch","baseUrl","method","headers","sessionStorage","getItem","then","rs","json","catch","error","console","log","result","forEach","indx","push","permisos","id","event","ObtenerListado","ComboEstatus","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,YAAY,CAACE,YAAY,gBAAgBC,MAAM,CAAC,aAAe,GAAG,YAAc,UAAU,MAAQ,wBAAwBC,GAAG,CAAC,OAASR,EAAIS,uBAAuBC,MAAM,CAACC,MAAOX,EAAW,QAAEY,SAAS,SAAUC,GAAMb,EAAIc,QAAQD,GAAKE,WAAW,YAAYf,EAAIgB,GAAIhB,EAAmB,iBAAE,SAASiB,EAAKC,GAAO,OAAOd,EAAG,iBAAiB,CAACG,MAAM,CAAC,cAAcU,EAAKE,WAAW,MAAQF,EAAKN,MAAM,KAAOM,EAAKG,MAAMZ,GAAG,CAAC,oBAAoB,SAASa,GAAQ,OAAOrB,EAAIsB,KAAKL,EAAM,aAAcI,IAAS,qBAAqB,SAASA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KAI3CV,sBAAuB,SAAS+D,GAC/BvE,KAAKyB,eAAiB,GACtBzB,KAAKwE,eAAexE,KAAKa,UAG1B,cAAcyD,GACb,OAAQpB,QAAQV,cAAc8B,EAAGtE,KAAKiD,SAGvC,mBACC,OAAQC,QAAQJ,iBAAiB9C,KAAK2C,eAAe3C,KAAKiD,QAC1DjD,KAAK0C,KAAM,IAGjB,UACC1C,KAAKwE,eAAe,GACjBxE,KAAKyE,iBC5EyI,I,YCO/IC,EAAY,eACd,EACA5E,EACAiD,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-2d21b8f6.91bd0909.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"vx-row mb-2\"},[_c('div',{staticClass:\"vx-col w-1/2\"},[_c('vs-select',{staticClass:\"selectExample\",attrs:{\"autocomplete\":\"\",\"placeholder\":\"Estatus\",\"width\":\"40%; margin-top:18px\"},on:{\"change\":_vm.ConsultarEspecialidad},model:{value:(_vm.estatus),callback:function ($$v) {_vm.estatus=$$v},expression:\"estatus\"}},_vm._l((_vm.EstatusRegistro),function(item,index){return _c('vs-select-item',{attrs:{\"is-selected\":item.isSelected,\"value\":item.value,\"text\":item.text},on:{\"update:isSelected\":function($event){return _vm.$set(item, \"isSelected\", $event)},\"update:is-selected\":function($event){return _vm.$set(item, \"isSelected\", $event)}}})}),1)],1),(_vm.permisoGuardar==1)?_c('div',{staticClass:\"mt-5 vx-col sm:w-1/2 w-full mb-2\"},[_c('router-link',{attrs:{\"to\":\"/ArmarOfertaEducativa/0\"}},[_c('vs-button',{staticClass:\"vs-component vs-button vs-button-primary vs-button-filled imh-right small\"},[_c('i',{staticClass:\"material-icons\"},[_vm._v(\"add\")])]),_c('br'),_c('br')],1)],1):_vm._e()]),_c('vs-table',{attrs:{\"max-items\":\"10\",\"pagination\":\"\",\"search\":\"\",\"data\":_vm.especialidades,\"stripe\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.data;\nreturn _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"id\":data[indextr].idProgramaUnique}},[_c('vs-td',{attrs:{\"data\":data[indextr].programaEducativo}},[_vm._v(\"\\n \"+_vm._s(data[indextr].programaEducativo)+\"\\n \")]),_c('vs-td',{attrs:{\"data\":data[indextr].perfilIngreso}},[_vm._v(\"\\n \"+_vm._s(data[indextr].perfilIngreso)+\"\\n \")]),_c('vs-td',{attrs:{\"data\":data[indextr].requisitos}},[_vm._v(\"\\n \"+_vm._s(data[indextr].requisitos)+\"\\n \")]),_c('vs-td',[_c('div',{staticClass:\"vx-row\"},[_c('div',{staticClass:\"vx-col w-1/3 px-1 flex items-center\"},[(_vm.permisoActivaInactivar==1)?[(data[indextr].estatus == 1 )?_c('i',{staticClass:\"material-icons imh-list-icons text-success\",on:{\"click\":function($event){return _vm.CambiarStatus(data[indextr].idProgramaUnique)}}},[_vm._v(\"cached\")]):_c('i',{staticClass:\"material-icons imh-list-icons text-danger\",on:{\"click\":function($event){return _vm.CambiarStatus(data[indextr].idProgramaUnique)}}},[_vm._v(\"cached\")])]:_vm._e()],2),_c('div',{staticClass:\"vx-col w-1/3 px-1 flex items-center\"},[(_vm.permisoEliminar==1)?_c('i',{staticClass:\"material-icons imh-list-icons text-danger\",on:{\"click\":function($event){_vm.del=true, _vm.idEspecialidad = data[indextr].idProgramaUnique}}},[_vm._v(\"delete_forever\")]):_vm._e()]),_c('div',{staticClass:\"vx-col w-1/3 px-1\"},[(_vm.permisoConsultar==1)?_c('router-link',{attrs:{\"to\":'/programaEducativo/' + data[indextr].idProgramaUnique}},[_c('i',{staticClass:\"material-icons imh-list-icons text-primary-light\"},[_vm._v(\"search\")])]):_vm._e()],1)])])],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',{attrs:{\"sort-key\":\"programaEducativo\"}},[_vm._v(\"Nombre \")]),_c('vs-th',{attrs:{\"sort-key\":\"perfilIngreso\"}},[_vm._v(\"Perfil Ingreso\")]),_c('vs-th',{attrs:{\"sort-key\":\"requisitos\"}},[_vm._v(\"Requistos\")]),_c('vs-th',[_vm._v(\"Acciones\")])],1)],2),_c('vs-popup',{attrs:{\"title\":\"Eliminar Especialidad\",\"active\":_vm.del},on:{\"update:active\":function($event){_vm.del=$event}}},[_c('p',[_vm._v(\"¿Estas seguro que deseas eliminar la especialidad?\")]),_c('br'),_c('div',{staticClass:\"col-md-12 imh-right\"},[_c('vs-button',{attrs:{\"color\":\"primary\",\"type\":\"filled\"},on:{\"click\":_vm.EliminarRegistro}},[_vm._v(\"Continuar\\n \")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/* eslint-disable */\r\nimport BASE from '../../../../vue.config.js'\r\nconst $ = require('jquery')\r\nimport 'prismjs'\r\nimport 'prismjs/themes/prism.css'\r\nimport Vue from 'vue/dist/vue.js'\r\nimport listado from '../../../assets/js/ScriptListadoGeneral.js'\r\n\r\nexport default {\r\n data() {\r\n \treturn{\r\n \t \tespecialidades:[],\r\n\t \tEstatusRegistro:'',\r\n\t \testatus:1,\r\n\t \tdel: false,\r\n\t \tidEspecialidad:'',\r\n\t \tpagina:'especialidades',\r\n\t \tpermisoGuardar:0,\r\n\t \tpermisoActivaInactivar:0,\r\n\t \tpermisoEliminar:0,\r\n\t \tpermisoConsultar:0\r\n\t }\t\r\n},\r\n\t methods: {\r\n\t \tObtenerListado(status){\r\n\t \t\t\r\n\t\t fetch(`${BASE.baseUrl}api/ListadoProgramaEducativo/${status}`, {\r\n\t\t method: 'GET',\r\n\t\t headers: {\r\n\t\t \t\t 'Authorization': sessionStorage.getItem('token'),\r\n\t\t \t\t 'pagina':'especialidades',\r\n\t\t \t\t 'paginaOrigen':'ListadoEspecialidades',\r\n\t\t \t\t 'tipoListado':7\r\n\t\t \t\t}\r\n\t\t \t})\r\n\t\t .then(rs => rs.json())\r\n\t\t .catch(error => console.log('error:', error))\r\n\t\t .then(rs => {\r\n\t\t if(rs.status == 200){\r\n\t\t rs.result.programaEducativo.forEach((item, indx) => {\r\n\t\t this.especialidades.push(item);\r\n\t\t });\r\n\t\t rs.result.permisos.forEach((item, indx) => {\r\n\t\t \tif (item.id == 1){ this.permisoGuardar = 1;}\r\n\t\t if (item.id == 3){ this.permisoActivaInactivar = 1;}\r\n\t\t if (item.id == 4){ this.permisoEliminar = 1;}\r\n\t\t if (item.id == 5){ this.permisoConsultar = 1;}\r\n\t\t });\r\n\t\t }\r\n\t\t });\r\n\t \t},\r\n\t \t\r\n\t \tComboEstatus(){\r\n\t \t\tthis.EstatusRegistro = [\r\n\t\t { text: 'Activo', value: 1, isSelected: false },\r\n\t\t { text: 'Inactivo', value: 0, isSelected: false },\r\n\t\t { text: 'Todos', value: 2, isSelected: false }\r\n \t\t]\r\n \t}, \r\n\r\n \tConsultarEspecialidad: function(event){\r\n \t\tthis.especialidades = [];\r\n \t\tthis.ObtenerListado(this.estatus);\r\n \t},\r\n\r\n \tCambiarStatus(id){\r\n \t\tlistado.methods.CambiarStatus(id,this.pagina);\r\n \t},\r\n\r\n \tEliminarRegistro(){\r\n \t\tlistado.methods.EliminarRegistro(this.idEspecialidad,this.pagina);\r\n \t\tthis.del = false;\r\n \t}\r\n\t},\r\n\tmounted(){\r\n\t\tthis.ObtenerListado(1);\r\n\t this.ComboEstatus();\r\n\t}\r\n}\r\n","import mod from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./ListadoEspecialidades.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./ListadoEspecialidades.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Especialidades.vue?vue&type=template&id=693e692c&\"\nimport script from \"../js/ListadoEspecialidades.js?vue&type=script&lang=js&\"\nexport * from \"../js/ListadoEspecialidades.js?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}