(window.webpackJsonp=window.webpackJsonp||[]).push([[210],{1163:function(t,e,n){"use strict";n.r(e);n(179),n(4);var o={data:function(){return{empresas:[],fields:[{key:"actions",label:""},{key:"nomeFantasia",label:"Nome"}]}},mounted:function(){this.findEmpresas()},methods:{cancelEdit:function(){this.$nuxt.$options.router.push("/cadastros/entidades")},saveEmpresa:function(){var t=this;this.responsavel.idEntidade=this.idEntidade,this.$entidadeService.saveResponsavel(this.responsavel).then((function(e){t.$notify({title:"Confirmação",text:"Entidade salva com sucesso!",type:"success"})}))},findEmpresas:function(){var t=this;this.$empresaService.find().then((function(e){window.console.log(e.data),t.empresas=e.data}))}}},r=n(37),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-card",[n("b-row",[n("b-col",{attrs:{cols:"12"}},[n("div",{attrs:{slot:"header"},slot:"header"},[n("b-row",[n("b-col",{attrs:{cols:"10"}},[n("h3",{staticClass:"primary"},[t._v("Empresas")])]),t._v(" "),n("b-col",{attrs:{cols:"2"}},[n("div",{staticClass:"d-flex justify-content-end"})])],1)],1),t._v(" "),n("b-row",{staticClass:"mt-4"},[n("b-col",{attrs:{cols:"12"}},[n("b-table",{staticClass:"mt-3",attrs:{items:t.empresas,responsive:"sm","empty-text":"Nenhum responsável associado a Entidade.","show-empty":"",fields:t.fields},scopedSlots:t._u([{key:"cell(actions)",fn:function(){return[n("b-form-checkbox")]},proxy:!0}])})],1)],1)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=04664a4-1.2.10.js.map