\n \n \n \n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n \n \n {{ $t('GERAL.LIMPAR') }}\n \n \n \n \n {{ $t('GERAL.GERAR_RELATORIO') }}\n \n \n \n \n {{ $t('ACADEMICO.EXPORTAR_PARA_EXCEL') }}\n \n \n \n
\n\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=71eaa2f7&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Index.vue?vue&type=style&index=0&id=71eaa2f7&prod&lang=css&\"\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","import ApiService from '@/common/api/api.service';\n\nconst AnoLetivoService = {\n async listar(paginacao) {\n let { data } = await ApiService.get(`AnoLetivo`, { params: paginacao });\n return data;\n },\n async buscarPorId(id) {\n let { data } = await ApiService.get(`AnoLetivo/${id}`);\n return data;\n },\n async buscarPorIdComSegmentacao(id) {\n let { data } = await ApiService.get(`AnoLetivo/obter-lista-segmentacoes`, {\n params: { id },\n });\n return data;\n },\n async salvar(form) {\n let result = [];\n if (!form.id) result = await ApiService.post(`AnoLetivo`, form);\n else result = await ApiService.put(`AnoLetivo`, form);\n return result;\n },\n async adicionarTurma(form) {\n return await ApiService.post(`AnoLetivo/adicionar-turma`, form);\n },\n async removerTurma(form) {\n return await ApiService.delete(\n `AnoLetivo/remover-turma?AnoLetivoId=${form.anoLetivoId}&TurmaId=${form.turmaId}`\n );\n },\n async excluir(id) {\n return await ApiService.delete(`AnoLetivo/${id}`);\n },\n async encerrarPeriodo(id) {\n return await ApiService.put(`AnoLetivo/encerramento?anoLetivoId=${id}`);\n },\n\n // docente\n async adicionarDocente(form) {\n const { data } = await ApiService.post(`AnoLetivo/adicionar-docente`, form);\n return data;\n },\n\n async removerDocente(form) {\n const { data } = await ApiService.delete(\n `AnoLetivo/remover-docente?AnoLetivoId=${form.anoLetivoId}&anoLetivoDocenteId=${form.anoLetivoDocenteId}`\n );\n return data;\n },\n async obterPeriodoLetivo(paginacao, campoOrdenado, ordem) {\n let { data } = await ApiService.get(`AnoLetivo/obter-periodo-letivo`, { \n params: { \n NumeroDaPagina: paginacao.numeroDaPagina,\n TamanhoDaPagina: paginacao.tamanhoDaPagina, \n CampoOrdenado : campoOrdenado, \n OrdenacaoAscendente:ordem\n },\n } );\n return data;\n },\n};\n\nexport default AnoLetivoService;\n"],"sourceRoot":""}