(window.webpackJsonp=window.webpackJsonp||[]).push([[442],{1911:function(e,t,l){"use strict";l.r(t);var o={filters:{filterTipoEmpresa:function(e){return 1===e?"Concessionária":2===e?"Holding":void 0}},props:{items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:function(){return!1},required:!0},busy:{type:Boolean,default:function(){return!1},required:!0}},data:function(){return{fields:[{key:"nroProtocolo",label:"Nº Protocolo",sortable:!0},{key:"datHorSolicitacao",label:"Data",sortable:!0},{key:"titulo",label:"Título",sortable:!0},{key:"trecho.descricao",label:"Trecho",sortable:!0},{key:"kmInicial",label:"KM Inicial",sortable:!0},{key:"kmFinal",label:"KM Final",sortable:!0},{key:"cidade.descricao",label:"Cidade",sortable:!0},{key:"tipo.descricao",label:"Tipo",sortable:!0},{key:"objetivo.descricao",label:"Objetivo",sortable:!0},{key:"area.descricao",label:"Área Dem.",sortable:!0},{key:"areaEmpresa.descricao",label:"Área Resp.",sortable:!0},{key:"responsavelArea.nome",label:"Responsável Resp.",sortable:!0},{key:"usuario.nome",label:"Usuário",sortable:!0},{key:"statusInfo.descricao",label:"Status",sortable:!0},{key:"demandaPublica",label:"Tipo Demanda",sortable:!0},{key:"diasPrazo",label:"Cronograma (obra/serviço)",sortable:!0},{key:"valorDemanda",label:"Valor",sortable:!0},{key:"indicePriorizacaoGlobal",label:"Índice Priorização",sortable:!0},{key:"justificativa",label:"Justificativa",sortable:!0},{key:"observacoes",label:"Observação",sortable:!0}],hover:!0,headVariant:"light",noCollapse:!0,totalRows:1,currentPage:1,perPage:10}},computed:{rows:function(){return this.items.length}},mounted:function(){this.totalRows=this.items.length},methods:{getTipoDemandaPublica:function(e){var text="";return 0===e?text="Privada":1===e&&(text="Pública"),text}}},r=l(42),component=Object(r.a)(o,(function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("b-row",[l("b-col",{attrs:{cols:"12"}},[l("b-card",{staticClass:"mt-3"},[l("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:e.hover,"no-border-collapse":e.noCollapse,items:e.items,fields:e.fields,"head-variant":e.headVariant,responsive:"sm",selectable:"","empty-text":"Não há dados disponíveis.","show-empty":"","current-page":e.currentPage,"per-page":e.perPage,busy:e.busy},on:{"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[l("div",{staticClass:"text-center text-primary my-2"},[l("b-spinner",{staticClass:"align-middle"}),e._v(" "),l("strong",[e._v("Carregando...")])],1)]},proxy:!0},{key:"cell(datHorSolicitacao)",fn:function(t){return[l("span",[e._v(e._s(e._f("formatDateTime")(t.item.datHorSolicitacao)))])]}},{key:"cell(demandaPublica)",fn:function(t){return[l("span",[e._v(e._s(e.getTipoDemandaPublica(t.item.demandaPublica)))])]}}])}),e._v(" "),e.items.length>0?l("b-row",[l("b-col",{attrs:{"align-self":"end"}},[l("div",{staticClass:"text-right"},[l("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?l("b-pagination",{attrs:{"total-rows":e.rows,"per-page":e.perPage,align:"center",pills:""},model:{value:e.currentPage,callback:function(t){e.currentPage=t},expression:"currentPage"}}):e._e()],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=6b86744-1.2.11.js.map