(window.webpackJsonp=window.webpackJsonp||[]).push([[361],{848:function(t,e,o){"use strict";o.r(e);o(11),o(10),o(5),o(4),o(12),o(8),o(13);var r=o(1),n=(o(58),o(74));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,o)}return e}var l={props:{monitoracao:{type:Object,default:function(){return{id:{}}}},blocked:{type:Boolean,default:function(){return!1}}},data:function(){return{historicos:[]}},computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(n.c)({empresa:"empresa/empresaAtual"})),mounted:function(){var t=this;setTimeout((function(){void 0!==t.monitoracao.id.idMonitoracao&&t.findHistorico()}),2e3)},methods:{findHistorico:function(){var t=this;this.$monitoracaoSigacoService.findHistoricos(this.empresa.sigla,this.monitoracao.id.idMonitoracao).then((function(e){t.historicos=e.data})).catch((function(e){t.$notify({title:"Erro",text:e.response?e.response.data.message:e,type:"error"})}))}}},d=l,f=o(37),component=Object(f.a)(d,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("b-card",{staticClass:"mt-3"},[o("div",{staticClass:"mt-3",attrs:{slot:"header"},slot:"header"},[o("h4",[t._v("Histórico atividades")])]),t._v(" "),o("b-row",[o("b-col",{attrs:{md:"12"}},[o("b-list-group",[0==t.historicos.length?o("b-list-group-item",[t._v("\n          Não há histórico de monitoração.\n        ")]):t._e(),t._v(" "),t._l(t.historicos,(function(e,r){return o("b-list-group-item",{key:r},[t._v("\n          "+t._s(t._f("formatDateTime")(e.datHorHistorico))+"\n          "+t._s(": "+e.usuario.nome+" - "+e.descricaoHistorico)+"\n        ")])}))],2)],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=517c3f1-1.2.10.js.map