(window.webpackJsonp=window.webpackJsonp||[]).push([[97],{1172:function(e,t,o){"use strict";o.r(t);var r={props:{racs:{type:Array,default:function(){return[]},required:!0}},data:function(){return{fieldsRac:[{key:"numero",label:"Número"},{key:"datInspecao",label:"Data Inspeção"},{key:"prazo",label:"Prazo"},{key:"descricao",label:"Descrição"}]}},methods:{goToRAC:function(e){var t=this.$router.resolve({path:"/ambiental/fichas/rac/".concat(e.id.idRac)});window.open(t.href,"_blank"),this.$bvModal.hide("modalRac")}}},n=o(37),component=Object(n.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("b-card",[o("div",{staticClass:"mt-4",attrs:{slot:"header"},slot:"header"},[o("b-row",[o("b-col",{staticClass:"d-flex justify-content-start"},[o("fa-icon",{staticStyle:{"font-size":"1.5rem"},attrs:{icon:"tree"}}),e._v(" "),o("h3",{staticClass:"ml-3"},[e._v("RAC")])],1)],1)],1),e._v(" "),o("b-row",[o("b-table",{staticClass:"mt-2",staticStyle:{cursor:"pointer"},attrs:{striped:"",hover:"","show-empty":"",fields:e.fieldsRac,items:e.racs,"empty-text":"Não há RAC incluída."},on:{"row-clicked":e.goToRAC},scopedSlots:e._u([{key:"cell(numero)",fn:function(t){return[e._v("\n        "+e._s(t.item.numero)+"\n      ")]}},{key:"cell(descricao)",fn:function(t){return[void 0!==t.item.descricao?o("div",[e._v("\n          "+e._s(t.item.descricao.length>400?t.item.descricao.substring(0,400)+"...":t.item.descricao)+"\n        ")]):e._e()]}},{key:"cell(datInspecao)",fn:function(t){return[e._v("\n        "+e._s(e._f("formatDate")(t.item.datInspecao))+"\n      ")]}}])})],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=c9b9567-1.2.10.js.map