(window.webpackJsonp=window.webpackJsonp||[]).push([[757,759,760],{1372:function(e,t,n){"use strict";n.r(t);var l={name:"SigElementosTabela",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:"id",label:"ID"},{key:"codigo",label:"Código"},{key:"rodovia",label:"Rodovia"},{key:"km_inicio",label:"Km Início"},{key:"metro_inicio",label:"Metro Início"},{key:"km_final",label:"Km Final"},{key:"metro_final",label:"Metro Final"},{key:"sentido",label:"Sentido"},{key:"latitude_inicio",label:"Latitude Início"},{key:"longitude_inicio",label:"Longitude Início"},{key:"latitude_final",label:"Latitude Final"},{key:"longitude_final",label:"Longitude Final"}],hover:!0,noCollapse:!0,headVariant:"light",totalRows:1,currentPage:1,perPage:10}},computed:{rows:function(){return this.items.length},edit:{get:function(){return this.editCell},set:function(e){this.$emit("update:edit",e)}},del:{get:function(){return this.deleteCell},set:function(del){this.$emit("update:delete",del)}}}},r=n(42),component=Object(r.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-card",{staticClass:"mt-3"},[n("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[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}])}),e._v(" "),e.items.length>0?n("b-row",[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},1373:function(e,t,n){"use strict";n.r(t);n(17),n(182);var l={name:"SigElementosLocalizar",props:{add:{type:Function,default:function(){return!1},required:!1},pesquisar:{type:Function,default:function(){return!1},required:!1},search:{type:String,default:function(){return""},required:!0}},data:function(){return{}},computed:{searchAux:{get:function(){return this.search},set:function(e){this.$emit("update:search",e)}}}},r=n(42),component=Object(r.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-row",[n("b-col",{attrs:{cols:"12"}},[n("b-card",[n("div",{staticClass:"mt-4 mx-2",attrs:{slot:"header"},slot:"header"},[n("b-row",[n("b-col",{attrs:{cols:"10"}},[n("h2",{staticClass:"primary"},[e._v("Busca de elementos")])]),e._v(" "),n("b-col",{attrs:{cols:"2"}},[n("div",{staticClass:"d-flex justify-content-end"},[n("b-button",{staticClass:"rounded",attrs:{id:"btnAdicionar",size:"sm",variant:"primary"},on:{click:e.add}},[n("FaIcon",{staticClass:"mr-1",attrs:{icon:"plus"}}),e._v(" "),n("span",[e._v("Adicionar")])],1)],1)])],1)],1),e._v(" "),n("b-row",[n("b-col",[n("b-form",[n("b-row",[n("b-col",{attrs:{cols:"6"}},[n("b-form-group",{attrs:{label:"Localizar:"}},[n("b-form-input",{attrs:{id:"pesquisa",placeholder:"Digite sua pesquisa...",autofocus:"","aria-autocomplete":"true"},model:{value:e.searchAux,callback:function(t){e.searchAux=t},expression:"searchAux"}})],1)],1),e._v(" "),n("b-col",{attrs:{cols:"3"}},[n("b-button",{staticClass:"mt-4 rounded",attrs:{id:"btnPesquisar",variant:"outline-primary",size:"sm"},on:{click:function(t){return e.pesquisar()}}},[n("FaIcon",{staticClass:"mr-1",attrs:{icon:"search"}}),e._v(" "),n("span",[e._v("Pesquisar")])],1)],1)],1)],1)],1)],1),e._v(" "),n("div")],1)],1)],1)}),[],!1,null,null,null);t.default=component.exports},1927:function(e,t,n){"use strict";n.r(t);var l=n(1372),r=n(1373),o={name:"SigElementos",components:{Tabela:l.default,Localizar:r.default},data:function(){return{busy:!1,elementos:[{id:1,codigo:"1",rodovia:"BR-080",km_inicio:"094",metro_inicio:"",km_final:"095",metro_final:"",sentido:"NORTE",latitude_inicio:"-15.20787",longitude_inicio:"-48.70556",latitude_final:"-",longitude_final:"-"}]}},methods:{editCell:function(e){this.$router.push("/sig/elementos/"+e.id)}}},c=n(42),component=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main-content"},[n("Localizar"),e._v(" "),n("Tabela",{attrs:{items:e.elementos,"edit-cell":e.editCell,busy:e.busy}})],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=0628b15-1.2.11.js.map