(window.webpackJsonp=window.webpackJsonp||[]).push([[453],{2181:function(e,t,r){"use strict";r.r(t);var l={props:{items:{type:Array,default:function(){return[]},required:!0}},data:function(){return{hover:!0,headVariant:"light",noCollapse:!0,totalRows:1,currentPage:1,perPage:10,fieldsResponsavel:[{key:"ordem",label:"Ordem",sortable:!0},{key:"area",label:"Área"},{key:"responsavel",label:"Responsável"},{key:"prazo",label:"Prazo"},{key:"observacao",label:"Observação"}]}},computed:{rows:function(){return this.items.length}},mounted:function(){this.totalRows=this.items.length},methods:{}},o=r(42),component=Object(o.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("b-card",{staticClass:"mt-3"},[r("b-row",{attrs:{cols:"12"}},[r("b-col",{attrs:{md:"10",xl:"10"}},[r("h2",[e._v("Responsáveis")])]),e._v(" "),r("b-col",[r("b-button",{attrs:{variant:"primary"}},[r("fa-icon",{attrs:{icon:"file"}}),e._v("\n        Adicionar\n      ")],1)],1)],1),e._v(" "),r("b-row",[r("b-col",{attrs:{md:"6",xl:"6"}},[r("b-form-group",{attrs:{label:"Área:"}},[r("b-form-select",{attrs:{required:""},scopedSlots:e._u([{key:"first",fn:function(){return[r("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v("Selecione")])]},proxy:!0}]),model:{value:e.classe,callback:function(t){e.classe=t},expression:"classe"}})],1)],1),e._v(" "),r("b-col",{attrs:{md:"6",xl:"6"}},[r("b-form-group",{attrs:{label:"Responsável área:"}},[r("b-form-select",{attrs:{required:""},scopedSlots:e._u([{key:"first",fn:function(){return[r("b-form-select-option",{attrs:{value:void 0,disabled:""}},[e._v("Selecione")])]},proxy:!0}]),model:{value:e.classe,callback:function(t){e.classe=t},expression:"classe"}})],1)],1)],1),e._v(" "),r("b-row",{attrs:{cols:"12"}},[r("b-col",{attrs:{md:"12",xl:"12"}},[r("b-table",{staticClass:"mt-3",staticStyle:{"overflow-x":"scroll"},attrs:{hover:e.hover,"no-border-collapse":e.noCollapse,items:e.items,fields:e.fieldsResponsavel,"head-variant":e.headVariant,responsive:"sm",selectable:"","empty-text":"Não há aprovadores incluídos.","show-empty":"","current-page":e.currentPage,"per-page":e.perPage,busy:!(e.items.length>=0)},on:{"row-clicked":e.editCell},scopedSlots:e._u([{key:"table-busy",fn:function(){return[r("div",{staticClass:"text-center text-primary my-2"},[r("b-spinner",{staticClass:"align-middle"}),e._v(" "),r("strong",[e._v("Carregando...")])],1)]},proxy:!0},{key:"cell(tipoEmpresa)",fn:function(t){return[r("span",[e._v(e._s(e._f("filterTipoEmpresa")(t.item.tipoEmpresa)))])]}}])}),e._v(" "),e.items.length>0?r("b-row",[r("b-col",{attrs:{"align-self":"end"}},[r("div",{staticClass:"text-right"},[r("b",[e._v("Itens:")]),e._v(" "+e._s(e.items.length))])])],1):e._e(),e._v(" "),e.items.length>5?r("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=18e6fd7-1.2.11.js.map