{"version":3,"sources":["webpack:///./src/views/Profesor/ListadoGruposAsignados.vue?22a7","webpack:///./src/views/Profesor/js/ListadoGruposAsignados.js","webpack:///./src/views/Profesor/js/ListadoGruposAsignados.js?552b","webpack:///./src/views/Profesor/ListadoGruposAsignados.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","permisoGuardar","attrs","_v","_e","grupos","scopedSlots","_u","key","fn","ref","data","_l","tr","indextr","idGrupo","clave","_s","programaEducativo","modalidad","plantel","inscritos","permisoActivaInactivar","estatus","on","$event","CambiarStatus","idPlantel","permisoEliminar","del","name","params","grupo","slot","staticRenderFns","$","window","pagina","EstatusRegistro","permisoConsultar","methods","status","fetch","baseUrl","method","headers","sessionStorage","getItem","then","rs","json","catch","error","console","log","result","forEach","itemP","indexP","alumnos","asignaturas","push","permisos","item","indx","id","text","value","isSelected","EliminarRegistro","Consultar","event","getListaGruposAsignados","ComboEstatus","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,gCAAqD,GAApBN,EAAIO,eAAmBH,EAAG,MAAM,CAACE,YAAY,oCAAoC,CAACF,EAAG,cAAc,CAACI,MAAM,CAAC,GAAK,0BAA0B,CAACJ,EAAG,YAAY,CAACE,YAAY,6EAA6E,CAACF,EAAG,IAAI,CAACE,YAAY,kBAAkB,CAACN,EAAIS,GAAG,WAAWL,EAAG,MAAMA,EAAG,OAAO,IAAI,GAAGJ,EAAIU,OAAON,EAAG,WAAW,CAACI,MAAM,CAAC,YAAY,IAAI,WAAa,GAAG,SAAW,KAAK,OAAS,GAAG,KAAOR,EAAIW,OAAO,OAAS,IAAIC,YAAYZ,EAAIa,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASC,GACrrB,IAAIC,EA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,aAAe,mBAG1BC,KAAKC,GAAMA,EAAGC,QACdC,MAAMC,GAASC,QAAQC,IAAI,SAAUF,IACrCJ,KAAKC,IACJI,QAAQC,IAAIL,GACI,KAAbA,EAAGR,SACJQ,EAAGM,OAAOlD,OAAOmD,QAAQ,CAACC,EAAOC,KAC/BD,EAAME,QAAU,GAChBF,EAAMG,YAAc,GACpBjE,KAAKU,OAAOwD,KAAKJ,KAEnBR,EAAGM,OAAOO,SAASN,QAAQ,CAACO,EAAMC,KACb,GAAXD,EAAKE,KAAUtE,KAAKM,eAAiB,GAC1B,GAAX8D,EAAKE,KAAUtE,KAAK2B,uBAAyB,GAClC,GAAXyC,EAAKE,KAAUtE,KAAKiC,gBAAkB,GAC3B,GAAXmC,EAAKE,KAAUtE,KAAK4C,iBAAmB,SAKvD,eACE5C,KAAK2C,gBAAkB,CACjB,CAAE4B,KAAM,SAAUC,MAAO,EAAGC,YAAY,GACxC,CAAEF,KAAM,WAAYC,MAAO,EAAGC,YAAY,GAC1C,CAAEF,KAAM,QAASC,MAAO,EAAGC,YAAY,KAG/C,cAAcH,GACV,OAAQzB,QAAQd,cAAcuC,EAAGtE,KAAK0C,SAE1C,mBACI,OAAQG,QAAQ6B,iBAAiB1E,KAAKgC,UAAUhC,KAAK0C,QACrD1C,KAAKkC,KAAM,GAEfyC,UAAW,SAASC,GAChB5E,KAAKU,OAAS,GACdV,KAAK6E,wBAAwB7E,KAAK4B,WAGxC,UAGE5B,KAAK6E,wBAAwB,GAC7B7E,KAAK8E,iBC1E2I,I,YCOhJC,EAAY,eACd,EACAjF,EACAyC,GACA,EACA,KACA,KACA,MAIa,aAAAwC,E","file":"js/chunk-2d0c8049.bbc17213.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\"},[_c('div',{staticClass:\"vx-col sm:w-1/2 w-full mb-2\"}),(_vm.permisoGuardar==1)?_c('div',{staticClass:\"mt-5 vx-col sm:w-1/2 w-full mb-2\"},[_c('router-link',{attrs:{\"to\":\"/DetalleGrupoAsignado\"}},[_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\":\"5\",\"pagination\":\"\",\"maxItems\":\"10\",\"search\":\"\",\"data\":_vm.grupos,\"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].idGrupo}},[_c('vs-td',{attrs:{\"data\":data[indextr].clave}},[_vm._v(\"\\n \"+_vm._s(data[indextr].clave)+\"\\n \")]),_c('vs-td',{attrs:{\"data\":data[indextr].programaEducativo}},[_vm._v(\"\\n \"+_vm._s(data[indextr].programaEducativo)+\"\\n \")]),_c('vs-td',{attrs:{\"data\":data[indextr].modalidad}},[_vm._v(\"\\n \"+_vm._s(data[indextr].modalidad)+\"\\n \")]),_c('vs-td',{attrs:{\"data\":data[indextr].plantel}},[_vm._v(\"\\n \"+_vm._s(data[indextr].plantel)+\"\\n \")]),_c('vs-td',{attrs:{\"data\":data[indextr].inscritos}},[_vm._v(\"\\n \"+_vm._s(data[indextr].inscritos)+\"\\n \")]),_c('vs-td',[(_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].idPlantel)}}},[_vm._v(\"cached\")]):_c('i',{staticClass:\"material-icons imh-list-icons text-danger\",on:{\"click\":function($event){return _vm.CambiarStatus(data[indextr].idPlantel)}}},[_vm._v(\"cached\")]),_vm._v(\"  \\n \")]:_vm._e(),(_vm.permisoEliminar==1)?_c('i',{staticClass:\"material-icons imh-list-icons text-danger\",on:{\"click\":function($event){_vm.del=true, _vm.idPlantel = data[indextr].idPlantel}}},[_vm._v(\"delete_forever\")]):_vm._e(),_vm._v(\"  \\n \"),_c('router-link',{attrs:{\"to\":{\n name:'DetalleGrupoAsignado',\n params:{grupo:data[indextr]} \n }}},[_c('i',{staticClass:\"material-icons imh-list-icons text-primary-light\"},[_vm._v(\"search\")])])],2)],1)})}}])},[_c('template',{slot:\"thead\"},[_c('vs-th',{attrs:{\"sort-key\":\"nombre\"}},[_vm._v(\"Clave\")]),_c('vs-th',{attrs:{\"sort-key\":\"direccion\"}},[_vm._v(\"Programa Educativo\")]),_c('vs-th',{attrs:{\"sort-key\":\"nombre\"}},[_vm._v(\"Modalidad\")]),_c('vs-th',{attrs:{\"sort-key\":\"direccion\"}},[_vm._v(\"Plantel\")]),_c('vs-th',{attrs:{\"sort-key\":\"telefono\"}},[_vm._v(\"Inscritos\")]),_c('vs-th',[_vm._v(\"Acciones\")])],1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/* eslint-disable */\r\nimport BASE from '../../../../vue.config.js'\r\nimport listado from '../../../assets/js/ScriptListadoGeneral.js'\r\n\r\nconst $ = require('jquery')\r\nwindow.$ = $\r\n\r\nexport default {\r\n data: () => ({\r\n grupos: [],\r\n pagina:'grupos',\r\n estatus:1,\r\n del: false,\r\n EstatusRegistro:'',\r\n idPlantel:'',\r\n permisoGuardar:0,\r\n permisoActivaInactivar:0,\r\n permisoEliminar:0,\r\n permisoConsultar:0\r\n }),\r\n methods: {\r\n\r\n getListaGruposAsignados(status){\r\n this.grupos = [];\r\n fetch(`${BASE.baseUrl}api/ListadoGrupos/${status}/2`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': sessionStorage.getItem('token'),\r\n 'pagina':'grupos',\r\n 'paginaOrigen':'listadoGrupos'\r\n }\r\n })\r\n .then(rs => rs.json())\r\n .catch(error => console.log('error:', error))\r\n .then(rs => {\r\n console.log(rs);\r\n if(rs.status == 200){\r\n rs.result.grupos.forEach((itemP, indexP) => {\r\n itemP.alumnos = [];\r\n itemP.asignaturas = [];\r\n this.grupos.push(itemP);\r\n });\r\n rs.result.permisos.forEach((item, indx) => {\r\n if (item.id == 1){ this.permisoGuardar = 1;}\r\n if (item.id == 3){ this.permisoActivaInactivar = 1;}\r\n if (item.id == 4){ this.permisoEliminar = 1;}\r\n if (item.id == 5){ this.permisoConsultar = 1;}\r\n });\r\n }\r\n });\r\n },\r\n ComboEstatus(){\r\n this.EstatusRegistro = [\r\n { text: 'Activo', value: 1, isSelected: false },\r\n { text: 'Inactivo', value: 0, isSelected: false },\r\n { text: 'Todos', value: 2, isSelected: false }\r\n ]\r\n },\r\n CambiarStatus(id){\r\n listado.methods.CambiarStatus(id,this.pagina);\r\n },\r\n EliminarRegistro(){\r\n listado.methods.EliminarRegistro(this.idPlantel,this.pagina);\r\n this.del = false;\r\n },\r\n Consultar: function(event){\r\n this.grupos = [];\r\n this.getListaGruposAsignados(this.estatus);\r\n },\r\n },\r\n mounted(){\r\n\r\n\r\n this.getListaGruposAsignados(1);\r\n this.ComboEstatus();\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./ListadoGruposAsignados.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./ListadoGruposAsignados.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ListadoGruposAsignados.vue?vue&type=template&id=5a297a39&\"\nimport script from \"./js/ListadoGruposAsignados.js?vue&type=script&lang=js&\"\nexport * from \"./js/ListadoGruposAsignados.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":""}