(window.webpackJsonp=window.webpackJsonp||[]).push([[943],{2909:function(t,e,n){"use strict";n.r(e);var o={props:{editRodovia:{type:Function,default:function(){return!1}},findRodovias:{type:Function,default:function(){return!1}},items:{type:Array,default:function(){return[]}}},data:function(){return{busy:!1,currentPage:1,fields:[{key:"descricao",label:"Descrição",sortable:!0,sortKey:"descricao"},{key:"kmInicial",label:"Kilômetro Inicial (km)",sortable:!0,sortKey:"kmInicial",thStyle:{width:"14% !important"}},{key:"kmFinal",label:"Kilômetro Final (km)",sortable:!0,sortKey:"kmFinal",thStyle:{width:"14% !important"}}]}},computed:{rodovias:{get:function(){return this.items},set:function(t){this.$emit("update:items",t)}},rows:function(){return this.rodovias.length}},mounted:function(){this.findRodovias()}},r=n(42),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("b-table",{attrs:{striped:"",hover:"",fields:t.fields,items:t.rodovias,"busy-empty":!0,"show-empty":"","empty-text":"Não há dados de monitoração disponíveis.","per-page":10,"current-page":t.currentPage,busy:t.busy,"select-mode":"single",selectable:""},on:{"row-clicked":t.editRodovia},scopedSlots:t._u([{key:"table-busy",fn:function(){return[n("div",{staticClass:"text-center text-info my-2"},[n("b-spinner",{staticClass:"align-middle"}),t._v(" "),n("strong",[t._v("Carregando...")])],1)]},proxy:!0},{key:"cell(kmInicial)",fn:function(e){return[t._v(t._s(t._f("formatKm")(e.item.kmInicial)))]}},{key:"cell(kmFinal)",fn:function(e){return[t._v(t._s(t._f("formatKm")(e.item.kmFinal)))]}}])}),t._v(" "),t.rodovias.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.rodovias.length))])])],1):t._e(),t._v(" "),t.rodovias.length>=5?n("b-pagination",{attrs:{"total-rows":t.rows,"per-page":10,align:"center",pills:""},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=c51898d-1.2.11.js.map