(window.webpackJsonp=window.webpackJsonp||[]).push([[325],{1331:function(t,e,n){"use strict";n.r(e);var r={props:{items:{type:Array,default:function(){return[]},required:!0},editCell:{type:Function,default:function(){return!1},required:!0}},data:function(){return{fields:[{key:"sigla",label:"Sigla"},{key:"razaoSocial",label:"Razão Social"},{key:"nomeFantasia",label:"Nome"},{key:"datInicioContrato",label:"Inicio Contrato"},{key:"datTerminoContrato",label:"Término Contrato"}],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}},o=n(42),component=Object(o.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-row",[n("b-col",{attrs:{cols:"12"}},[n("b-card",{staticClass:"mt-3"},[n("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:t.hover,"no-border-collapse":t.noCollapse,items:t.items,fields:t.fields,"head-variant":t.headVariant,responsive:"sm",selectable:"","empty-text":"Não há dados disponíveis.","show-empty":"","current-page":t.currentPage,"per-page":t.perPage,busy:!(t.items.length>0)},on:{"row-clicked":t.editCell},scopedSlots:t._u([{key:"table-busy",fn:function(){return[n("div",{staticClass:"text-center text-primary my-2"},[n("b-spinner",{staticClass:"align-middle"}),t._v(" "),n("strong",[t._v("Carregando...")])],1)]},proxy:!0},{key:"cell(datInicioContrato)",fn:function(e){return[t._v("\n          "+t._s(t._f("formatDate")(e.item.datInicioContrato))+"\n        ")]}},{key:"cell(datTerminoContrato)",fn:function(e){return[t._v("\n          "+t._s(t._f("formatDate")(e.item.datTerminoContrato))+"\n        ")]}}])}),t._v(" "),t.items.length>0?n("b-row",[n("b-col",{attrs:{"align-self":"end"}},[n("div",{staticClass:"text-right"},[n("b",[t._v("Itens:")]),t._v(" "+t._s(t.items.length))])])],1):t._e(),t._v(" "),t.items.length>5?n("b-pagination",{attrs:{"total-rows":t.rows,"per-page":t.perPage,align:"center",pills:""},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=4130ba7-1.2.11.js.map