(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aaba3"],{"11f3":function(i,t,e){"use strict";e.r(t);var s=function(){var i=this,t=i._self._c;return t("div",{staticClass:"print-view",attrs:{id:"print_view"}},["listView"==i.simpleClassName?t("div",{staticClass:"print-view-wrap"},[i.viewPrintData?t("view_listview",{attrs:{openParams:i.openParams,view:i.viewPrintData,isFormPrint:i.isFormPrint}}):i._e()],1):"gridview"==i.simpleClassName?t("div",{staticClass:"print-view-wrap"},[i.viewPrintData?t("view_gridview",{attrs:{openParams:i.openParams,view:i.viewPrintData,isFormPrint:i.isFormPrint}}):i._e()],1):i._e(),t("div",{staticClass:"print-btn"},[t("div",{staticClass:"page-con"},[t("div",{directives:[{name:"show",rawName:"v-show",value:i.isHide,expression:"isHide"}],staticClass:"btn no-print",on:{click:i.printView}},[i._v("\n        "+i._s(i.$t("report.print"))+"\n      ")])])])])},a=[],n=e("8203"),r=e("35a6"),o={name:"",props:[""],components:{view_listview:n["a"],view_gridview:r["a"]},computed:{},created:function(){var i=this.$route.query;"ListView"==i.simpleClassName&&"288"==i.openType&&(this.simpleClassName="gridview")},mounted:function(){this.getViewData()},data:function(){return{viewPrintData:"",openParams:"",isFormPrint:5,simpleClassName:"listView",isHide:!0}},methods:{printView:function(){this.isHide=!1,setTimeout((function(){window.print()}),100);var i=this;window.onafterprint=function(){i.$nextTick((function(){i.isHide=!0}))}},getViewData:function(){var i=this,t=this.$root.appid,e=this.$route.query.viewId,s=this.$route.query.isPrint;this.openParams={appId:t,viewId:e,isPrint:s,isRelate:this.$route.query.isRelate,parentId:this.$route.query.parentId},this.$api.getPrintViewTemplate(t,e,s,{onSucess:function(t){i.viewPrintData=t.data.data;for(var e=i.viewPrintData.columns,s=0;s<e.length;s++)1!=e[s].hiddenColumn&&e[s].visible4PagePrint||(e.splice(s,1),s--)}})}}},p=o,w=e("2877"),v=Object(w["a"])(p,s,a,!1,null,null,null);t["default"]=v.exports}}]);