(window.webpackJsonp=window.webpackJsonp||[]).push([[256],{1868:function(e,t,n){"use strict";n.r(t);var r={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{hover:!0,headVariant:"light",currentPage:1,perPage:5,selectMode:"single",sortDesc:!1,pageSize:5,noCollapse:!0,pageOptions:[5,10,15,25,50,75,100],fields:[{key:"nroLicenca",label:"Nº Licença"},{key:"empresa.nomeFantasia",label:"Concessionária"},{key:"descricao",label:"Descrição",thStyle:{width:"500px !important"}},{key:"tipoCorrespondencia.descricao",label:"Tipo Licença"},{key:"entidade.nome",label:"Órgão Ambiental"},{key:"dataEmissao",label:"Data da Licença"},{key:"dataVencimento",label:"Data de Vencimento"},{key:"validade",label:"Validade"},{key:"status.descricao",label:"Status"},{key:"nroProcesso",label:"Nº Processo"},{key:"diasFaltantes",label:"Dias Faltantes"}]}},computed:{rows:function(){return this.items.length}},mounted:function(){this.totalRows=this.items.length}},l=n(42),component=Object(l.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-card",{staticClass:"mt-3"},[n("b-table",{staticClass:"table-scroll mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:e.hover,items:e.items,fields:e.fields,responsive:"sm","head-variant":e.headVariant,"no-border-collapse":!0,"busy-empty":!0,"current-page":e.currentPage,"per-page":e.perPage,"show-empty":"","empty-text":"Não há Licenças disponíveis.",selectable:"",busy:e.busy},on:{"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[n("div",{staticClass:"text-center text-primary my-2"},[n("b-spinner",{staticClass:"align-middle"}),e._v(" "),n("strong",[e._v("Carregando...")])],1)]},proxy:!0},{key:"cell(descricao)",fn:function(t){return[void 0===t.item.descricao?n("div",[e._v("\n        "+e._s("")+"\n      ")]):n("div",[e._v("\n        "+e._s(t.item.descricao.length>200?t.item.descricao.substring(0,200)+"...":t.item.descricao)+"\n      ")])]}},{key:"cell(dataEmissao)",fn:function(t){return[e._v("\n      "+e._s(e._f("formatDate")(t.item.dataEmissao))+"\n    ")]}},{key:"cell(dataVencimento)",fn:function(t){return[e._v("\n      "+e._s(e._f("formatDate")(t.item.dataVencimento))+"\n    ")]}}])}),e._v(" "),e.items.length>0?n("b-row",[e.items.length>e.perPage?n("b-col",{attrs:{md:"2","align-self":"start"}},[n("b-form-group",{staticClass:"mb-0",attrs:{horizontal:"",label:"Itens por página:"}},[n("b-form-select",{attrs:{options:e.pageOptions},model:{value:e.perPage,callback:function(t){e.perPage=t},expression:"perPage"}})],1)],1):e._e(),e._v(" "),n("b-col",{attrs:{"align-self":"end"}},[n("div",{staticClass:"text-right"},[n("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?n("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,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=8808a4d-1.2.11.js.map